Ignore:
Timestamp:
Jan 6, 2000, 9:05:00 PM (26 years ago)
Author:
sandervl
Message:

Security api updates

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:52 sandervl Exp $ */
     1/* $Id: security.cpp,v 1.3 2000-01-06 20:05:00 sandervl Exp $ */
    22/*
    33 * Win32 security API functions for OS/2
     
    102102}
    103103
     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
     114BOOL 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
    104123/******************************************************************************
    105124 * AdjustTokenPrivileges [ADVAPI32.10]
     
    346365                    PSECURITY_DESCRIPTOR lpselfsecdesc, LPDWORD lpbuflen )
    347366{
    348         FIXME_(advapi)("(%p,%p,%p),stub!\n",lpabssecdesc,lpselfsecdesc,lpbuflen);
     367        FIXME(__FUNCTION__"(%p,%p,%p),stub!\n",lpabssecdesc,lpselfsecdesc,lpbuflen);
    349368        return TRUE;
    350369}
     
    356375BOOL WINAPI GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
    357376                 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);
    359378        return 1;
    360379}               
     
    382401LookupPrivilegeValueW( LPCWSTR lpSystemName, LPCWSTR lpName, LPVOID lpLuid )
    383402{
    384     FIXME_(advapi)("(%s,%s,%p): stub\n",debugstr_w(lpSystemName),
     403    FIXME(__FUNCTION__"(%s,%s,%p): stub\n",debugstr_w(lpSystemName),
    385404                  debugstr_w(lpName), lpLuid);
    386405    return TRUE;
     
    414433                    DWORD nLength, LPDWORD lpnLengthNeeded )
    415434{
    416   FIXME_(advapi)("(%s) : stub\n", debugstr_a(lpFileName));
     435  FIXME(__FUNCTION__"(%s) : stub\n", debugstr_a(lpFileName));
    417436  return TRUE;
    418437}
     
    438457                    DWORD nLength, LPDWORD lpnLengthNeeded )
    439458{
    440   FIXME_(advapi)("(%s) : stub\n", debugstr_w(lpFileName) );
     459  FIXME(__FUNCTION__"(%s) : stub\n", debugstr_w(lpFileName) );
    441460  return TRUE;
    442461}
    443462
     463/******************************************************************************
     464 * SetFileSecurity32A [ADVAPI32.182]
     465 * Sets the security of a file or directory
     466 */
     467BOOL 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 */
     484BOOL WINAPI
     485SetFileSecurityW( LPCWSTR lpFileName,
     486                    SECURITY_INFORMATION RequestedInformation,
     487                    PSECURITY_DESCRIPTOR pSecurityDescriptor )
     488{
     489  FIXME(__FUNCTION__"(%s) : stub\n", debugstr_w(lpFileName) );
     490  return TRUE;
     491}
    444492
    445493/******************************************************************************
     
    451499                     PSID_NAME_USE name_use )
    452500{
    453         FIXME_(security)("(%s,%p,%p,%p,%p,%p,%p): stub\n",
     501        FIXME(__FUNCTION__"(%s,%p,%p,%p,%p,%p,%p): stub\n",
    454502              system,sid,account,accountSize,domain,domainSize,name_use);
    455503        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     
    474522                     PSID_NAME_USE name_use )
    475523{
    476         FIXME_(security)("(%p,%p,%p,%p,%p,%p,%p): stub\n",
     524        FIXME(__FUNCTION__"(%p,%p,%p,%p,%p,%p,%p): stub\n",
    477525              system,sid,account,accountSize,domain,domainSize,name_use);
    478526        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     
    481529
    482530/******************************************************************************
    483  * SetFileSecurity32A [ADVAPI32.182]
    484  * Sets the security of a file or directory
    485  */
    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 directory
    497  *
    498  * PARAMS
    499  *   lpFileName           []
    500  *   RequestedInformation []
    501  *   pSecurityDescriptor  []
    502  */
    503 BOOL WINAPI
    504 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 /******************************************************************************
    513531 * QueryWindows31FilesMigration [ADVAPI32.266]
    514532 *
     
    519537QueryWindows31FilesMigration( DWORD x1 )
    520538{
    521         FIXME_(advapi)("(%ld):stub\n",x1);
     539        FIXME(__FUNCTION__"(%ld):stub\n",x1);
    522540        return TRUE;
    523541}
     
    536554                                               DWORD x4 )
    537555{
    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);
    539557        return TRUE;
    540558}
     
    555573              PLSA_HANDLE PolicyHandle)
    556574{
    557         FIXME_(advapi)("(%p,%p,0x%08lx,%p):stub\n",
     575        FIXME(__FUNCTION__"(%p,%p,0x%08lx,%p):stub\n",
    558576                       SystemName, ObjectAttributes,
    559577                       DesiredAccess, PolicyHandle);
     
    570588NotifyBootConfigStatus( DWORD x1 )
    571589{
    572         FIXME_(advapi)("(0x%08lx):stub\n",x1);
     590        FIXME(__FUNCTION__"(0x%08lx):stub\n",x1);
    573591        return 1;
    574592}
     
    583601RevertToSelf( void )
    584602{
    585         FIXME_(advapi)("(), stub\n");
     603        FIXME(__FUNCTION__"(), stub\n");
    586604        return TRUE;
    587605}
     
    593611ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
    594612{
    595     FIXME_(advapi)("(%08x), stub\n", ImpersonationLevel);
     613    FIXME(__FUNCTION__"(%08x), stub\n", ImpersonationLevel);
    596614    return TRUE;
    597615}
     
    605623            LPDWORD PrivilegeSetLength, LPDWORD GrantedAccess, LPBOOL AccessStatus)
    606624{
    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",
    608626                   pSecurityDescriptor, ClientToken, DesiredAccess, GenericMapping,
    609627                   PrivilegeSet, PrivilegeSetLength, GrantedAccess, AccessStatus);
     
    612630}
    613631
    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
     647BOOL 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.