大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
HDESK
hdeskCurrent;
HDESK hdesk;
HWINSTA hwinstaCurrent;
HWINSTA
hwinsta;
hwinstaCurrent = GetProcessWindowStation();
hdeskCurrent =
GetThreadDesktop(GetCurrentThreadId());
//打开用户的winsta0
hwinsta =
OpenWindowStation("winsta0", FALSE,
WINSTA_ACCESSCLIPBOARD |
WINSTA_ACCESSGLOBALATOMS
|
WINSTA_CREATEDESKTOP |
WINSTA_ENUMDESKTOPS |
WINSTA_ENUMERATE
|
WINSTA_EXITWINDOWS |
WINSTA_READATTRIBUTES |
WINSTA_READSCREEN
|
WINSTA_WRITEATTRIBUTES);
//打开desktop
hdesk = OpenDesktop("default", 0, FALSE,
DESKTOP_CREATEMENU |
DESKTOP_CREATEWINDOW |
DESKTOP_ENUMERATE
|
DESKTOP_HOOKCONTROL |
DESKTOP_JOURNALPLAYBACK |
DESKTOP_JOURNALRECORD
|
DESKTOP_READOBJECTS |
DESKTOP_SWITCHDESKTOP
|
DESKTOP_WRITEOBJECTS);
SetThreadDesktop(hdesk);
ShellExecute(0,NULL,"D://test.exe",NULL,NULL,SW_HIDE);
SetProcessWindowStation(hwinstaCurrent);
SetThreadDesktop(hdeskCurrent);
CloseWindowStation(hwinsta);
CloseDesktop(hdesk);
成都创新互联专注为客户提供全方位的互联网综合服务,包含不限于成都网站制作、网站建设、如皋网络推广、重庆小程序开发、如皋网络营销、如皋企业策划、如皋品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;成都创新互联为所有大学生创业者提供如皋建站搭建服务,24小时服务热线:028-86922220,官方网址:www.cdcxhl.com