Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Undock computer

11 views
Skip to first unread message

Ivo Beltchev

unread,
Nov 16, 2009, 12:39:13 AM11/16/09
to
Hi

How do I check if "Undock computer" should show up in the Start menu?
I'm guessing it is available when the computer is "undockable" but what
system setting can I check?

I looked at SystemParametersInfo and GetSystemMetrics but none of the
options seems related.

Thanks
Ivo

Kerem Gümrükcü

unread,
Nov 16, 2009, 7:19:54 AM11/16/09
to
Hi Ivo,

try the function SetupDiGetHwProfileList()
and SetupDiGetHwProfileListEx()

They can be of Help. Let us please know
what you did and whether it helped or not,...

Regards

Kerem

--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------

marc

unread,
Nov 16, 2009, 8:40:10 AM11/16/09
to

See Start Menu source code...
(from Wine, comp.os.ms-windows.programmer.win32, IRC, BBS, ... )

Ivo Beltchev

unread,
Nov 16, 2009, 11:34:15 AM11/16/09
to

Thanks. That was helpful. Looking at the Wine sources I found the
GetCurrentHwProfile function and the HW_PROFILE_INFO structure.

But the docs are weird:
http://msdn.microsoft.com/en-us/library/ms724479(VS.85).aspx
DOCKINFO_DOCKED (2) - always set for desktops that cannot be undocked
DOCKINFO_UNDOCKED (1) - always set for desktops that cannot be undocked

I'm pretty sure my desktop PC can't be undocked but I'm getting
DOCKINFO_UNDOCKED. The Wine version of GetCurrentHwProfile always
returns DOCKINFO_DOCKED.

I guess I'm a bit fuzzy on what is a "portable computer with a docking
station". Does any notebook qualify? I don't own a notebook myself and I
can't test it.

0 new messages