Changeset 5219 for trunk/include/win32k.h
- Timestamp:
- Feb 21, 2001, 8:41:24 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win32k.h
r5210 r5219 1 /* $Id: win32k.h,v 1. 9 2001-02-20 05:13:15bird Exp $1 /* $Id: win32k.h,v 1.10 2001-02-21 07:41:24 bird Exp $ 2 2 * 3 3 * Top level make file for the Win32k library. … … 9 9 * 10 10 */ 11 /* NOINC */ 11 12 #ifndef _WIN32K_H_ 12 13 #define _WIN32K_H_ 14 /* INC */ 13 15 14 16 /******************************************************************************* … … 31 33 #define K32_HANDLESYSTEMEVENT 0x06 32 34 #define K32_QUERYSYSTEMMEMINFO 0x07 33 #define K32_LASTIOCTLFUNCTION K32_QUERYSYSTEMMEMINFO 35 #define K32_QUERYCALLGATE 0x08 36 #define K32_LASTIOCTLFUNCTION K32_QUERYCALLGATE 34 37 35 38 … … 79 82 80 83 84 /* NOINC */ 81 85 #ifndef INCL_16 /* We don't need this in 16-bit code. */ 86 /* INC */ 87 88 /******************************************************************************* 89 * Assembly Fixes * 90 *******************************************************************************/ 91 /*ASM 92 BOOL struc 93 dd ? 94 BOOL ends 95 96 PID struc 97 dd ? 98 PID ends 99 100 HMODULE struc 101 dd ? 102 HMODULE ends 103 104 HEV struc 105 dd ? 106 HEV ends 107 108 PVOID struc 109 dd ? 110 PVOID ends 111 112 PPVOID struc 113 dd ? 114 PPVOID ends 115 116 PUSHORT struc 117 dd ? 118 PUSHORT ends 119 120 CCHMAXPATH EQU 260 121 122 */ /* end of assembly */ 123 82 124 83 125 /******************************************************************************* … … 89 131 * Object Table Entry buffer. 90 132 */ 91 typedefstruct _QueryOTE133 struct _QueryOTE 92 134 { 93 135 ULONG ote_size; /* Object virtual size */ … … 99 141 USHORT ote_sel; /* Object Selector */ 100 142 USHORT ote_hob; /* Object Handle */ 101 } QOTE, *PQOTE; 143 }; 144 typedef struct _QueryOTE QOTE; 145 typedef QOTE * PQOTE; 146 102 147 103 148 typedef struct _QueryOTEBuffer … … 105 150 ULONG cOTEs; /* Number of entries in aOTE. */ 106 151 QOTE aOTE[1]; /* Array of OTEs. */ 107 } QOTEBUFFER, *PQOTEBUFFER; 152 } QOTEBUFFER; 153 typedef QOTEBUFFER *PQOTEBUFFER; 108 154 109 155 … … 152 198 ULONG cbSwpHeapMax; /* Maximum heapsize. */ 153 199 ULONG cbResHeapMax; /* Maxiumem residentheapsize. */ 154 } K32OPTIONS, *PK32OPTIONS; 200 } K32OPTIONS; 201 typedef K32OPTIONS *PK32OPTIONS; 155 202 156 203 … … 197 244 ULONG cElf2LxModules; /* Number of Elf2Lx modules currently loaded. */ 198 245 /*...*/ 199 } K32STATUS, *PK32STATUS; 246 } K32STATUS; 247 typedef K32STATUS * PK32STATUS; 200 248 201 249 … … 255 303 ULONG ulVMArenaHighSharedMax; /* VM: Current highest address in the high shared arena - aurora/smp only. (ahvmhShr) */ 256 304 257 } K32SYSTEMMEMINFO, *PK32SYSTEMMEMINFO; 305 } K32SYSTEMMEMINFO; 306 typedef K32SYSTEMMEMINFO * PK32SYSTEMMEMINFO; 258 307 259 308 260 309 /* 261 310 * K32 category parameter structs 262 * 263 * Note. The ULONG rc should allways be the first datamember! 264 */ 265 typedef struct _k32AllocMemEx 266 { 311 * --- 312 * First member is allways a K32HDR struct called hdr. 313 * The rest of it should be exactly like the parameter list for the API call. 314 */ 315 struct _k32Header /* Common parameter header. */ 316 { 317 ULONG cb; /* Size of the parameters struct. */ 267 318 ULONG rc; /* Return code. */ 319 }; 320 typedef struct _k32Header K32HDR; 321 typedef K32HDR * PK32HDR; 322 323 324 struct _k32AllocMemEx 325 { 326 K32HDR hdr; /* Common parameter header */ 268 327 PPVOID ppv; /* Pointer to pointer to the allocated memory block */ 269 328 /* On input it (*ppv) may hold the suggested location of the block. */ … … 272 331 ULONG ulCS; /* Call CS */ 273 332 ULONG ulEIP; /* Call EIP */ 274 } K32ALLOCMEMEX, *PK32ALLOCMEMEX; 275 276 typedef struct _k32QueryOTEs 277 { 278 ULONG rc; /* Return code. */ 333 }; 334 typedef struct _k32AllocMemEx K32ALLOCMEMEX; 335 typedef K32ALLOCMEMEX * PK32ALLOCMEMEX; 336 337 338 struct _k32QueryOTEs 339 { 340 K32HDR hdr; /* Common parameter header */ 279 341 HMODULE hMTE; /* Module handle. */ 280 342 PQOTEBUFFER pQOte; /* Pointer to output buffer. */ 281 343 ULONG cbQOte; /* Size of the buffer pointed to by pQOte */ 282 } K32QUERYOTES, *PK32QUERYOTES; 283 284 typedef struct _k32QueryOptionsStatus 285 { 286 ULONG rc; /* Return code. */ 344 }; 345 typedef struct _k32QueryOTEs K32QUERYOTES; 346 typedef K32QUERYOTES * PK32QUERYOTES; 347 348 349 struct _k32QueryOptionsStatus 350 { 351 K32HDR hdr; /* Common parameter header */ 287 352 PK32OPTIONS pOptions; /* Pointer to option struct. (NULL allowed) */ 288 353 PK32STATUS pStatus; /* Pointer to status struct. (NULL allowed) */ 289 } K32QUERYOPTIONSSTATUS, *PK32QUERYOPTIONSSTATUS; 290 291 typedef struct _k32SetOptions 292 { 293 ULONG rc; /* Return code. */ 294 PK32OPTIONS pOptions; /* Pointer to option struct. (NULL allowed) */ 295 } K32SETOPTIONS, *PK32SETOPTIONS; 296 297 typedef struct _k32ProcessReadWrite 298 { 299 ULONG rc; /* Return code. */ 354 }; 355 typedef struct _k32QueryOptionsStatus K32QUERYOPTIONSSTATUS; 356 typedef K32QUERYOPTIONSSTATUS * PK32QUERYOPTIONSSTATUS; 357 358 359 struct _k32SetOptions 360 { 361 K32HDR hdr; /* Common parameter header */ 362 PK32OPTIONS pOptions; /* Pointer to option struct. (NULL allowed) */ 363 }; 364 typedef struct _k32SetOptions K32SETOPTIONS; 365 typedef K32SETOPTIONS * PK32SETOPTIONS; 366 367 368 struct _k32ProcessReadWrite 369 { 370 K32HDR hdr; /* Common parameter header */ 300 371 PID pid; /* Process ID of the process to access memory in. */ 301 372 ULONG cb; /* Number of bytes to read or write. */ … … 304 375 BOOL fRead; /* TRUE: pvSource is within pid while pvTarget is ours. */ 305 376 /* FALSE: pvTarget is within pid while pvSource is ours. */ 306 } K32PROCESSREADWRITE, *PK32PROCESSREADWRITE; 307 308 typedef struct _k32HandleSystemEvent 309 { 310 ULONG rc; /* Return code. */ 377 }; 378 typedef struct _k32ProcessReadWrite K32PROCESSREADWRITE; 379 typedef K32PROCESSREADWRITE * PK32PROCESSREADWRITE; 380 381 382 struct _k32HandleSystemEvent 383 { 384 K32HDR hdr; /* Common parameter header */ 311 385 ULONG ulEvent; /* Event identifier. One of the K32_SYSEVENT_ defines. */ 312 386 HEV hev; /* Handle of shared event semaphore which should be */ … … 315 389 /* TRUE: Take control of the event. */ 316 390 /* FALSE: Give control back to the OS of this event. (hev must match the current handle!) */ 317 } K32HANDLESYSTEMEVENT, *PK32HANDLESYSTEMEVENT; 318 319 typedef struct _k32QuerySystemMemInfo 320 { 321 APIRET rc; /* Return code. */ 391 }; 392 typedef struct _k32HandleSystemEvent K32HANDLESYSTEMEVENT; 393 typedef K32HANDLESYSTEMEVENT * PK32HANDLESYSTEMEVENT; 394 395 396 struct _k32QuerySystemMemInfo 397 { 398 K32HDR hdr; /* Common parameter header */ 322 399 PK32SYSTEMMEMINFO pMemInfo; /* Pointer to system memory info structure with cb set. */ 323 400 /* The other members will be filled on successful return. */ 324 } K32QUERYSYSTEMMEMINFO, *PK32QUERYSYSTEMMEMINFO; 325 401 }; 402 typedef struct _k32QuerySystemMemInfo K32QUERYSYSTEMMEMINFO; 403 typedef K32QUERYSYSTEMMEMINFO * PK32QUERYSYSTEMMEMINFO; 404 405 406 struct _k32QueryCallGate 407 { 408 K32HDR hdr; /* Common parameter header */ 409 PUSHORT pusCGSelector; /* Pointer to variable where the callgate selector */ 410 /* is to be stored. */ 411 }; 412 typedef struct _k32QueryCallGate K32QUERYCALLGATE; 413 typedef struct _k32QueryCallGate * PK32QUERYCALLGATE; 326 414 327 415 #pragma pack() 328 416 417 /* NOINC */ 329 418 #ifndef NO_WIN32K_LIB_FUNCTIONS 330 419 /******************************************************************************* … … 348 437 USHORT APIENTRY libHelperGetCS(void); 349 438 350 351 439 #endif 352 440 /* INC */ 441 442 /* NOINC */ 353 443 #endif /* !defined(INCL_16) */ 354 355 444 #endif 445 /* INC */
Note:
See TracChangeset
for help on using the changeset viewer.