Changeset 2675 for trunk/src/advapi32/security.cpp
- Timestamp:
- Feb 7, 2000, 3:29:50 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/advapi32/security.cpp
r2348 r2675 1 /* $Id: security.cpp,v 1. 4 2000-01-06 20:23:47sandervl Exp $ */1 /* $Id: security.cpp,v 1.5 2000-02-07 14:29:50 sandervl Exp $ */ 2 2 /* 3 3 * Win32 security API functions for OS/2 … … 494 494 */ 495 495 BOOL WINAPI 496 LookupAccountSidA( LPCSTR system, PSID sid, LPCSTR account, 497 LPDWORD accountSize, LPCSTR domain, LPDWORD domainSize, 498 PSID_NAME_USE name_use ) 499 { 500 FIXME(__FUNCTION__"(%s,%p,%p,%p,%p,%p,%p): stub\n", 501 system,sid,account,accountSize,domain,domainSize,name_use); 502 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 503 return FALSE; 496 LookupAccountSidA( 497 IN LPCSTR system, 498 IN PSID sid, 499 OUT LPSTR account, 500 IN OUT LPDWORD accountSize, 501 OUT LPSTR domain, 502 IN OUT LPDWORD domainSize, 503 OUT PSID_NAME_USE name_use ) 504 { 505 char * ac = "Administrator"; 506 char * dm = "DOMAIN"; 507 dprintf(("LookupAccountSidA(%s,sid=%p,%p,%p(%lu),%p,%p(%lu),%p): semi-stub", 508 sid, 509 account,accountSize,accountSize?*accountSize:0, 510 domain,domainSize,domainSize?*domainSize:0, 511 name_use)); 512 513 if (accountSize) *accountSize = strlen(ac)+1; 514 if (account && (*accountSize > strlen(ac))) 515 strcpy(account, ac); 516 517 if (domainSize) *domainSize = strlen(dm)+1; 518 if (domain && (*domainSize > strlen(dm))) 519 strcpy(domain,dm); 520 521 if (name_use) *name_use = SidTypeUser; 522 return TRUE; 504 523 } 505 524 … … 517 536 */ 518 537 BOOL WINAPI 519 LookupAccountSidW( LPCWSTR system, PSID sid, LPCWSTR account, 520 LPDWORD accountSize, LPCWSTR domain, LPDWORD domainSize, 521 PSID_NAME_USE name_use ) 522 { 523 FIXME(__FUNCTION__"(%p,%p,%p,%p,%p,%p,%p): stub\n", 524 system,sid,account,accountSize,domain,domainSize,name_use); 525 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 526 return FALSE; 538 LookupAccountSidW( 539 IN LPCWSTR system, 540 IN PSID sid, 541 OUT LPWSTR account, 542 IN OUT LPDWORD accountSize, 543 OUT LPWSTR domain, 544 IN OUT LPDWORD domainSize, 545 OUT PSID_NAME_USE name_use ) 546 { 547 char * ac = "Administrator"; 548 char * dm = "DOMAIN"; 549 dprintf(("LookupAccountSidW(%s,sid=%p,%p,%p(%lu),%p,%p(%lu),%p): semi-stub", 550 sid, 551 account,accountSize,accountSize?*accountSize:0, 552 domain,domainSize,domainSize?*domainSize:0, 553 name_use)); 554 555 if (accountSize) *accountSize = strlen(ac)+1; 556 if (account && (*accountSize > strlen(ac))) 557 lstrcpyAtoW(account, ac); 558 559 if (domainSize) *domainSize = strlen(dm)+1; 560 if (domain && (*domainSize > strlen(dm))) 561 lstrcpyAtoW(domain,dm); 562 563 if (name_use) *name_use = SidTypeUser; 564 return TRUE; 527 565 } 528 566
Note:
See TracChangeset
for help on using the changeset viewer.