信息技术软件分享ppt:桌面的一些内核性问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 20:39:56
这几个函数:(API user32.dll):
EnumDesktops(枚举桌面),GetThreadDesktop(获得指定线程的桌面句柄),GetUserObjectInformation(获得桌面句柄对应的名称)
怎么用?谁能给些例子?
在DDK的驱动中,有没有类似的函数?
BOOL EnumDesktops(
HWINSTA hwinsta,
DESKTOPENUMPROC lpEnumFunc,
LPARAM lParam
);
Parameters
hwinsta
[in] Handle to the window station whose desktops are to be enumerated. This handle is returned by the CreateWindowStation, GetProcessWindowStation, or OpenWindowStation function, and must have the WINSTA_ENUMDESKTOPS access right. For more information, see Window Station Security and Access Rights.
lpEnumFunc
[in] Pointer to an application-defined EnumDesktopProc callback function.
lParam
[in] Application-defined value to be passed to the callback function.

HDESK GetThreadDesktop(
DWORD dwThreadId
);

察看msdn就可以了
www.msdn.net