Ignore:
Timestamp:
Oct 10, 1999, 12:28:59 AM (26 years ago)
Author:
phaller
Message:

Fix: debug info

File:
1 edited

Legend:

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

    r1153 r1237  
    1 /* $Id: virtual.cpp,v 1.15 1999-10-06 10:02:34 phaller Exp $ */
     1/* $Id: virtual.cpp,v 1.16 1999-10-09 22:28:59 phaller Exp $ */
    22
    33/*
     
    256256//******************************************************************************
    257257//******************************************************************************
    258 LPVOID WIN32API VirtualAlloc(LPVOID lpvAddress, DWORD cbSize, DWORD fdwAllocationType,
    259                              DWORD fdwProtect)
    260 {
    261  PVOID Address = lpvAddress;
    262  ULONG flag = 0, base;
    263  DWORD rc;
    264 
    265   dprintf(("VirtualAlloc at %X; %d bytes, fAlloc %d, fProtect %d\n", (int)lpvAddress, cbSize, fdwAllocationType, fdwProtect));
     258ODINFUNCTION4(LPVOID, VirtualAlloc, LPVOID, lpvAddress,
     259                                    DWORD,  cbSize,
     260                                    DWORD,  fdwAllocationType,
     261                                    DWORD,  fdwProtect)
     262{
     263  PVOID Address = lpvAddress;
     264  ULONG flag = 0, base;
     265  DWORD rc;
    266266
    267267  if (cbSize > 0x7fc00000)  /* 2Gb - 4Mb */
     
    397397}
    398398//******************************************************************************
    399 //LPVOID lpvAddress;            /* address of region of committed pages */
    400 //DWORD  cbSize;                /* size of the region   */
    401 //DWORD  fdwNewProtect;         /* desired access protection    */
    402 //PDWORD pfdwOldProtect;        /* address of variable to get old protection    */
     399//LPVOID lpvAddress;            /* address of region of committed pages       */
     400//DWORD  cbSize;                /* size of the region                         */
     401//DWORD  fdwNewProtect;         /* desired access protection                  */
     402//PDWORD pfdwOldProtect;        /* address of variable to get old protection  */
    403403//TODO: Not 100% complete
    404404//TODO: SetLastError on failure
    405405//******************************************************************************
    406 BOOL WIN32API VirtualProtect(LPVOID lpvAddress, DWORD cbSize, DWORD fdwNewProtect,
    407                              DWORD *pfdwOldProtect)
     406
     407ODINFUNCTION4(BOOL, VirtualProtect, LPVOID, lpvAddress,
     408                                    DWORD,  cbSize,
     409                                    DWORD,  fdwNewProtect,
     410                                    DWORD*, pfdwOldProtect)
    408411{
    409412 DWORD rc;
     
    473476//******************************************************************************
    474477//******************************************************************************
    475 DWORD WIN32API VirtualQuery(LPCVOID lpvAddress, LPMEMORY_BASIC_INFORMATION pmbiBuffer,
    476                             DWORD cbLength)
    477 {
    478  ULONG  cbRangeSize, dAttr;
    479  DWORD rc;
     478ODINFUNCTION3(DWORD, VirtualQuery, LPCVOID, lpvAddress,
     479                                   LPMEMORY_BASIC_INFORMATION, pmbiBuffer,
     480                                   DWORD,   cbLength)
     481{
     482  ULONG  cbRangeSize, dAttr;
     483  DWORD rc;
    480484
    481485  if(lpvAddress == NULL || pmbiBuffer == NULL || cbLength == 0) {
     
    543547//******************************************************************************
    544548//******************************************************************************
    545 BOOL WIN32API VirtualLock( LPVOID lpAddress, DWORD dwSize )
     549ODINFUNCTION2(BOOL, VirtualLock, LPVOID, lpAddress,
     550                                 DWORD,  dwSize)
    546551{
    547552  dprintf(("VirtualLock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     
    550555
    551556//******************************************************************************
    552 BOOL WIN32API VirtualUnlock( LPVOID lpAddress, DWORD dwSize )
     557ODINFUNCTION2(BOOL, VirtualUnlock, LPVOID, lpAddress,
     558                                   DWORD,  dwSize)
    553559{
    554560  dprintf(("VirtualUnlock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     
    575581 *****************************************************************************/
    576582
    577 BOOL WIN32API VirtualProtectEx(HANDLE hProcess,
    578                                   LPVOID lpvAddress,
    579                                   DWORD  cbSize,
    580                                   DWORD  fdwNewProtect,
    581                                   LPDWORD pfdwOldProtect)
    582 {
    583   dprintf(("KERNEL32: VirtualProtectEx(%08x,%08xh,%08xh,%08xh,%08xh) not implemented for different processes.\n",
    584            hProcess,
    585            lpvAddress,
    586            cbSize,
    587            fdwNewProtect,
    588            pfdwOldProtect));
    589 
     583ODINFUNCTION5(BOOL, VirtualProtectEx, HANDLE,  hProcess,
     584                                      LPVOID,  lpvAddress,
     585                                      DWORD,   cbSize,
     586                                      DWORD,   fdwNewProtect,
     587                                      LPDWORD, pfdwOldProtect)
     588{
    590589  return VirtualProtect(lpvAddress, cbSize, fdwNewProtect, pfdwOldProtect);
    591590}
     
    608607 *****************************************************************************/
    609608
    610 DWORD WIN32API VirtualQueryEx(HANDLE  hProcess,
    611                                  LPCVOID  lpvAddress,
    612                                  LPMEMORY_BASIC_INFORMATION pmbiBuffer,
    613                                  DWORD   cbLength)
    614 {
    615   dprintf(("KERNEL32: VirtualQueryEx(%08x,%08xh,%08xh,%08xh) not implemented for different processes.\n",
    616            hProcess,
    617            lpvAddress,
    618            pmbiBuffer,
    619            cbLength));
    620 
     609ODINFUNCTION4(DWORD, VirtualQueryEx, HANDLE,  hProcess,
     610                                     LPCVOID, lpvAddress,
     611                                     LPMEMORY_BASIC_INFORMATION, pmbiBuffer,
     612                                     DWORD,   cbLength)
     613{
    621614  return VirtualQuery(lpvAddress, pmbiBuffer, cbLength);
    622615}
    623 //******************************************************************************
    624 //******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.