Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 31 of file desktop.c.
Referenced by DesktopCreateWindow().
{ volatile DESKCREATEINFO *DeskCreateInfo = (volatile DESKCREATEINFO *)lpParameter; IShellDesktopTray *pSdt; HANDLE hDesktop; HRESULT hRet; OleInitialize(NULL); hRet = ITrayWindow_QueryInterface(DeskCreateInfo->Tray, &IID_IShellDesktopTray, (PVOID*)&pSdt); if (!SUCCEEDED(hRet)) return 1; hDesktop = SHCreateDesktop(pSdt); IShellDesktopTray_Release(pSdt); if (hDesktop == NULL) return 1; (void)InterlockedExchangePointer(&DeskCreateInfo->hDesktop, hDesktop); if (!SetEvent(DeskCreateInfo->hEvent)) { /* Failed to notify that we initialized successfully, kill ourselves to make the main thread wake up! */ return 1; } SHDesktopMessageLoop(hDesktop); /* FIXME: Properly rundown the main thread! */ ExitProcess(0); return 0; }