#include <stdio.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winreg.h>
#include <regstr.h>
#include <winnls.h>
#include <winuser.h>
#include <undocuser.h>
#include <strsafe.h>
#include <ndk/exfuncs.h>
#include <wine/debug.h>
#include "resource.h"
Go to the source code of this file.
◆ _INC_WINDOWS
◆ COM_NO_WINDOWS_H
◆ WIN32_NO_STATUS
◆ IMGINFO
◆ PIMGINFO
◆ PSTATE
◆ PAGESTATE
Enumerator |
---|
LOCALEPAGE | |
STARTPAGE | |
DONE | |
Definition at line 33 of file userinit.h.
◆ RUN
Enumerator |
---|
SHELL | |
INSTALLER | |
REBOOT | |
Definition at line 40 of file userinit.h.
◆ IsLiveCD()
Definition at line 106 of file livecd.c.
114 TRACE(
"IsLiveCD()\n");
123 WARN(
"RegOpenKeyEx() failed with error %lu\n", rc);
127 rc =
ReadRegSzKey(ControlKey,
L"SystemStartOptions", &SystemStartOptions);
130 WARN(
"ReadRegSzKey() failed with error %lu\n", rc);
135 CurrentOption = SystemStartOptions;
136 while (CurrentOption)
141 if (
_wcsicmp(CurrentOption,
L"MININT") == 0)
143 TRACE(
"Found 'MININT' boot option\n");
151 if (ControlKey !=
NULL)
155 TRACE(
"IsLiveCD() returning %d\n",
ret);
static LONG ReadRegSzKey(IN HKEY hKey, IN LPCWSTR pszKey, OUT LPWSTR *pValue)
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
#define REGSTR_PATH_CURRENT_CONTROL_SET
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
char * cleanup(char *str)
#define HeapFree(x, y, z)
#define RegCloseKey(hKey)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
static char * NextOption(const char *const ostr)
#define HKEY_LOCAL_MACHINE
Referenced by wWinMain().
◆ ReadRegSzKey()
Definition at line 39 of file userinit.c.
54 WARN(
"RegQueryValueEx(%s) failed with error %lu\n",
debugstr_w(pszKey), rc);
59 WARN(
"Wrong registry data type (%u vs %u)\n", dwType,
REG_SZ);
71 WARN(
"RegQueryValueEx(%s) failed with error %lu\n",
debugstr_w(pszKey), rc);
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_FILE_NOT_FOUND
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define HeapFree(x, y, z)
Referenced by IsConsoleShell().
◆ RunLiveCD()
Definition at line 883 of file livecd.c.
892 wcscat(UnattendInf,
L"\\unattend.inf");
894 pState->Unattend = &Unattend;
896 while (pState->NextPage !=
DONE)
898 switch (pState->NextPage)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
VOID ParseUnattend(LPCWSTR UnattendInf, LIVECD_UNATTEND *pUnattend)
static VOID InitLogo(PIMGINFO pImgInfo, HWND hwndDlg)
static INT_PTR CALLBACK StartDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define MAKEINTRESOURCEW(i)
static INT_PTR CALLBACK LocaleDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Referenced by wWinMain().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
userinit |
| ) |
|
◆ hInstance