281{
283
286 {
287 case 0:
288 {
291
292
297
300
301
303 {
306 }
307 else {
313 {
315 return nastatus;
316 }
319 }
320 break;
321 }
322
323 case 1:
324 {
331
332
333 int username_sz, logon_domain_sz, oth_domains_sz, logon_server_sz;
334
335 FIXME(
"Level 1 processing is partially implemented\n");
336 oth_domains_sz = 1;
337 logon_server_sz = 1;
338
339
343 return nastatus;
345
349 &PolicyHandle);
351 {
352 TRACE(
"LsaOpenPolicyFailed with NT status %x\n",
356 }
358 (
PVOID*) &DomainInfo);
361
362
364 (username_sz + logon_domain_sz +
365 oth_domains_sz + logon_server_sz) *
sizeof(
WCHAR),
369 return nastatus;
370 }
373 ui->wkui1_logon_domain = (
LMSTR) (
374 ((
PBYTE)
ui->wkui1_username) + username_sz *
sizeof(
WCHAR));
375 ui->wkui1_oth_domains = (
LMSTR) (
376 ((
PBYTE)
ui->wkui1_logon_domain) +
377 logon_domain_sz *
sizeof(
WCHAR));
378 ui->wkui1_logon_server = (
LMSTR) (
379 ((
PBYTE)
ui->wkui1_oth_domains) +
380 oth_domains_sz *
sizeof(
WCHAR));
381
382
385
387 logon_domain_sz);
389
390
391 ui->wkui1_oth_domains[0] = 0;
392 ui->wkui1_logon_server[0] = 0;
393 break;
394 }
395 case 1101:
396 {
399
400 FIXME(
"Stub. Level 1101 processing is not implemented\n");
401
402
403
407 return nastatus;
409 ui->wkui1101_oth_domains = (
LMSTR)(
ui + 1);
410
411
412 ui->wkui1101_oth_domains[0] = 0;
413 break;
414 }
415 default:
416 TRACE(
"Invalid level %d is specified\n",
level);
418 }
420}
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
NTSTATUS WINAPI LsaOpenPolicy(IN PLSA_UNICODE_STRING SystemName OPTIONAL, IN PLSA_OBJECT_ATTRIBUTES ObjectAttributes, IN ACCESS_MASK DesiredAccess, OUT PLSA_HANDLE PolicyHandle)
ULONG WINAPI LsaNtStatusToWinError(IN NTSTATUS Status)
NTSTATUS WINAPI LsaQueryInformationPolicy(IN LSA_HANDLE PolicyHandle, IN POLICY_INFORMATION_CLASS InformationClass, OUT PVOID *Buffer)
NTSTATUS WINAPI LsaFreeMemory(IN PVOID Buffer)
NTSTATUS WINAPI LsaClose(IN LSA_HANDLE ObjectHandle)
BOOL WINAPI GetUserNameW(LPWSTR lpszName, LPDWORD lpSize)
NET_API_STATUS WINAPI NetWkstaUserGetInfo(LMSTR reserved, DWORD level, PBYTE *bufptr)
struct _WKSTA_USER_INFO_0 * PWKSTA_USER_INFO_0
struct _WKSTA_USER_INFO_1101 * PWKSTA_USER_INFO_1101
@ PolicyAccountDomainInformation
#define POLICY_VIEW_LOCAL_INFORMATION
LSA_UNICODE_STRING DomainName
static unsigned int bufptr