| Line | |
|---|
| 1 | /* $Id: os2util.h,v 1.6 1999-08-18 17:18:00 sandervl Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | *
|
|---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 | /*
|
|---|
| 9 | * Misc util. procedures
|
|---|
| 10 | *
|
|---|
| 11 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
|---|
| 12 | * Copyright 1998 Peter FitzSimmons
|
|---|
| 13 | * Copyright 1998 Patrick Haller
|
|---|
| 14 | *
|
|---|
| 15 | */
|
|---|
| 16 | #ifndef __OS2UTIL_H__
|
|---|
| 17 | #define __OS2UTIL_H__
|
|---|
| 18 |
|
|---|
| 19 | #ifdef _OS2WIN_H
|
|---|
| 20 | #include <winos2def.h>
|
|---|
| 21 | #else
|
|---|
| 22 | #include <win32type.h>
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #ifdef __cplusplus
|
|---|
| 26 | extern "C" {
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | void OS2SetExitList(unsigned long handler);
|
|---|
| 30 | void OS2ClearExitList();
|
|---|
| 31 | void OS2RemoveExitList(unsigned long handler);
|
|---|
| 32 |
|
|---|
| 33 | char *OS2GetDllName(ULONG hModule);
|
|---|
| 34 |
|
|---|
| 35 | char *StripPath(char *path);
|
|---|
| 36 |
|
|---|
| 37 | HMODULE OS2iGetModuleHandleA(PSZ pszModule);
|
|---|
| 38 | HMODULE OS2QueryModuleHandle(char *modname);
|
|---|
| 39 |
|
|---|
| 40 | ULONG OS2GetResourceSize(HMODULE hinstance, int id);
|
|---|
| 41 | BOOL OS2GetResource(HMODULE hinstance, int id, char *destbuf, int bufLength);
|
|---|
| 42 |
|
|---|
| 43 | void OS2Wait(ULONG msec);
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | BOOL OS2AllocSel(ULONG size, USHORT *selector);
|
|---|
| 47 | BOOL OS2FreeSel(USHORT selector);
|
|---|
| 48 | PVOID OS2SelToFlat(USHORT selector);
|
|---|
| 49 |
|
|---|
| 50 | #define TIB_STACKTOP 0
|
|---|
| 51 | #define TIB_STACKLOW 1
|
|---|
| 52 |
|
|---|
| 53 | ULONG OS2GetTIB(int tiboff);
|
|---|
| 54 |
|
|---|
| 55 | #define PIB_TASKHNDL 0
|
|---|
| 56 | #define PIB_TASKTYPE 1
|
|---|
| 57 |
|
|---|
| 58 | #define TASKTYPE_PM 0
|
|---|
| 59 | #define TASKTYPE_VIO 1
|
|---|
| 60 |
|
|---|
| 61 | ULONG OS2GetPIB(int piboff);
|
|---|
| 62 |
|
|---|
| 63 | ULONG OS2AllocThreadLocalMemory(int nrdwords);
|
|---|
| 64 |
|
|---|
| 65 | #ifdef __cplusplus
|
|---|
| 66 | }
|
|---|
| 67 | #endif
|
|---|
| 68 |
|
|---|
| 69 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.