- Timestamp:
- Feb 13, 2003, 6:16:50 PM (23 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.CPP
r9653 r9802 1 /* $Id: KERNEL32.CPP,v 1.7 3 2003-01-10 12:57:12sandervl Exp $ */1 /* $Id: KERNEL32.CPP,v 1.74 2003-02-13 17:16:47 sandervl Exp $ */ 2 2 3 3 /* … … 398 398 399 399 400 //******************************************************************************401 402 /***********************************************************************403 * RtlFillMemory (KERNEL32.441)404 */405 VOID WIN32API RtlFillMemory(LPVOID ptr,406 UINT len,407 UINT fill )408 {409 #ifdef DEBUG_LOCAL410 dprintf(("KERNEL32: RtlFillMemory(%08x,%08x,%08x)\n",411 ptr,412 len,413 fill));414 #endif415 416 memset(ptr,417 fill,418 len );419 }420 421 422 /***********************************************************************423 * RtlMoveMemory (KERNEL32.442)424 */425 VOID WIN32API RtlMoveMemory(LPVOID dst,426 LPCVOID src,427 UINT len )428 {429 dprintf2(("KERNEL32: RtlMoveMemory(%08x,%08x,%08x)\n",430 dst,431 src,432 len));433 434 memmove(dst,435 src,436 len );437 }438 439 440 /***********************************************************************441 * RtlZeroMemory (KERNEL32.444)442 */443 VOID WIN32API RtlZeroMemory(LPVOID ptr,444 UINT len)445 {446 dprintf2(("KERNEL32: RtlZeroMemory(%08x,%08x)\n",447 ptr,448 len));449 450 memset(ptr,451 0,452 len);453 }454 455 //******************************************************************************456 457 458 459 460 461 462 463 464 400 /***************************************************************************** 465 401 * Name : BOOL GetSystemPowerStatus -
trunk/src/kernel32/KERNEL32.DEF
r9800 r9802 1 ; $Id: KERNEL32.DEF,v 1.15 0 2003-02-13 15:30:51sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.151 2003-02-13 17:16:48 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 -
trunk/src/kernel32/dbgwrap.cpp
r8449 r9802 862 862 DEBUGWRAP8(IsBadStringPtrW); 863 863 DEBUGWRAP8(IsBadWritePtr); 864 DEBUGWRAP_LVL2_12(RtlFillMemory);865 DEBUGWRAP_LVL2_12(RtlMoveMemory);866 DEBUGWRAP_LVL2_8(RtlZeroMemory);867 864 868 865 -
trunk/src/kernel32/kernel32.mak
r9533 r9802 1 # $Id: kernel32.mak,v 1.3 7 2002-12-20 10:38:57sandervl Exp $1 # $Id: kernel32.mak,v 1.38 2003-02-13 17:16:49 sandervl Exp $ 2 2 3 3 # … … 161 161 $(ODIN32_LIB)\WIN32K.LIB \ 162 162 $(ODIN32_LIB)\UNICODE.LIB \ 163 $(ODIN32_LIB)\ntdll.lib \ 163 164 so32dll.lib \ 164 165 tcp32dll.lib \ -
trunk/src/kernel32/kernel32dbg.def
r9800 r9802 1 ; $Id: kernel32dbg.def,v 1.2 5 2003-02-13 15:30:52sandervl Exp $1 ; $Id: kernel32dbg.def,v 1.26 2003-02-13 17:16:49 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 727 727 ResetEvent = _DbgResetEvent@4 @586 728 728 ResumeThread = _DbgResumeThread@4 @587 729 RtlFillMemory = _ DbgRtlFillMemory@12@588730 RtlMoveMemory = _ DbgRtlMoveMemory@12@589731 RtlUnwind = _ DbgRtlUnwind@16@590732 RtlZeroMemory = _ DbgRtlZeroMemory@8@591729 RtlFillMemory = _RtlFillMemory@12 @588 730 RtlMoveMemory = _RtlMoveMemory@12 @589 731 RtlUnwind = _RtlUnwind@16 @590 732 RtlZeroMemory = _RtlZeroMemory@8 @591 733 733 SMapLS = _DbgSMapLS@4 @592 ;W95 734 734 SMapLS_IP_EBP_12 = _DbgSMapLS_IP_EBP_12@4 @593 ;W95 -
trunk/src/kernel32/wprocess.cpp
r9800 r9802 1 /* $Id: wprocess.cpp,v 1.1 79 2003-02-13 15:30:53sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.180 2003-02-13 17:16:50 sandervl Exp $ */ 2 2 3 3 /* … … 49 49 #include "directory.h" 50 50 51 #include <win\ntddk.h> 52 51 53 #define DBG_LOCALLOG DBG_wprocess 52 54 #include "dbglocal.h" … … 87 89 static VMutex threadListMutex; 88 90 89 //TODO: This should not be here: (need to rearrange NTDLL; kernel32 can't depend on ntdll)90 static BOOLEAN (* WINAPI NTDLL_RtlAllocateAndInitializeSid) ( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,91 BYTE nSubAuthorityCount,92 DWORD nSubAuthority0,93 DWORD nSubAuthority1,94 DWORD nSubAuthority2,95 DWORD nSubAuthority3,96 DWORD nSubAuthority4,97 DWORD nSubAuthority5,98 DWORD nSubAuthority6,99 DWORD nSubAuthority7,100 PSID *pSid);101 static HINSTANCE hInstNTDll = 0;102 91 103 92 //****************************************************************************** … … 310 299 311 300 //Initialize thread security objects (TODO: Not complete) 312 if(hInstNTDll == 0) {313 hInstNTDll = LoadLibraryA("NTDLL.DLL");314 *(ULONG *)&NTDLL_RtlAllocateAndInitializeSid = (ULONG)GetProcAddress(hInstNTDll, "RtlAllocateAndInitializeSid");315 if(NTDLL_RtlAllocateAndInitializeSid == NULL) {316 DebugInt3();317 }318 }319 301 SID_IDENTIFIER_AUTHORITY sidIdAuth = {0}; 320 302 winteb->o.odin.threadinfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED; 321 303 322 if (NULL != NTDLL_RtlAllocateAndInitializeSid) { 323 NTDLL_RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.SidUser.User.Sid); 324 } 325 else DebugInt3(); 304 RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.SidUser.User.Sid); 326 305 327 306 winteb->o.odin.threadinfo.SidUser.User.Attributes = 0; //????????? … … 330 309 winteb->o.odin.threadinfo.pTokenGroups->GroupCount = 1; 331 310 332 if (NULL != NTDLL_RtlAllocateAndInitializeSid) { 333 NTDLL_RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.PrimaryGroup.PrimaryGroup); 334 } 335 else DebugInt3(); 311 RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &winteb->o.odin.threadinfo.PrimaryGroup.PrimaryGroup); 336 312 337 313 winteb->o.odin.threadinfo.pTokenGroups->Groups[0].Sid = winteb->o.odin.threadinfo.PrimaryGroup.PrimaryGroup;
Note:
See TracChangeset
for help on using the changeset viewer.