Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Windows (http://www.go4expert.com/forums/windows-forum/)
-   -   OpenDesktop function results in ERROR_FILE_NOT_FOUND (http://www.go4expert.com/forums/opendesktop-function-results-t8026/)

coder0xff 29Dec2007 13:55

OpenDesktop function results in ERROR_FILE_NOT_FOUND
 
Hi,

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?

Thanks,
Brent


All times are GMT +5.5. The time now is 06:00.