[6228] | 1 | /* $Id: OS2KPTDA.h,v 1.5 2001-07-08 03:06:25 bird Exp $
|
---|
[3829] | 2 | *
|
---|
| 3 | * PTDA access functions.
|
---|
| 4 | *
|
---|
[4787] | 5 | * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
|
---|
[3829] | 6 | *
|
---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 8 | *
|
---|
| 9 | */
|
---|
| 10 | #ifndef _ptda_h_
|
---|
| 11 | #define _ptda_h_
|
---|
| 12 |
|
---|
| 13 | #ifdef __cplusplus
|
---|
| 14 | extern "C" {
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | /*******************************************************************************
|
---|
| 18 | * Structures and Typedefs *
|
---|
| 19 | *******************************************************************************/
|
---|
| 20 | typedef struct _PTDA
|
---|
| 21 | {
|
---|
| 22 | struct _PTDA *p1;
|
---|
| 23 | struct _PTDA *p2;
|
---|
| 24 | struct _PTDA *p3;
|
---|
| 25 | struct _PTDA *pPTDAExecChild; /* This offset is fixed for all supported OS/2 version. */
|
---|
| 26 | } PTDA, *PPTDA, **PPPTDA;
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | extern PPPTDA ppPTDACur; /* Please access this only thru the ptdaGetCur() function. */
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | /*******************************************************************************
|
---|
| 33 | * Defined Constants And Macros *
|
---|
| 34 | *******************************************************************************/
|
---|
| 35 | /**
|
---|
| 36 | * Gets the current PTDA pointer.
|
---|
| 37 | * @returns Pointer to the current PTDA.
|
---|
| 38 | * @remark Using import stuff.
|
---|
| 39 | */
|
---|
| 40 | //PPTDA ptdaGetCur(void);
|
---|
| 41 | #define ptdaGetCur() (*ppPTDACur)
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | /**
|
---|
| 46 | * Gets the pPTDAExecChild member of the PTDA.
|
---|
| 47 | * @returns Pointer to child being started. NULL if none.
|
---|
| 48 | * @param pPTDA Pointer to the ptda structure.
|
---|
| 49 | * @remark This member is fixed for all the supported kernels (all 2.x kernels too?).
|
---|
| 50 | */
|
---|
| 51 | //PPTDA ptdaGet_pPTDAExecChild(PPTDA pPTDA);
|
---|
| 52 | #define ptdaGet_pPTDAExecChild(pPTDA) ((PPTDA)(pPTDA))->pPTDAExecChild
|
---|
| 53 |
|
---|
| 54 |
|
---|
[4164] | 55 | USHORT ptdaGet_ptda_environ(PPTDA pPTDA);
|
---|
[4347] | 56 | HPTDA ptdaGet_ptda_handle(PPTDA pPTDA);
|
---|
[4164] | 57 | USHORT ptdaGet_ptda_module(PPTDA pPTDA);
|
---|
| 58 | HKSEMMTX ptda_ptda_ptdasem(PPTDA pPTDA);
|
---|
[6228] | 59 | PSZ ptdaGet_ptda_pBeginLIBPATH(PPTDA pPTDA);
|
---|
| 60 | PSZ ptdaGet_ptda_pEndLIBPATH(PPTDA pPTDA);
|
---|
[3829] | 61 |
|
---|
| 62 | #ifdef __cplusplus
|
---|
| 63 | }
|
---|
| 64 | #endif
|
---|
| 65 |
|
---|
| 66 | #endif
|
---|