OpenDesktop function results in ERROR_FILE_NOT_FOUND
I am using the OpenStation and SetProcessWindowStation to enumerate the desktops in a station. The EnumDesktops function is returning simple names like "default" and "winlogon", but when I try to use these names to call OpenDesktop it returns a null handle and the last set error is 2, or ERROR_FILE_NOT_FOUND. Tried adding "PC\\" which is the name of my computer. Tried oppening "WinSta0\Default", "PC\\Brent", "Brent", etc. based on the Win32_Desktop objects I see from WMI. Still, no luck. Any ideas?
|All times are GMT +5.5. The time now is 09:20.|