source: trunk/src/kernel32/hmhandle.h

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

  • Property svn:eol-style set to native
File size: 1.3 KB
RevLine 
[21302]1/* $Id: hmhandle.h,v 1.2 2004/03/12 18:19:41 sandervl Exp $ */
2
3#ifndef __HMHANDLE_H__
4#define __HMHANDLE_H__
5
6#include "hmdevice.h"
7
8/*****************************************************************************
9 * defines *
10 *****************************************************************************/
11/* note: the defines are duplicated in odinapi.h */
12#define HMTYPE_UNKNOWN 0
13#define HMTYPE_MEMMAP 1
14#define HMTYPE_DEVICE 2
15#define HMTYPE_PROCESSTOKEN 3
16#define HMTYPE_THREADTOKEN 4
17#define HMTYPE_THREAD 5
18#define HMTYPE_PIPE 6
19#define HMTYPE_EVENTSEM 7
20#define HMTYPE_MUTEXSEM 8
21#define HMTYPE_SEMAPHORE 9
22#define HMTYPE_COMPORT 10
23#define HMTYPE_PARPORT 11
24#define HMTYPE_MAILSLOT 12
25#define HMTYPE_BAD_HANDLE -1
26//.....
27
28
29typedef struct _HMHANDLE
30{
31 HMDeviceHandler *pDeviceHandler; /* handler for this pseudo-device */
32 HMHANDLEDATA hmHandleData; /* attributes of the handle */
33} HMHANDLE, *PHMHANDLE;
34
35
[21916]36#ifdef __cplusplus
37extern "C" {
38#endif
[21302]39
40PHMHANDLE HMHandleQueryPtr(HANDLE hHandle);
41PHMHANDLE HMHandleGetFreePtr(DWORD dwType);
42PHMHANDLEDATA HMQueryHandleData(HANDLE handle);
43
[21916]44#ifdef __cplusplus
45} // extern "C"
46#endif
[21302]47
[21916]48
[21302]49#endif
Note: See TracBrowser for help on using the repository browser.