1 /* 2 */ 3 4 #ifndef __USERINIT_H__ 5 #define __USERINIT_H__ 6 7 #include <stdio.h> 8 #include <stdlib.h> 9 10 /* PSDK/NDK Headers */ 11 #define WIN32_NO_STATUS 12 #define _INC_WINDOWS 13 #define COM_NO_WINDOWS_H 14 #include <windef.h> 15 #include <winbase.h> 16 #include <wingdi.h> 17 #include <winreg.h> 18 #include <regstr.h> 19 #include <winnls.h> 20 #include <winuser.h> 21 #include <undocuser.h> 22 23 #include <strsafe.h> 24 25 #include <ndk/exfuncs.h> 26 27 #include <wine/debug.h> 28 WINE_DEFAULT_DEBUG_CHANNEL(userinit); 29 30 #include "resource.h" 31 32 33 typedef enum 34 { 35 LOCALEPAGE, 36 STARTPAGE, 37 DONE 38 } PAGESTATE; 39 40 typedef enum 41 { 42 SHELL, 43 INSTALLER, 44 REBOOT 45 } RUN; 46 47 typedef struct _IMGINFO 48 { 49 HBITMAP hBitmap; 50 INT cxSource; 51 INT cySource; 52 INT iPlanes; 53 INT iBits; 54 } IMGINFO, *PIMGINFO; 55 56 typedef struct 57 { 58 PAGESTATE NextPage; 59 RUN Run; 60 IMGINFO ImageInfo; 61 } STATE, *PSTATE; 62 63 64 extern HINSTANCE hInstance; 65 66 LONG 67 ReadRegSzKey( 68 IN HKEY hKey, 69 IN LPCWSTR pszKey, 70 OUT LPWSTR *pValue); 71 72 BOOL 73 IsLiveCD(VOID); 74 75 76 VOID 77 RunLiveCD( 78 PSTATE State); 79 80 #endif /* __USERINIT_H__ */ 81