Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536#include <windows.h>#include <stdio.h>
BOOL CALLBACKEnumDesktopProc(LPWSTR lpszWindowStation, LPARAM lParam){ printf("\t%S\n", lpszWindowStation);
return TRUE;}
BOOL CALLBACKEnumWindowStationProc(LPWSTR lpszWindowStation, LPARAM lParam){ HWINSTA hWinSta;
printf("%S\n", lpszWindowStation); hWinSta = OpenWindowStationW(lpszWindowStation, FALSE, WINSTA_ENUMDESKTOPS); if (hWinSta == NULL) { printf("\tCan't open window station.\n"); return TRUE; } EnumDesktopsW(hWinSta, EnumDesktopProc, 0xdede);
return TRUE;}
int main(){ EnumWindowStationsW(EnumWindowStationProc, 0xbadbed);
return 0;}