Changeset 9975 for trunk/src


Ignore:
Timestamp:
Apr 2, 2003, 2:58:58 PM (22 years ago)
Author:
sandervl
Message:

YD: Changes for header updates

Location:
trunk/src
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/font.cpp

    r9443 r9975  
    1 /* $Id: font.cpp,v 1.28 2002-11-29 13:46:03 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.29 2003-04-02 12:58:58 sandervl Exp $ */
    22
    33/*
     
    372372  memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA));
    373373  memset(logFont.elfScript, 0, sizeof(logFont.elfScript));
    374   memcpy(&textM.ntmetm, lpTextM, sizeof(textM.ntmetm));
    375   memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature));
    376 
    377   dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmetm.tmHeight));
     374  memcpy(&textM.ntmTm, lpTextM, sizeof(textM.ntmTm));
     375  memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig));
     376
     377  dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmTm.tmHeight));
    378378
    379379  int rc = proc(&logFont, &textM, arg3, lpEnumData->userData);
     
    400400  AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1);
    401401
    402   textM.ntmetm.tmHeight = lpTextM->tmHeight;
    403   textM.ntmetm.tmAscent = lpTextM->tmAscent;
    404   textM.ntmetm.tmDescent = lpTextM->tmDescent;
    405   textM.ntmetm.tmInternalLeading = lpTextM->tmInternalLeading;
    406   textM.ntmetm.tmExternalLeading = lpTextM->tmExternalLeading;
    407   textM.ntmetm.tmAveCharWidth = lpTextM->tmAveCharWidth;
    408   textM.ntmetm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;
    409   textM.ntmetm.tmWeight = lpTextM->tmWeight;
    410   textM.ntmetm.tmOverhang = lpTextM->tmOverhang;
    411   textM.ntmetm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;
    412   textM.ntmetm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;
    413   textM.ntmetm.tmFirstChar = lpTextM->tmFirstChar;
    414   textM.ntmetm.tmLastChar = lpTextM->tmLastChar;
    415   textM.ntmetm.tmDefaultChar = lpTextM->tmDefaultChar;
    416   textM.ntmetm.tmBreakChar = lpTextM->tmBreakChar;
    417   textM.ntmetm.tmItalic = lpTextM->tmItalic;
    418   textM.ntmetm.tmUnderlined = lpTextM->tmUnderlined;
    419   textM.ntmetm.tmStruckOut = lpTextM->tmStruckOut;
    420   textM.ntmetm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;
    421   textM.ntmetm.tmCharSet = lpTextM->tmCharSet;
    422   textM.ntmetm.ntmFlags = 0;
    423   textM.ntmetm.ntmSizeEM = 0;
    424   textM.ntmetm.ntmCellHeight = 0;
    425   textM.ntmetm.ntmAvgWidth = 0;
    426   memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature));
    427 
    428   dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmetm.tmHeight));
     402  textM.ntmTm.tmHeight = lpTextM->tmHeight;
     403  textM.ntmTm.tmAscent = lpTextM->tmAscent;
     404  textM.ntmTm.tmDescent = lpTextM->tmDescent;
     405  textM.ntmTm.tmInternalLeading = lpTextM->tmInternalLeading;
     406  textM.ntmTm.tmExternalLeading = lpTextM->tmExternalLeading;
     407  textM.ntmTm.tmAveCharWidth = lpTextM->tmAveCharWidth;
     408  textM.ntmTm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;
     409  textM.ntmTm.tmWeight = lpTextM->tmWeight;
     410  textM.ntmTm.tmOverhang = lpTextM->tmOverhang;
     411  textM.ntmTm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;
     412  textM.ntmTm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;
     413  textM.ntmTm.tmFirstChar = lpTextM->tmFirstChar;
     414  textM.ntmTm.tmLastChar = lpTextM->tmLastChar;
     415  textM.ntmTm.tmDefaultChar = lpTextM->tmDefaultChar;
     416  textM.ntmTm.tmBreakChar = lpTextM->tmBreakChar;
     417  textM.ntmTm.tmItalic = lpTextM->tmItalic;
     418  textM.ntmTm.tmUnderlined = lpTextM->tmUnderlined;
     419  textM.ntmTm.tmStruckOut = lpTextM->tmStruckOut;
     420  textM.ntmTm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;
     421  textM.ntmTm.tmCharSet = lpTextM->tmCharSet;
     422  textM.ntmTm.ntmFlags = 0;
     423  textM.ntmTm.ntmSizeEM = 0;
     424  textM.ntmTm.ntmCellHeight = 0;
     425  textM.ntmTm.ntmAvgWidth = 0;
     426  memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig));
     427
     428  dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmTm.tmHeight));
    429429  rc = proc(&LogFont, &textM, arg3, lpEnumData->userData);
    430430  SetFS(selTIB);           // switch back to the saved FS selector
  • trunk/src/gdi32/icm.cpp

    r9429 r9975  
    1 /* $Id: icm.cpp,v 1.3 2002-11-26 10:53:09 sandervl Exp $ */
     1/* $Id: icm.cpp,v 1.4 2003-04-02 12:58:58 sandervl Exp $ */
    22
    33/*
     
    3434BOOL WIN32API DeleteColorSpace(HCOLORSPACE hColorSpace)
    3535{
    36         dprintf(("GDI32: DeleteColorSpace - stub\n"));
    37         return FALSE;
    38 }
    39 //******************************************************************************
    40 //******************************************************************************
    41 BOOL WIN32API SetColorSpace(HDC hdc, HCOLORSPACE hColorSpace)
    42 {
    43         dprintf(("GDI32: SetColorSpace - stub\n"));
    44         return FALSE;
     36    dprintf(("GDI32: DeleteColorSpace - stub\n"));
     37    return FALSE;
     38}
     39//******************************************************************************
     40//******************************************************************************
     41HCOLORSPACE WIN32API SetColorSpace(HDC hdc, HCOLORSPACE hColorSpace)
     42{
     43    dprintf(("GDI32: SetColorSpace - stub\n"));
     44    return 0;
    4545}
    4646//******************************************************************************
  • trunk/src/kernel32/HandleManager.cpp

    r9971 r9975  
    1 /* $Id: HandleManager.cpp,v 1.97 2003-04-02 11:03:30 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.98 2003-04-02 12:58:27 sandervl Exp $ */
    22
    33/*
     
    18681868{
    18691869  int       iIndex;                           /* index into the handle table */
    1870   DWORD     dwResult;                /* result from the device handler's API */
     1870  BOOL      dwResult;                /* result from the device handler's API */
    18711871  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    18721872
     
    19111911{
    19121912  int       iIndex;                           /* index into the handle table */
    1913   DWORD     dwResult;                /* result from the device handler's API */
     1913  BOOL      dwResult;                /* result from the device handler's API */
    19141914  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    19151915
     
    19521952{
    19531953  int       iIndex;                           /* index into the handle table */
    1954   DWORD     dwResult;                /* result from the device handler's API */
     1954  BOOL      dwResult;                /* result from the device handler's API */
    19551955  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    19561956
     
    19901990{
    19911991  int       iIndex;                           /* index into the handle table */
    1992   DWORD     dwResult;                /* result from the device handler's API */
     1992  BOOL      dwResult;                /* result from the device handler's API */
    19931993  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    19941994
     
    46564656 * Author    : Przemyslaw Dobrowolski
    46574657 *****************************************************************************/
    4658 DWORD HMTransactNamedPipe(HANDLE hPipe,
    4659                           LPVOID       lpvWriteBuf,
    4660                           DWORD        cbWriteBuf,
    4661                           LPVOID       lpvReadBuf,
    4662                           DWORD        cbReadBuf,
    4663                           LPDWORD      lpcbRead,
    4664                           LPOVERLAPPED lpo)
    4665 {
    4666   int       iIndex;                           /* index into the handle table */
    4667   DWORD     lpResult;                /* result from the device handler's API */
     4658BOOL HMTransactNamedPipe(HANDLE hPipe,
     4659                         LPVOID       lpvWriteBuf,
     4660                         DWORD        cbWriteBuf,
     4661                         LPVOID       lpvReadBuf,
     4662                         DWORD        cbReadBuf,
     4663                         LPDWORD      lpcbRead,
     4664                         LPOVERLAPPED lpo)
     4665{
     4666  int       iIndex;                           /* index into the handle table */
     4667  BOOL      lpResult;                /* result from the device handler's API */
    46684668  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    46694669
  • trunk/src/kernel32/conbuffer.cpp

    r7550 r9975  
    1 /* $Id: conbuffer.cpp,v 1.17 2001-12-05 18:05:59 sandervl Exp $ */
     1/* $Id: conbuffer.cpp,v 1.18 2003-04-02 12:58:28 sandervl Exp $ */
    22
    33/*
     
    182182 *****************************************************************************/
    183183
    184 DWORD HMDeviceConsoleBufferClass::CloseHandle(PHMHANDLEDATA pHMHandleData)
     184BOOL HMDeviceConsoleBufferClass::CloseHandle(PHMHANDLEDATA pHMHandleData)
    185185{
    186186
     
    203203  }
    204204
    205   return(NO_ERROR);
     205  return TRUE;
    206206}
    207207
  • trunk/src/kernel32/conbuffer.h

    r7549 r9975  
    1 /* $Id: conbuffer.h,v 1.5 2001-12-05 14:15:57 sandervl Exp $ */
     1/* $Id: conbuffer.h,v 1.6 2003-04-02 12:58:28 sandervl Exp $ */
    22
    33/*
     
    7979  virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData);
    8080
    81   virtual DWORD  CloseHandle(PHMHANDLEDATA pHMHandleData);
     81  virtual BOOL  CloseHandle(PHMHANDLEDATA pHMHandleData);
    8282
    8383  virtual DWORD  _DeviceRequest (PHMHANDLEDATA pHMHandleData,
  • trunk/src/kernel32/handlenames.cpp

    r8327 r9975  
    1 /* $Id: handlenames.cpp,v 1.5 2002-04-29 17:05:29 sandervl Exp $ */
     1/* $Id: handlenames.cpp,v 1.6 2003-04-02 12:58:29 sandervl Exp $ */
    22
    33/*
     
    3131#include <stdlib.h>
    3232#include <string.h>
     33#include <win32type.h>
    3334
    3435#include <ccollection.h>
  • trunk/src/kernel32/heapstring.cpp

    r7854 r9975  
    1 /* $Id: heapstring.cpp,v 1.51 2002-02-09 17:27:31 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.52 2003-04-02 12:58:29 sandervl Exp $ */
    22/*
    33 * Project Odin Software License can be found in LICENSE.TXT
     
    547547    lstrcpynWtoA(ascii,
    548548               unicode,
    549                lstrlenW((UniChar*)unicode)+1); //end included
     549               lstrlenW(unicode)+1); //end included
    550550
    551551    return ascii;
  • trunk/src/kernel32/hmdevice.cpp

    r9748 r9975  
    1 /* $Id: hmdevice.cpp,v 1.34 2003-02-04 11:28:56 sandervl Exp $ */
     1/* $Id: hmdevice.cpp,v 1.35 2003-04-02 12:58:29 sandervl Exp $ */
    22
    33/*
     
    488488
    489489/*****************************************************************************
    490  * Name      : DWORD HMDeviceHandler::LockFile
     490 * Name      : BOOL HMDeviceHandler::LockFile
    491491 * Purpose   : file locking
    492492 * Parameters: PHMHANDLEDATA pHMHandleData
     
    503503 *****************************************************************************/
    504504
    505 DWORD HMDeviceHandler::LockFile(PHMHANDLEDATA pHMHandleData,
    506                                     DWORD         arg2,
    507                                     DWORD         arg3,
    508                                     DWORD         arg4,
    509                                     DWORD         arg5)
    510 {
    511   dprintf(("KERNEL32: HandleManager::DeviceHandler::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n",
    512            lpHMDeviceName,
    513            pHMHandleData,
    514            arg2,
    515            arg3,
    516            arg4,
    517            arg5));
    518 
    519   return(ERROR_INVALID_FUNCTION);
    520 }
    521 
    522 
    523 
    524 /*****************************************************************************
    525  * Name      : DWORD HMDeviceHandler::LockFileEx
     505BOOL HMDeviceHandler::LockFile(PHMHANDLEDATA pHMHandleData,
     506                               DWORD         arg2,
     507                               DWORD         arg3,
     508                               DWORD         arg4,
     509                               DWORD         arg5)
     510{
     511    dprintf(("KERNEL32: HandleManager::DeviceHandler::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n",
     512             lpHMDeviceName,
     513             pHMHandleData,
     514             arg2,
     515             arg3,
     516             arg4,
     517             arg5));
     518
     519    SetLastError(ERROR_INVALID_FUNCTION);
     520    return FALSE;
     521}
     522
     523
     524
     525/*****************************************************************************
     526 * Name      : BOOL HMDeviceHandler::LockFileEx
    526527 * Purpose   : file locking
    527528 * Parameters: PHMHANDLEDATA pHMHandleData
     
    539540 *****************************************************************************/
    540541
    541 DWORD HMDeviceHandler::LockFileEx(PHMHANDLEDATA pHMHandleData,
     542BOOL HMDeviceHandler::LockFileEx(PHMHANDLEDATA pHMHandleData,
    542543                                      DWORD         dwFlags,
    543544                                      DWORD         dwReserved,
     
    556557           lpOverlapped));
    557558
    558   return(ERROR_INVALID_FUNCTION);
    559 }
    560 
    561 
    562 /*****************************************************************************
    563  * Name      : DWORD HMDeviceHandler::OpenFile
     559    SetLastError(ERROR_INVALID_FUNCTION);
     560    return FALSE;
     561}
     562
     563
     564/*****************************************************************************
     565 * Name      : BOOL HMDeviceHandler::OpenFile
    564566 * Purpose   : this is called from the handle manager if a OpenFile() is
    565567 *             performed on a handle
     
    577579 *****************************************************************************/
    578580
    579 DWORD HMDeviceHandler::OpenFile (LPCSTR        lpFileName,
     581BOOL HMDeviceHandler::OpenFile (LPCSTR        lpFileName,
    580582                                 PHMHANDLEDATA pHMHandleData,
    581583                                 OFSTRUCT      *pOFStruct,
     
    589591           arg3));
    590592
    591   return(ERROR_INVALID_FUNCTION);
    592 }
    593 
    594 
    595 /*****************************************************************************
    596  * Name      : DWORD HMDeviceHandler::UnlockFile
     593    SetLastError(ERROR_INVALID_FUNCTION);
     594    return FALSE;
     595}
     596
     597
     598/*****************************************************************************
     599 * Name      : BOOL HMDeviceHandler::UnlockFile
    597600 * Purpose   : file locking
    598601 * Parameters: PHMHANDLEDATA pHMHandleData
     
    609612 *****************************************************************************/
    610613
    611 DWORD HMDeviceHandler::UnlockFile(PHMHANDLEDATA pHMHandleData,
     614BOOL HMDeviceHandler::UnlockFile(PHMHANDLEDATA pHMHandleData,
    612615                                      DWORD         arg2,
    613616                                      DWORD         arg3,
     
    623626           arg5));
    624627
    625   return(ERROR_INVALID_FUNCTION);
     628    SetLastError(ERROR_INVALID_FUNCTION);
     629    return FALSE;
    626630}
    627631
  • trunk/src/kernel32/hmfile.cpp

    r9911 r9975  
    1 /* $Id: hmfile.cpp,v 1.41 2003-03-06 10:44:33 sandervl Exp $ */
     1/* $Id: hmfile.cpp,v 1.42 2003-04-02 12:58:29 sandervl Exp $ */
    22
    33/*
     
    872872
    873873/*****************************************************************************
    874  * Name      : DWORD HMDeviceFileClass::LockFile
     874 * Name      : BOOL HMDeviceFileClass::LockFile
    875875 * Purpose   : file locking
    876876 * Parameters: PHMHANDLEDATA pHMHandleData
  • trunk/src/kernel32/npipe.cpp

    r7854 r9975  
    1 /* $Id: npipe.cpp,v 1.10 2002-02-09 17:27:32 sandervl Exp $ */
     1/* $Id: npipe.cpp,v 1.11 2003-04-02 12:58:30 sandervl Exp $ */
    22/*
    33 * Win32 Named pipes API
     
    389389
    390390/*****************************************************************************
    391  * Name      : DWORD TransactNamedPipe
     391 * Name      : BOOL TransactNamedPipe
    392392 * Purpose   : The TransactNamedPipe function combines into a single network
    393393 *             operation the functions that write a message to and read a
     
    408408 *****************************************************************************/
    409409
    410 DWORD WIN32API TransactNamedPipe(HANDLE  hNamedPipe,
    411                                  LPVOID  lpvWriteBuf,
    412                                  DWORD   cbWriteBuf,
    413                                  LPVOID  lpvReadBuf,
    414                                  DWORD   cbReadBuf,
    415                                  LPDWORD lpcbRead,
    416                                  LPOVERLAPPED lpo)
     410BOOL WIN32API TransactNamedPipe(HANDLE  hNamedPipe,
     411                                LPVOID  lpvWriteBuf,
     412                                DWORD   cbWriteBuf,
     413                                LPVOID  lpvReadBuf,
     414                                DWORD   cbReadBuf,
     415                                LPDWORD lpcbRead,
     416                                LPOVERLAPPED lpo)
    417417{
    418418  return(HMTransactNamedPipe( hNamedPipe,
  • trunk/src/kernel32/ole2nls.c

    r8938 r9975  
    1 /* $Id: ole2nls.c,v 1.5 2002-07-30 12:55:06 sandervl Exp $
     1/* $Id: ole2nls.c,v 1.6 2003-04-02 12:58:30 sandervl Exp $
    22 *
    33 *  National Language Support library
     
    25582558 */
    25592559INT WINAPI GetDateFormatA(LCID locale,DWORD flags,
    2560                   LPSYSTEMTIME xtime,
     2560                  CONST SYSTEMTIME *xtime,
    25612561                  LPCSTR format, LPSTR date,INT datelen)
    25622562{
     
    26332633 */
    26342634INT WINAPI GetDateFormatW(LCID locale,DWORD flags,
    2635                   LPSYSTEMTIME xtime,
     2635                  CONST SYSTEMTIME *xtime,
    26362636                  LPCWSTR format,
    26372637                  LPWSTR date, INT datelen)
     
    37023702GetTimeFormatA(LCID locale,        /* [in]  */
    37033703           DWORD flags,        /* [in]  */
    3704            LPSYSTEMTIME xtime, /* [in]  */
     3704           CONST SYSTEMTIME *xtime, /* [in]  */
    37053705           LPCSTR format,      /* [in]  */
    37063706           LPSTR timestr,      /* [out] */
     
    37503750GetTimeFormatW(LCID locale,        /* [in]  */
    37513751           DWORD flags,        /* [in]  */
    3752            LPSYSTEMTIME xtime, /* [in]  */
     3752           CONST SYSTEMTIME *xtime, /* [in]  */
    37533753           LPCWSTR format,     /* [in]  */
    37543754           LPWSTR timestr,     /* [out] */
  • trunk/src/kernel32/registry.cpp

    r9647 r9975  
    1 /* $Id: registry.cpp,v 1.20 2003-01-08 14:25:40 sandervl Exp $ */
     1/* $Id: registry.cpp,v 1.21 2003-04-02 12:58:30 sandervl Exp $ */
    22
    33/*
     
    270270 *****************************************************************************/
    271271
    272 LONG WIN32API RegDeleteKeyW(HKEY hKey, LPWSTR lpszSubKey)
     272LONG WIN32API RegDeleteKeyW(HKEY hKey, LPCWSTR lpszSubKey)
    273273{
    274274  char *astring = UnicodeToAsciiString(lpszSubKey);
     
    878878
    879879LONG WIN32API RegQueryValueExA(HKEY   hkey,
    880                                LPSTR   lpszValueName,
     880                               LPCSTR   lpszValueName,
    881881                               LPDWORD lpdwReserved,
    882882                               LPDWORD lpdwType,
     
    944944
    945945LONG WIN32API RegQueryValueExW(HKEY   hkey,
    946                                LPWSTR  lpszValueName,
     946                               LPCWSTR  lpszValueName,
    947947                               LPDWORD lpdwReserved,
    948948                               LPDWORD lpdwType,
  • trunk/src/kernel32/stubs.cpp

    r9748 r9975  
    1 /* $Id: stubs.cpp,v 1.38 2003-02-04 11:29:02 sandervl Exp $
     1/* $Id: stubs.cpp,v 1.39 2003-04-02 12:58:31 sandervl Exp $
    22 *
    33 * Win32 KERNEL32 Subsystem for OS/2
     
    11271127
    11281128/*****************************************************************************
    1129  * Name      : DWORD ReadProcessMemory
     1129 * Name      : BOOL ReadProcessMemory
    11301130 * Purpose   : The ReadProcessMemory function reads memory in a specified process.
    11311131 *             The entire area to be read must be accessible, or the operation fails.
     
    11431143 *****************************************************************************/
    11441144
    1145 DWORD WIN32API ReadProcessMemory(HANDLE  hProcess,
    1146                                  LPCVOID lpBaseAddress,
    1147                                  LPVOID  lpBuffer,
    1148                                  DWORD   cbRead,
    1149                                  LPDWORD lpNumberOfBytesRead)
     1145BOOL WIN32API ReadProcessMemory(HANDLE  hProcess,
     1146                                LPCVOID lpBaseAddress,
     1147                                LPVOID  lpBuffer,
     1148                                DWORD   cbRead,
     1149                                LPDWORD lpNumberOfBytesRead)
    11501150{
    11511151  dprintf(("Kernel32: ReadProcessMemory(%08xh,%08xh,%08xh,%08xh,%08xh) not completely implemented",
     
    13551355
    13561356/*****************************************************************************
    1357  * Name      : DWORD SetTapeParameters
     1357 * Name      : BOOL SetTapeParameters
    13581358 * Purpose   : The SetTapeParameters function either specifies the block size
    13591359 *             of a tape or configures the tape device.
     
    13781378           lpTapeInformation));
    13791379
    1380   return (ERROR_NOT_SUPPORTED);
     1380  SetLastError(ERROR_NOT_SUPPORTED);
     1381  return FALSE;
    13811382}
    13821383
     
    15671568
    15681569
    1569 /*****************************************************************************
    1570  * Name      : DWORD SetThreadPriorityBoost
    1571  * Purpose   : Unknown
    1572  * Parameters: Unknown (wrong)
    1573  * Variables :
    1574  * Result    : Unknown
    1575  * Remark    :
    1576  * Status    : UNTESTED STUB
    1577  *
    1578  * Author    : Patrick Haller [Tue, 1999/06/08 21:44]
    1579  *****************************************************************************/
    1580 
    1581 DWORD WIN32API SetThreadPriorityBoost(DWORD x1,
    1582                                       DWORD x2)
    1583 {
    1584   dprintf(("KERNEL32: SetThreadPriorityBoost(%08xh, %08xh) not implemented\n",
    1585            x1,
    1586            x2));
    1587 
    1588   return (0);
    1589 }
  • trunk/src/kernel32/thread.cpp

    r9945 r9975  
    1 /* $Id: thread.cpp,v 1.53 2003-03-27 14:00:54 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.54 2003-04-02 12:58:31 sandervl Exp $ */
    22
    33/*
     
    276276//******************************************************************************
    277277//******************************************************************************
     278/*****************************************************************************
     279 * Name      : BOOL SetThreadPriorityBoost
     280 * Purpose   : The SetThreadPriorityBoost function disables or enables
     281 *             the ability of the system to temporarily boost the priority
     282 *             of a thread.
     283 * Parameters: Unknown (wrong)
     284 * Variables :
     285 * Result    : Unknown
     286 * Remark    :
     287 * Status    : UNTESTED STUB
     288 *
     289 * Author    : Patrick Haller [Tue, 1999/06/08 21:44]
     290 *****************************************************************************/
     291
     292BOOL WIN32API SetThreadPriorityBoost(HANDLE hThread,
     293                                     BOOL DisablePriorityBoost)
     294{
     295  dprintf(("KERNEL32: SetThreadPriorityBoost(%08xh, %08xh) not implemented\n",
     296           hThread,DisablePriorityBoost));
     297
     298  return FALSE;
     299}
     300//******************************************************************************
     301//******************************************************************************
    278302Win32Thread::Win32Thread(LPTHREAD_START_ROUTINE pUserCallback, LPVOID lpData, DWORD dwFlags, HANDLE hThread)
    279303{
  • trunk/src/kernel32/windllpeldr.cpp

    r8913 r9975  
    1 /* $Id: windllpeldr.cpp,v 1.11 2002-07-23 13:51:48 sandervl Exp $ */
     1/* $Id: windllpeldr.cpp,v 1.12 2003-04-02 12:58:31 sandervl Exp $ */
    22
    33/*
     
    5353//******************************************************************************
    5454//******************************************************************************
    55 BOOL Win32PeLdrDll::init(ULONG reservedMem, ULONG ulPEOffset)
     55DWORD Win32PeLdrDll::init(ULONG reservedMem, ULONG ulPEOffset)
    5656{
    5757 char   modname[CCHMAXPATH];
     
    5959 HFILE  dllfile;
    6060 APIRET rc;
    61  BOOL   fRet;
     61 DWORD  dwRet;
    6262
    6363  strupr(szFileName);
     
    6565    strcat(szFileName, DLL_EXTENSION);
    6666  }
     67
    6768  dllfile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE);
    6869  if(dllfile == NULL) {//search in libpath for dll
     
    7879  }
    7980  else  OSLibDosClose(dllfile);
    80   fRet = Win32PeLdrImage::init(0);
     81
     82  dwRet = Win32PeLdrImage::init(0);
    8183  dllEntryPoint = (WIN32DLLENTRY)entryPoint;
    8284
     
    8688    dllEntryPoint = NULL;
    8789  }
    88   return fRet;
     90  return dwRet;
    8991}
    9092//******************************************************************************
  • trunk/src/kernel32/windllpeldr.h

    r8913 r9975  
    1 /* $Id: windllpeldr.h,v 1.3 2002-07-23 13:51:48 sandervl Exp $ */
     1/* $Id: windllpeldr.h,v 1.4 2003-04-02 12:58:31 sandervl Exp $ */
    22
    33/*
     
    2222virtual ~Win32PeLdrDll();
    2323
    24 virtual BOOL init(ULONG reservedMem, ULONG ulPEOffset = 0);
     24virtual DWORD init(ULONG reservedMem, ULONG ulPEOffset = 0);
    2525
    2626        BOOL  isLxDll() const;
Note: See TracChangeset for help on using the changeset viewer.