- Timestamp:
- Jul 8, 2001, 5:09:51 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/misc/OS2KPTDA.c
r4787 r6231 1 /* $Id: OS2KPTDA.c,v 1. 4 2000-12-11 06:53:54bird Exp $1 /* $Id: OS2KPTDA.c,v 1.5 2001-07-08 03:09:51 bird Exp $ 2 2 * 3 3 * PTDA access functions. … … 36 36 extern ULONG pptda_handle; 37 37 extern ULONG pptda_module; 38 extern ULONG pptda_pBeginLIBPATH; 38 39 39 40 … … 86 87 87 88 89 /** 90 * Gets the ptda_pBeginLIBPATH PTDA member. This member may hold the begin libpath 91 * extention for this process. 92 * @returns beginlibpath string pointer. 93 * NULL if member is NULL or not supported by kernel. 94 * @param pPTDA PTDA Pointer. (NULL is not allowed!) 95 */ 96 PSZ ptdaGet_ptda_pBeginLIBPATH(PPTDA pPTDA) 97 { 98 if (!pptda_pBeginLIBPATH) 99 return NULL; 100 return *(PSZ*)(void*)(((char*)(void*)pPTDA) + (pptda_pBeginLIBPATH - pptda_start)); 101 } 88 102 103 104 /** 105 * Gets the ptda_pEndLIBPATH PTDA member. This member might hold the end libpath 106 * extention for this process. 107 * @returns endlibpath string pointer. 108 * NULL if member is NULL or not supported by kernel. 109 * @param pPTDA PTDA Pointer. (NULL is not allowed!) 110 */ 111 PSZ ptdaGet_ptda_pEndLIBPATH(PPTDA pPTDA) 112 { 113 if (!pptda_pBeginLIBPATH) 114 return NULL; 115 return *(PSZ*)(void*)(((char*)(void*)pPTDA) + (pptda_pBeginLIBPATH + 4 - pptda_start)); 116 } 117 118 119 120
Note:
See TracChangeset
for help on using the changeset viewer.