Changeset 2343 for trunk/src/advapi32/security.cpp
- Timestamp:
- Jan 6, 2000, 9:05:00 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/advapi32/security.cpp
r2133 r2343 1 /* $Id: security.cpp,v 1. 2 1999-12-19 12:24:52sandervl Exp $ */1 /* $Id: security.cpp,v 1.3 2000-01-06 20:05:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 security API functions for OS/2 … … 102 102 } 103 103 104 /************************************************************************* 105 * SetThreadToken [ADVAPI32.231] 106 * 107 * Assigns an "impersonation token" to a thread so it can assume the 108 * security privledges of another thread or process. Can also remove 109 * a previously assigned token. Only supported on NT - it's a stub 110 * exactly like this one on Win9X. 111 * 112 */ 113 114 BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token) 115 { 116 FIXME(__FUNCTION__"(%p, %x): stub\n", thread, token); 117 118 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 119 120 return FALSE; 121 } 122 104 123 /****************************************************************************** 105 124 * AdjustTokenPrivileges [ADVAPI32.10] … … 346 365 PSECURITY_DESCRIPTOR lpselfsecdesc, LPDWORD lpbuflen ) 347 366 { 348 FIXME _(advapi)("(%p,%p,%p),stub!\n",lpabssecdesc,lpselfsecdesc,lpbuflen);367 FIXME(__FUNCTION__"(%p,%p,%p),stub!\n",lpabssecdesc,lpselfsecdesc,lpbuflen); 349 368 return TRUE; 350 369 } … … 356 375 BOOL WINAPI GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR pSecurityDescriptor, 357 376 PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision) 358 { FIXME _(advapi)("(%p,%p,%p),stub!\n",pSecurityDescriptor,pControl,lpdwRevision);377 { FIXME(__FUNCTION__"(%p,%p,%p),stub!\n",pSecurityDescriptor,pControl,lpdwRevision); 359 378 return 1; 360 379 } … … 382 401 LookupPrivilegeValueW( LPCWSTR lpSystemName, LPCWSTR lpName, LPVOID lpLuid ) 383 402 { 384 FIXME _(advapi)("(%s,%s,%p): stub\n",debugstr_w(lpSystemName),403 FIXME(__FUNCTION__"(%s,%s,%p): stub\n",debugstr_w(lpSystemName), 385 404 debugstr_w(lpName), lpLuid); 386 405 return TRUE; … … 414 433 DWORD nLength, LPDWORD lpnLengthNeeded ) 415 434 { 416 FIXME _(advapi)("(%s) : stub\n", debugstr_a(lpFileName));435 FIXME(__FUNCTION__"(%s) : stub\n", debugstr_a(lpFileName)); 417 436 return TRUE; 418 437 } … … 438 457 DWORD nLength, LPDWORD lpnLengthNeeded ) 439 458 { 440 FIXME _(advapi)("(%s) : stub\n", debugstr_w(lpFileName) );459 FIXME(__FUNCTION__"(%s) : stub\n", debugstr_w(lpFileName) ); 441 460 return TRUE; 442 461 } 443 462 463 /****************************************************************************** 464 * SetFileSecurity32A [ADVAPI32.182] 465 * Sets the security of a file or directory 466 */ 467 BOOL WINAPI SetFileSecurityA( LPCSTR lpFileName, 468 SECURITY_INFORMATION RequestedInformation, 469 PSECURITY_DESCRIPTOR pSecurityDescriptor) 470 { 471 FIXME(__FUNCTION__"(%s) : stub\n", debugstr_a(lpFileName)); 472 return TRUE; 473 } 474 475 /****************************************************************************** 476 * SetFileSecurity32W [ADVAPI32.183] 477 * Sets the security of a file or directory 478 * 479 * PARAMS 480 * lpFileName [] 481 * RequestedInformation [] 482 * pSecurityDescriptor [] 483 */ 484 BOOL WINAPI 485 SetFileSecurityW( LPCWSTR lpFileName, 486 SECURITY_INFORMATION RequestedInformation, 487 PSECURITY_DESCRIPTOR pSecurityDescriptor ) 488 { 489 FIXME(__FUNCTION__"(%s) : stub\n", debugstr_w(lpFileName) ); 490 return TRUE; 491 } 444 492 445 493 /****************************************************************************** … … 451 499 PSID_NAME_USE name_use ) 452 500 { 453 FIXME _(security)("(%s,%p,%p,%p,%p,%p,%p): stub\n",501 FIXME(__FUNCTION__"(%s,%p,%p,%p,%p,%p,%p): stub\n", 454 502 system,sid,account,accountSize,domain,domainSize,name_use); 455 503 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); … … 474 522 PSID_NAME_USE name_use ) 475 523 { 476 FIXME _(security)("(%p,%p,%p,%p,%p,%p,%p): stub\n",524 FIXME(__FUNCTION__"(%p,%p,%p,%p,%p,%p,%p): stub\n", 477 525 system,sid,account,accountSize,domain,domainSize,name_use); 478 526 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); … … 481 529 482 530 /****************************************************************************** 483 * SetFileSecurity32A [ADVAPI32.182]484 * Sets the security of a file or directory485 */486 BOOL WINAPI SetFileSecurityA( LPCSTR lpFileName,487 SECURITY_INFORMATION RequestedInformation,488 PSECURITY_DESCRIPTOR pSecurityDescriptor)489 {490 FIXME_(advapi)("(%s) : stub\n", debugstr_a(lpFileName));491 return TRUE;492 }493 494 /******************************************************************************495 * SetFileSecurity32W [ADVAPI32.183]496 * Sets the security of a file or directory497 *498 * PARAMS499 * lpFileName []500 * RequestedInformation []501 * pSecurityDescriptor []502 */503 BOOL WINAPI504 SetFileSecurityW( LPCWSTR lpFileName,505 SECURITY_INFORMATION RequestedInformation,506 PSECURITY_DESCRIPTOR pSecurityDescriptor )507 {508 FIXME_(advapi)("(%s) : stub\n", debugstr_w(lpFileName) );509 return TRUE;510 }511 512 /******************************************************************************513 531 * QueryWindows31FilesMigration [ADVAPI32.266] 514 532 * … … 519 537 QueryWindows31FilesMigration( DWORD x1 ) 520 538 { 521 FIXME _(advapi)("(%ld):stub\n",x1);539 FIXME(__FUNCTION__"(%ld):stub\n",x1); 522 540 return TRUE; 523 541 } … … 536 554 DWORD x4 ) 537 555 { 538 FIXME _(advapi)("(0x%08lx,0x%08lx,0x%08lx,0x%08lx):stub\n",x1,x2,x3,x4);556 FIXME(__FUNCTION__"(0x%08lx,0x%08lx,0x%08lx,0x%08lx):stub\n",x1,x2,x3,x4); 539 557 return TRUE; 540 558 } … … 555 573 PLSA_HANDLE PolicyHandle) 556 574 { 557 FIXME _(advapi)("(%p,%p,0x%08lx,%p):stub\n",575 FIXME(__FUNCTION__"(%p,%p,0x%08lx,%p):stub\n", 558 576 SystemName, ObjectAttributes, 559 577 DesiredAccess, PolicyHandle); … … 570 588 NotifyBootConfigStatus( DWORD x1 ) 571 589 { 572 FIXME _(advapi)("(0x%08lx):stub\n",x1);590 FIXME(__FUNCTION__"(0x%08lx):stub\n",x1); 573 591 return 1; 574 592 } … … 583 601 RevertToSelf( void ) 584 602 { 585 FIXME _(advapi)("(), stub\n");603 FIXME(__FUNCTION__"(), stub\n"); 586 604 return TRUE; 587 605 } … … 593 611 ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel) 594 612 { 595 FIXME _(advapi)("(%08x), stub\n", ImpersonationLevel);613 FIXME(__FUNCTION__"(%08x), stub\n", ImpersonationLevel); 596 614 return TRUE; 597 615 } … … 605 623 LPDWORD PrivilegeSetLength, LPDWORD GrantedAccess, LPBOOL AccessStatus) 606 624 { 607 FIXME _(advapi)("(%p, %04x, %08lx, %p, %p, %p, %p, %p), stub\n",625 FIXME(__FUNCTION__"(%p, %04x, %08lx, %p, %p, %p, %p, %p), stub\n", 608 626 pSecurityDescriptor, ClientToken, DesiredAccess, GenericMapping, 609 627 PrivilegeSet, PrivilegeSetLength, GrantedAccess, AccessStatus); … … 612 630 } 613 631 614 /************************************************************************* 615 * SetThreadToken [ADVAPI32.231] 616 * 617 * Assigns an "impersonation token" to a thread so it can assume the 618 * security privledges of another thread or process. Can also remove 619 * a previously assigned token. Only supported on NT - it's a stub 620 * exactly like this one on Win9X. 621 * 622 */ 623 624 BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token) 625 { 626 FIXME_(advapi)("(%p, %x): stub\n", thread, token); 627 628 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 629 630 return FALSE; 631 } 632 633 634 635 632 /***************************************************************************** 633 * Name : InitializeAcl 634 * Purpose : The InitializeAcl function creates a new ACL structure. 635 * An ACL is an access-control list. 636 * Parameters: PACL pAcl address of access-control list 637 * DWORD nAclLength size of access-control list 638 * DWORD dwAclRevision revision level of access-control list 639 * Variables : 640 * Result : 641 * Remark : 642 * Status : UNTESTED STUB 643 * 644 * Author : Patrick Haller [Tue, 1998/06/16 23:00] 645 *****************************************************************************/ 646 647 BOOL WIN32API InitializeAcl(PACL pAcl, 648 DWORD nAclLength, 649 DWORD dwAclRevision) 650 { 651 dprintf(("ADVAPI32: InitializeAcl(%08xh,%08xh,%08xh)", 652 pAcl, 653 nAclLength, 654 dwAclRevision)); 655 656 CallWin32ToNt (RtlCreateAcl(pAcl, nAclLength, dwAclRevision)); 657 }
Note:
See TracChangeset
for help on using the changeset viewer.