source: trunk/src/win32k/include/OS2KPTDA.h@ 8266

Last change on this file since 8266 was 6228, checked in by bird, 24 years ago

Prototyped Begin- and End-LIBPATH PTDA get functions.

File size: 2.0 KB
Line 
1/* $Id: OS2KPTDA.h,v 1.5 2001-07-08 03:06:25 bird Exp $
2 *
3 * PTDA access functions.
4 *
5 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
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
14extern "C" {
15#endif
16
17/*******************************************************************************
18* Structures and Typedefs *
19*******************************************************************************/
20typedef 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
29extern 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
55USHORT ptdaGet_ptda_environ(PPTDA pPTDA);
56HPTDA ptdaGet_ptda_handle(PPTDA pPTDA);
57USHORT ptdaGet_ptda_module(PPTDA pPTDA);
58HKSEMMTX ptda_ptda_ptdasem(PPTDA pPTDA);
59PSZ ptdaGet_ptda_pBeginLIBPATH(PPTDA pPTDA);
60PSZ ptdaGet_ptda_pEndLIBPATH(PPTDA pPTDA);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
Note: See TracBrowser for help on using the repository browser.