83{
85
91 {
94 }
97 {
98
103
104
107 }
114 {
116
119 {
120 ERR(
"RegOpenKeyExW failed for \"Providers\" with error %lu!\n", dwErrorCode);
121 return dwErrorCode;
122 }
123
127 return dwErrorCode;
128 }
130 {
131
136
137
140 }
142 {
143
148
149
152 }
154 {
155
160
161
164 }
166 {
168
169
174
175
179 }
181 {
183
184
189
190
194 }
196 {
198
199
204
205
208 {
209 ERR(
"DsRoleGetPrimaryDomainInformation failed with error %lu!\n", dwErrorCode);
210 return dwErrorCode;
211 }
212
213
217 }
219 {
224
225
230
231
234 {
236 ERR(
"GetComputerNameW failed with error %lu!\n", dwErrorCode);
237 return dwErrorCode;
238 }
239
240
241
242
243
246 {
248 ERR(
"GetUserNameExW failed with error %lu!\n", dwErrorCode);
249 return dwErrorCode;
250 }
251
252
255
256
257
260 }
262 {
263
268
269
272 }
274 {
275 DWORD cchDnsName = 0;
276
277
281 {
282 ERR(
"GetComputerNameExW failed with error %lu!\n", dwErrorCode);
283 return dwErrorCode;
284 }
285
286
291
292
294 {
296 ERR(
"GetComputerNameExW failed with error %lu!\n", dwErrorCode);
297 return dwErrorCode;
298 }
299
300
303 }
304 else
305 {
306
307
308
310 }
311}
const WCHAR wszCurrentEnvironment[]
BOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT NameType, LPWSTR lpBuffer, LPDWORD nSize)
BOOL WINAPI GetComputerNameW(LPWSTR lpBuffer, LPDWORD lpnSize)
#define ERROR_INVALID_PARAMETER
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
@ DsRole_RoleMemberWorkstation
@ DsRole_RoleMemberServer
@ DsRolePrimaryDomainInfoBasic
static DWORD DWORD void LPSTR DWORD cch
VOID WINAPI DsRoleFreeMemory(_In_ PVOID Buffer)
DWORD WINAPI DsRoleGetPrimaryDomainInformation(LPCWSTR lpServer, DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, PBYTE *Buffer)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl _wcslwr(_Inout_z_ wchar_t *_String)
BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
DSROLE_MACHINE_ROLE MachineRole
ULONG dwOSVersionInfoSize
ULONG dwOSVersionInfoSize
const DWORD dwSpoolerMajorVersion
const DWORD dwSpoolerMinorVersion
const DWORD cbCurrentEnvironment
DWORD WINAPI GetLastError(void)
#define MAX_COMPUTERNAME_LENGTH
#define SPLREG_ALLOW_USER_MANAGEFORMS
#define SPLREG_SCHEDULER_THREAD_PRIORITY
#define SPLREG_RESTART_JOB_ON_POOL_ENABLED
#define SPLREG_DS_PRESENT_FOR_USER
#define SPLREG_DNS_MACHINE_NAME
#define SPLREG_NET_POPUP_TO_COMPUTER
#define SPLREG_OS_VERSIONEX
#define SPLREG_ARCHITECTURE
#define SPLREG_PORT_THREAD_PRIORITY
#define SPLREG_DEFAULT_SPOOL_DIRECTORY
#define SPLREG_SCHEDULER_THREAD_PRIORITY_DEFAULT
#define SPLREG_RESTART_JOB_ON_POOL_ERROR
#define SPLREG_REMOTE_FAX
#define SPLREG_OS_VERSION
#define SPLREG_MINOR_VERSION
#define SPLREG_PORT_THREAD_PRIORITY_DEFAULT
#define SPLREG_MAJOR_VERSION
#define SPLREG_BEEP_ENABLED
#define SPLREG_DS_PRESENT
#define SPLREG_RETRY_POPUP
struct _OSVERSIONINFOEXW * POSVERSIONINFOEXW
struct _OSVERSIONINFOW * POSVERSIONINFOW
struct _OSVERSIONINFOW OSVERSIONINFOW
struct _OSVERSIONINFOEXW OSVERSIONINFOEXW