2016-01-17 19:20:47 +00:00
|
|
|
/*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __USERINIT_H__
|
|
|
|
#define __USERINIT_H__
|
|
|
|
|
2017-07-13 19:10:27 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
/* PSDK/NDK Headers */
|
2016-01-17 19:20:47 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
2017-07-13 19:10:27 +00:00
|
|
|
#include <winreg.h>
|
2016-01-17 19:20:47 +00:00
|
|
|
#include <regstr.h>
|
|
|
|
#include <winnls.h>
|
2017-07-13 19:10:27 +00:00
|
|
|
#include <winuser.h>
|
|
|
|
#include <undocuser.h>
|
|
|
|
|
|
|
|
#include <strsafe.h>
|
2016-01-17 19:20:47 +00:00
|
|
|
|
2016-02-11 20:00:46 +00:00
|
|
|
#include <ndk/exfuncs.h>
|
|
|
|
|
2016-01-17 19:20:47 +00:00
|
|
|
#include <wine/debug.h>
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(userinit);
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
LOCALEPAGE,
|
|
|
|
STARTPAGE,
|
|
|
|
DONE
|
|
|
|
} PAGESTATE;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
SHELL,
|
2017-07-08 00:23:33 +00:00
|
|
|
INSTALLER,
|
|
|
|
REBOOT
|
2016-01-17 19:20:47 +00:00
|
|
|
} RUN;
|
|
|
|
|
|
|
|
typedef struct _IMGINFO
|
|
|
|
{
|
|
|
|
HBITMAP hBitmap;
|
|
|
|
INT cxSource;
|
|
|
|
INT cySource;
|
2017-07-08 00:23:33 +00:00
|
|
|
INT iPlanes;
|
|
|
|
INT iBits;
|
2016-01-17 19:20:47 +00:00
|
|
|
} IMGINFO, *PIMGINFO;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
PAGESTATE NextPage;
|
|
|
|
RUN Run;
|
|
|
|
IMGINFO ImageInfo;
|
2020-05-03 18:18:30 +00:00
|
|
|
struct _LIVECD_UNATTEND* Unattend;
|
2016-01-17 19:20:47 +00:00
|
|
|
} STATE, *PSTATE;
|
|
|
|
|
|
|
|
|
|
|
|
extern HINSTANCE hInstance;
|
|
|
|
|
|
|
|
LONG
|
|
|
|
ReadRegSzKey(
|
|
|
|
IN HKEY hKey,
|
|
|
|
IN LPCWSTR pszKey,
|
|
|
|
OUT LPWSTR *pValue);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
IsLiveCD(VOID);
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
RunLiveCD(
|
|
|
|
PSTATE State);
|
|
|
|
|
|
|
|
#endif /* __USERINIT_H__ */
|