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

Last change on this file since 5087 was 4787, checked in by bird, 25 years ago

Changed email address... (may some dll fixes changes too.)

File size: 1.9 KB
Line 
1/* $Id: OS2KPTDA.h,v 1.4 2000-12-11 06:53:49 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);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif
Note: See TracBrowser for help on using the repository browser.