Ignore:
Timestamp:
Jan 16, 2003, 2:16:59 PM (23 years ago)
Author:
sandervl
Message:

PF: renamed RtlAllocateAndInitializeSid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wprocess.cpp

    r9680 r9681  
    1 /* $Id: wprocess.cpp,v 1.174 2003-01-16 12:47:52 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.175 2003-01-16 13:16:59 sandervl Exp $ */
    22
    33/*
     
    8686
    8787//TODO: This should not be here: (need to rearrange NTDLL; kernel32 can't depend on ntdll)
    88 BOOLEAN (* WINAPI RtlAllocateAndInitializeSid) ( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
    89                                                  BYTE nSubAuthorityCount,
    90                                                  DWORD nSubAuthority0,
    91                                                  DWORD nSubAuthority1,
    92                                                  DWORD nSubAuthority2,
    93                                                  DWORD nSubAuthority3,
    94                                                  DWORD nSubAuthority4,
    95                                                  DWORD nSubAuthority5,
    96                                                  DWORD nSubAuthority6,
    97                                                  DWORD nSubAuthority7,
    98                                                  PSID *pSid);
     88static BOOLEAN (* WINAPI NTDLL_RtlAllocateAndInitializeSid) ( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
     89                                                              BYTE nSubAuthorityCount,
     90                                                              DWORD nSubAuthority0,
     91                                                              DWORD nSubAuthority1,
     92                                                              DWORD nSubAuthority2,
     93                                                              DWORD nSubAuthority3,
     94                                                              DWORD nSubAuthority4,
     95                                                              DWORD nSubAuthority5,
     96                                                              DWORD nSubAuthority6,
     97                                                              DWORD nSubAuthority7,
     98                                                              PSID *pSid);
    9999static HINSTANCE hInstNTDll = 0;
    100100
     
    310310    if(hInstNTDll == 0) {
    311311        hInstNTDll = LoadLibraryA("NTDLL.DLL");
    312         *(ULONG *)&RtlAllocateAndInitializeSid = (ULONG)GetProcAddress(hInstNTDll, "RtlAllocateAndInitializeSid");
    313         if(RtlAllocateAndInitializeSid == NULL) {
     312        *(ULONG *)&NTDLL_RtlAllocateAndInitializeSid = (ULONG)GetProcAddress(hInstNTDll, "RtlAllocateAndInitializeSid");
     313        if(NTDLL_RtlAllocateAndInitializeSid == NULL) {
    314314            DebugInt3();
    315315        }
     
    318318    winteb->o.odin.threadinfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED;
    319319
    320     if (NULL != RtlAllocateAndInitializeSid) {
    321         RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.SidUser.User.Sid);
     320    if (NULL != NTDLL_RtlAllocateAndInitializeSid) {
     321        NTDLL_RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.SidUser.User.Sid);
    322322    }
    323323    else DebugInt3();
     
    328328    winteb->o.odin.threadinfo.pTokenGroups->GroupCount = 1;
    329329
    330     if (NULL != RtlAllocateAndInitializeSid) {
    331          RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.PrimaryGroup.PrimaryGroup);
     330    if (NULL != NTDLL_RtlAllocateAndInitializeSid) {
     331         NTDLL_RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.PrimaryGroup.PrimaryGroup);
    332332    }
    333333    else DebugInt3();
Note: See TracChangeset for help on using the changeset viewer.