Changeset 9681 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Jan 16, 2003, 2:16:59 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r9680 r9681 1 /* $Id: wprocess.cpp,v 1.17 4 2003-01-16 12:47:52sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.175 2003-01-16 13:16:59 sandervl Exp $ */ 2 2 3 3 /* … … 86 86 87 87 //TODO: This should not be here: (need to rearrange NTDLL; kernel32 can't depend on ntdll) 88 BOOLEAN (* WINAPIRtlAllocateAndInitializeSid) ( 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);88 static 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); 99 99 static HINSTANCE hInstNTDll = 0; 100 100 … … 310 310 if(hInstNTDll == 0) { 311 311 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) { 314 314 DebugInt3(); 315 315 } … … 318 318 winteb->o.odin.threadinfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED; 319 319 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); 322 322 } 323 323 else DebugInt3(); … … 328 328 winteb->o.odin.threadinfo.pTokenGroups->GroupCount = 1; 329 329 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); 332 332 } 333 333 else DebugInt3();
Note:
See TracChangeset
for help on using the changeset viewer.