Changeset 3588 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- May 22, 2000, 9:08:01 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r3483 r3588 1 /* $Id: wprocess.cpp,v 1.8 0 2000-05-02 20:53:15sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.81 2000-05-22 19:08:01 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 static THDB *threadList = 0; 63 63 static VMutex threadListMutex; 64 65 //TODO: This should not be here: (need to rearrange NTDLL; kernel32 can't depend on ntdll) 66 BOOLEAN (* WINAPI RtlAllocateAndInitializeSid) ( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, 67 BYTE nSubAuthorityCount, 68 DWORD nSubAuthority0, 69 DWORD nSubAuthority1, 70 DWORD nSubAuthority2, 71 DWORD nSubAuthority3, 72 DWORD nSubAuthority4, 73 DWORD nSubAuthority5, 74 DWORD nSubAuthority6, 75 DWORD nSubAuthority7, 76 PSID *pSid); 77 static HINSTANCE hInstNTDll = 0; 64 78 //****************************************************************************** 65 79 //****************************************************************************** … … 202 216 } 203 217 else thdb->flags = 0; //todo textmode 218 219 //Initialize thread security objects (TODO: Not complete) 220 if(hInstNTDll == 0) { 221 hInstNTDll = LoadLibraryA("NTDLL.DLL"); 222 *(ULONG *)&RtlAllocateAndInitializeSid = (ULONG)GetProcAddress(hInstNTDll, "RtlAllocateAndInitializeSid"); 223 if(RtlAllocateAndInitializeSid == NULL) { 224 DebugInt3(); 225 } 226 } 227 SID_IDENTIFIER_AUTHORITY sidIdAuth = {0}; 228 thdb->threadinfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED; 229 RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &thdb->threadinfo.SidUser.User.Sid); 230 thdb->threadinfo.SidUser.User.Attributes = 0; //????????? 231 232 thdb->threadinfo.pTokenGroups = (TOKEN_GROUPS*)malloc(sizeof(TOKEN_GROUPS)); 233 thdb->threadinfo.pTokenGroups->GroupCount = 1; 234 RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &thdb->threadinfo.PrimaryGroup.PrimaryGroup); 235 thdb->threadinfo.pTokenGroups->Groups[0].Sid = thdb->threadinfo.PrimaryGroup.PrimaryGroup; 236 thdb->threadinfo.pTokenGroups->Groups[0].Attributes = 0; //???? 237 // pPrivilegeSet = NULL; 238 // pTokenPrivileges= NULL; 239 // TokenOwner = {0}; 240 // DefaultDACL = {0}; 241 // TokenSource = {0}; 242 thdb->threadinfo.TokenType = TokenPrimary; 204 243 205 244 if(fMainThread)
Note:
See TracChangeset
for help on using the changeset viewer.