Go to the source code of this file.
◆ GetSetupType()
Definition at line 16 of file setup.c.
17{
23
24 TRACE(
"GetSetupType()\n");
25
26
29 0,
33 return 0;
34
35
40 &dwType,
43
44
47 return 0;
48
49 TRACE(
"GetSetupType() returns %lu\n", dwSetupType);
50 return dwSetupType;
51}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define HKEY_LOCAL_MACHINE
Referenced by SASWindowProc(), and WinMain().
◆ RunSetup()
Definition at line 153 of file setup.c.
154{
156
158 0,
161 0,
165
167}
static DWORD WINAPI RunSetupThreadProc(IN LPVOID lpParameter)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Referenced by WinMain().
◆ RunSetupThreadProc()
Definition at line 57 of file setup.c.
59{
70
71 TRACE(
"RunSetup() called\n");
72
73
76 0,
81
82
87 &dwType,
93
94
96
97
100 else if (dwType ==
REG_SZ)
102 else
104
106
108
109
110 StartupInfo.
cb =
sizeof(StartupInfo);
117
119 CommandLine,
126 &StartupInfo,
127 &ProcessInformation);
129 {
130 TRACE(
"Failed to run setup process\n");
133 }
134
135
137
139
140
143
144
145
146 TRACE (
"RunSetup() done\n");
147
149}
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
static int Shell(const char **args)
BOOL WINAPI SwitchDesktop(_In_ HDESK)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Referenced by RunSetup().