Ignore:
Timestamp:
Dec 5, 2001, 3:16:38 PM (24 years ago)
Author:
sandervl
Message:

preliminary changes for new overlapped io framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmdevice.h

    r7532 r7549  
    1 /* $Id: hmdevice.h,v 1.31 2001-12-03 12:13:08 sandervl Exp $ */
     1/* $Id: hmdevice.h,v 1.32 2001-12-05 14:16:00 sandervl Exp $ */
    22
    33/*
     
    3535#define HMTYPE_MUTEXSEM         8
    3636#define HMTYPE_SEMAPHORE        9
     37#define HMTYPE_COMPORT          10
     38#define HMTYPE_PARPORT          11
    3739//.....
    3840
     
    4446{
    4547  HANDLE          hHMHandle;             /* a copy of the OS/2 system handle */
    46 
    47   DWORD           dwType;                          /* handle type identifier */
     48  HANDLE          hWin32Handle;          // win32 handle
    4849
    4950  DWORD           dwAccess;                     /* access mode of the handle */
     
    99100                               DWORD   fdwOdinOptions);
    100101
    101                        /* this is a handler method for calls to CreateFile() */
    102   virtual DWORD  CreateFile (HANDLE        hHandle,
    103                              LPCSTR        lpFileName,
     102  /* this is a handler method for calls to CreateFile() */
     103  virtual DWORD  CreateFile (LPCSTR        lpFileName,
    104104                             PHMHANDLEDATA pHMHandleData,
    105105                             PVOID         lpSecurityAttributes,
    106106                             PHMHANDLEDATA pHMHandleDataTemplate);
    107107
    108                        /* this is a handler method for calls to   OpenFile() */
    109   virtual DWORD  OpenFile   (HANDLE        hHandle,
    110                              LPCSTR        lpFileName,
     108  /* this is a handler method for calls to   OpenFile() */
     109  virtual DWORD  OpenFile   (LPCSTR        lpFileName,
    111110                             PHMHANDLEDATA pHMHandleData,
    112111                             OFSTRUCT*     pOFStruct,
    113112                             UINT          fuMode);
    114113
    115                       /* this is a handler method for calls to CloseHandle() */
     114  /* this is a handler method for calls to CloseHandle() */
    116115  virtual BOOL   CloseHandle(PHMHANDLEDATA pHMHandleData);
    117116
    118                            /* this is a handler method for calls to ReadFile() */
     117  /* this is a handler method for calls to ReadFile/Ex */
    119118  virtual BOOL   ReadFile   (PHMHANDLEDATA pHMHandleData,
    120119                             LPCVOID       lpBuffer,
    121120                             DWORD         nNumberOfBytesToRead,
    122121                             LPDWORD       lpNumberOfBytesRead,
    123                              LPOVERLAPPED  lpOverlapped);
    124 
    125                         /* this is a handler method for calls to ReadFileEx() */
    126   virtual BOOL  ReadFileEx(PHMHANDLEDATA pHMHandleData,
    127                            LPVOID       lpBuffer,
    128                            DWORD        nNumberOfBytesToRead,
    129                            LPOVERLAPPED lpOverlapped,
    130                            LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine);
    131 
    132                         /* this is a handler method for calls to WriteFile() */
     122                             LPOVERLAPPED  lpOverlapped,
     123                             LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine);
     124
     125  /* this is a handler method for calls to WriteFile/Ex */
    133126  virtual BOOL   WriteFile  (PHMHANDLEDATA pHMHandleData,
    134127                             LPCVOID       lpBuffer,
    135128                             DWORD         nNumberOfBytesToWrite,
    136129                             LPDWORD       lpNumberOfBytesWritten,
    137                              LPOVERLAPPED  lpOverlapped);
    138 
    139                         /* this is a handler method for calls to WriteFileEx() */
    140   virtual BOOL  WriteFileEx(PHMHANDLEDATA pHMHandleData,
    141                             LPVOID       lpBuffer,
    142                             DWORD        nNumberOfBytesToWrite,
    143                             LPOVERLAPPED lpOverlapped,
    144                             LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine);
    145 
    146                       /* this is a handler method for calls to GetFileType() */
     130                             LPOVERLAPPED  lpOverlapped,
     131                             LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine);
     132
     133  /* this is a handler method for calls to GetFileType() */
    147134  virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData);
    148135
     
    241228   ***************************************************************************/
    242229
    243                      /* this is a handler method for calls to CreateEvent() */
     230  /* this is a handler method for calls to CreateEvent() */
    244231  virtual DWORD CreateEvent (PHMHANDLEDATA         pHMHandleData,
    245232                             LPSECURITY_ATTRIBUTES lpsa,
     
    248235                             LPCSTR                lpszEventName);
    249236
    250                        /* this is a handler method for calls to OpenEvent() */
     237  /* this is a handler method for calls to OpenEvent() */
    251238  virtual DWORD OpenEvent   (PHMHANDLEDATA         pHMHandleData,
    252239                             BOOL                  fInheritHandle,
    253240                             LPCSTR                lpszEventName);
    254241
    255                        /* this is a handle method for calls to ResetEvent() */
     242  /* this is a handle method for calls to ResetEvent() */
    256243  virtual BOOL  ResetEvent  (PHMHANDLEDATA         pHMHandleData);
    257244
    258                          /* this is a handle method for calls to SetEvent() */
     245  /* this is a handle method for calls to SetEvent() */
    259246  virtual BOOL  SetEvent    (PHMHANDLEDATA         pHMHandleData);
    260247
    261                        /* this is a handle method for calls to PulseEvent() */
     248  /* this is a handle method for calls to PulseEvent() */
    262249  virtual BOOL  PulseEvent  (PHMHANDLEDATA         pHMHandleData);
    263250
     
    267254   ***************************************************************************/
    268255
    269                      /* this is a handler method for calls to CreateMutex() */
     256  /* this is a handler method for calls to CreateMutex() */
    270257  virtual DWORD CreateMutex (PHMHANDLEDATA         pHMHandleData,
    271258                             LPSECURITY_ATTRIBUTES lpsa,
     
    273260                             LPCSTR                lpszMutexName);
    274261
    275                        /* this is a handler method for calls to OpenMutex() */
     262  /* this is a handler method for calls to OpenMutex() */
    276263  virtual DWORD OpenMutex   (PHMHANDLEDATA         pHMHandleData,
    277264                             BOOL                  fInheritHandle,
    278265                             LPCSTR                lpszMutexName);
    279266
    280                      /* this is a handle method for calls to ReleaseMutex() */
     267  /* this is a handle method for calls to ReleaseMutex() */
    281268  virtual BOOL  ReleaseMutex(PHMHANDLEDATA         pHMHandleData);
    282269
     
    286273   ***************************************************************************/
    287274
    288                      /* this is a handler method for calls to CreateSemaphore() */
     275  /* this is a handler method for calls to CreateSemaphore() */
    289276  virtual DWORD CreateSemaphore (PHMHANDLEDATA         pHMHandleData,
    290277                                 LPSECURITY_ATTRIBUTES lpsa,
     
    293280                                 LPCSTR                lpszSemaphoreName);
    294281
    295                        /* this is a handler method for calls to OpenSemaphore() */
     282  /* this is a handler method for calls to OpenSemaphore() */
    296283  virtual DWORD OpenSemaphore   (PHMHANDLEDATA         pHMHandleData,
    297284                                 BOOL                  fInheritHandle,
    298285                                 LPCSTR                lpszSemaphoreName);
    299286
    300                      /* this is a handle method for calls to ReleaseSemaphore() */
     287  /* this is a handle method for calls to ReleaseSemaphore() */
    301288  virtual BOOL  ReleaseSemaphore(PHMHANDLEDATA pHMHandleData,
    302289                                 LONG          cReleaseCount,
    303290                                 LPLONG        lpPreviousCount);
    304291
    305                 /* this is a handler method for calls to CreateFileMapping() */
     292  /* this is a handler method for calls to CreateFileMapping() */
    306293  virtual DWORD CreateFileMapping   (PHMHANDLEDATA              pHMHandleData,
    307294                                     HANDLE                     hFile,
     
    312299                                     LPCSTR                     lpName);
    313300
    314                   /* this is a handler method for calls to OpenFileMapping() */
     301  /* this is a handler method for calls to OpenFileMapping() */
    315302  virtual DWORD OpenFileMapping     (PHMHANDLEDATA              pHMHandleData,
    316303                         DWORD access,   /* [in] Access mode */
     
    318305                                     LPCSTR                     lpName);
    319306
    320                     /* this is a handler method for calls to MapViewOfFileEx() */
     307  /* this is a handler method for calls to MapViewOfFileEx() */
    321308  virtual LPVOID MapViewOfFileEx    (PHMHANDLEDATA              pHMHandleData,
    322309                                     DWORD                      dwDesiredAccess,
     
    324311                                     DWORD                      dwFileOffsetLow,
    325312                                     DWORD                      dwNumberOfBytesToMap,
    326                    LPVOID                     lpBaseAddress);
    327 
    328                     /* this is a handler method for calls to DeviceIoControl() */
     313                                     LPVOID                     lpBaseAddress);
     314
     315  /* this is a handler method for calls to DeviceIoControl() */
    329316  virtual BOOL   DeviceIoControl    (PHMHANDLEDATA pHMHandleData, DWORD dwIoControlCode,
    330317                                     LPVOID lpInBuffer, DWORD nInBufferSize,
Note: See TracChangeset for help on using the changeset viewer.