- Timestamp:
- Sep 26, 2001, 5:52:37 AM (24 years ago)
- Location:
- trunk/src/win32k/kKrnlLib/include
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/kKrnlLib/include/OS2KIO.h
r6701 r6815 1 /* $Id: OS2KIO.h,v 1. 1 2001-09-14 01:50:14bird Exp $1 /* $Id: OS2KIO.h,v 1.2 2001-09-26 03:52:35 bird Exp $ 2 2 * 3 * OS/2 kernel IO: prototypes, typedefs and macros. 3 * OS/2 kernel I/O: prototypes, typedefs and macros. 4 * 5 * Copyright (c) 1999-2001 knut st. osmundsen (kosmunds@csc.com) 4 6 * 5 7 * Project Odin Software License can be found in LICENSE.TXT … … 27 29 PULONG pulsomething 28 30 ); 31 APIRET KRNLCALL OrgIOSftOpen( 32 PSZ pszFilename, 33 ULONG flOpenFlags, 34 ULONG fsOpenMode, 35 PSFN phFile, 36 PULONG pulsomething 37 ); 29 38 30 39 … … 35 44 */ 36 45 APIRET KRNLCALL IOSftClose( 46 SFN hFile 47 ); 48 APIRET KRNLCALL OrgIOSftClose( 37 49 SFN hFile 38 50 ); … … 46 58 */ 47 59 APIRET KRNLCALL IOSftTransPath( 60 PSZ pszPath 61 ); 62 APIRET KRNLCALL OrgIOSftTransPath( 48 63 PSZ pszPath 49 64 ); … … 61 76 */ 62 77 APIRET KRNLCALL IOSftReadAt( 78 SFN hFile, 79 PULONG pcbActual, 80 PVOID pvBuffer, 81 ULONG flFlags, 82 ULONG ulOffset 83 ); 84 APIRET KRNLCALL OrgIOSftReadAt( 63 85 SFN hFile, 64 86 PULONG pcbActual, … … 86 108 ULONG ulOffset 87 109 ); 110 APIRET KRNLCALL OrgIOSftWriteAt( 111 SFN hFile, 112 PULONG pcbActual, 113 PVOID pvBuffer, 114 ULONG flFlags, 115 ULONG ulOffset 116 ); 88 117 89 118 … … 98 127 PULONG pcbFile 99 128 ); 129 APIRET KRNLCALL OrgSftFileSize( 130 SFN hFile, 131 PULONG pcbFile 132 ); 100 133 101 134 #endif -
trunk/src/win32k/kKrnlLib/include/OS2KLDR.h
r6701 r6815 1 /* $Id: OS2KLDR.h,v 1. 1 2001-09-14 01:50:15 bird Exp $1 /* $Id: OS2KLDR.h,v 1.2 2001-09-26 03:52:35 bird Exp $ 2 2 * 3 3 * OS/2 kernel Loader Stuff. … … 29 29 ULONG ote_pagemap; /* Object page map index */ 30 30 ULONG ote_mapsize; /* Num of entries in obj page map */ 31 /*ULONG ote_reserved;*/32 31 USHORT ote_sel; /* Object Selector */ 33 32 USHORT ote_hob; /* Object Handle */ … … 226 225 * Global Variables * 227 226 *******************************************************************************/ 227 #ifdef KKRNLLIB 228 228 extern PSZ* pLdrLibPath; /* Pointer to the libpath pointer. */ 229 229 extern PPMTE pmte_h; … … 234 234 extern PPMTE pspecific_h; 235 235 extern PPMTE pspecific_l; 236 #else 237 extern PSZ LdrLibPath; /* Pointer to the libpath. */ 238 extern PMTE mte_h; 239 extern PMTE program_h; 240 extern PMTE program_l; 241 extern PMTE global_h; 242 extern PMTE global_l; 243 extern PMTE specific_h; 244 extern PMTE specific_l; 245 #endif 236 246 237 247 /******************************************************************************* … … 245 255 ); 246 256 247 ULONG LDRCALL myldrClose(SFN);257 extern ULONG LDRCALL OrgldrClose(SFN); 248 258 249 259 … … 257 267 ); 258 268 259 ULONG LDRCALL myldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl);269 extern ULONG LDRCALL OrgldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl); 260 270 261 271 … … 272 282 ); 273 283 274 ULONG LDRCALLmyldrRead(284 extern ULONG LDRCALL OrgmyldrRead( 275 285 SFN hFile, 276 286 ULONG ulOffset, … … 282 292 283 293 284 285 294 /** 286 295 * _LDRQAppType … … 291 300 ); 292 301 293 ULONG LDRCALL myLDRQAppType(ULONG,ULONG);302 extern ULONG LDRCALL OrgLDRQAppType(ULONG,ULONG); 294 303 295 304 … … 313 322 ); 314 323 315 ULONG LDRCALL myldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID); 316 324 extern ULONG LDRCALL OrgldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID); 317 325 318 326 … … 372 380 * endloop 373 381 * endif 382 * @remark Win32k Internal stuff??? 374 383 */ 375 384 extern ULONG LDRCALL ldrOpenPath_old( /* retd 0x10 */ … … 379 388 PULONG pful /* ebp + 0x14 */ 380 389 ); 381 382 ULONG LDRCALL myldrOpenPath_old(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful);383 390 384 391 … … 429 436 ); 430 437 431 ULONG LDRCALL myldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);438 extern ULONG LDRCALL OrgldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath); 432 439 433 440 … … 442 449 * @sketch 443 450 */ 444 ULONG LDRCALL ldrFindModule(/* retd 0x10 */451 extern ULONG LDRCALL ldrFindModule( /* retd 0x10 */ 445 452 PCHAR pachFilename, /* ebp + 0x08 */ 446 453 USHORT cchFilename, /* ebp + 0x0c */ … … 449 456 ); 450 457 451 ULONG LDRCALL myldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);458 extern ULONG LDRCALL OrgldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE); 452 459 453 460 … … 469 476 PULONG pcUsage); /* ebp + 0x10 */ 470 477 471 ULONG LDRCALL myldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage);478 extern ULONG LDRCALL OrgldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage); 472 479 #endif 473 480 … … 497 504 PULONG pulProcType); /* ebp + 0x1c */ 498 505 499 ULONG LDRCALL myLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType);506 extern ULONG LDRCALL OrgLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType); 500 507 501 508 … … 508 515 */ 509 516 extern ULONG LDRCALL LDRClearSem(void); 517 extern ULONG LDRCALL OrgLDRClearSem(void); 510 518 511 519 … … 515 523 * OS2 errorcode on failure. (ERROR_INTERRUPT?) 516 524 */ 525 #ifdef KKRNLLIB 517 526 #define LDRRequestSem() KSEMRequestMutex(pLdrSem, (ULONG)-1) 527 #else 528 #define LDRRequestSem() KSEMRequestMutex(&LdrSem, (ULONG)-1) 529 #endif 518 530 519 531 … … 522 534 */ 523 535 #ifdef _OS2KSEM_h_ 536 #ifdef KKRNLLIB 524 537 extern PKSEMMTX pLdrSem; 538 #else 539 extern KSEMMTX LdrSem; 540 #endif 525 541 #endif 526 542 … … 535 551 */ 536 552 extern PMTE LDRCALL ldrValidateMteHandle(HMTE hMTE); 553 extern PMTE LDRCALL OrgldrValidateMteHandle(HMTE hMTE); 537 554 538 555 … … 544 561 */ 545 562 extern PMTE KRNLCALL ldrASMpMTEFromHandle(HMTE hMTE); 563 extern PMTE KRNLCALL OrgldrASMpMTEFromHandle(HMTE hMTE); 546 564 547 565 … … 553 571 */ 554 572 extern ULONG LDRCALL ldrTransPath(PSZ pszFilename); 573 extern ULONG LDRCALL OrgldrTransPath(PSZ pszFilename); 555 574 556 575 … … 570 589 ); 571 590 572 VOID LDRCALL myldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2);591 extern VOID LDRCALL OrgldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2); 573 592 574 593 … … 584 603 PMTE pMTE /* ebp + 0x08 */ 585 604 ); 586 587 ULONG LDRCALL myldrCheckInternalName(PMTE pMTE); 605 extern ULONG LDRCALL OrgldrCheckInternalName(PMTE pMTE); 588 606 589 607 … … 596 614 */ 597 615 extern ULONG LDRCALL ldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt); 616 extern ULONG LDRCALL OrgldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt); 598 617 599 618 … … 604 623 * @param ppachName Pointer to pointer which should hold the name pointer upon successfull return. 605 624 * @param ppachExt Pointer to pointer which should hold the extention pointer upon successfull return. 625 * @remark Win32k internal function??? 606 626 */ 607 627 extern ULONG LDRCALL ldrGetFileName2(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt); … … 615 635 */ 616 636 extern VOID LDRCALL ldrUCaseString(PCHAR pch, unsigned cch); 637 extern VOID LDRCALL OrgldrUCaseString(PCHAR pch, unsigned cch); 638 639 640 641 /** 642 * Resolves the ordinal number of an name export. 643 * @returns OS2 return code. (I.e. ON_ERROR on success) 644 * @param pMTE Pointer to the module table entry for the 645 * module. 646 * @param pszExportName Name to resolve. This is case sensitive. 647 * @param pusOrdinal Pointer to variable which on success will hold 648 * the ordinal value found for the name export. 649 */ 650 extern ULONG LDRCALL ldrGetOrdNum(PMTE pMTE, PSZ pszExportName, PUSHORT pusOrdinal); 651 extern ULONG LDRCALL OrgldrGetOrdNum(PMTE pMTE, PSZ pszExportName, PUSHORT pusOrdinal); 652 653 654 /** 655 * Frees a task. 656 * @param pPTDA Pointer to per task data area of the task to be freed. 657 */ 658 extern void LDRCALL LDRFreeTask(PPTDA pPTDA); 659 extern void LDRCALL OrgLDRFreeTask(PPTDA pPTDA); 617 660 618 661 … … 622 665 * set to the fully qualified filename of the file last opened (successfully). 623 666 */ 624 extern PSZ *pldrpFileNameBuf; 667 #ifdef KKRNLLIB 668 extern PSZ * pldrpFileNameBuf; 625 669 #define ldrpFileNameBuf (*pldrpFileNameBuf) 670 #else 671 extern PSZ ldrpFileNameBuf; 672 #endif 626 673 627 674 -
trunk/src/win32k/kKrnlLib/include/OS2KPG.h
r6701 r6815 1 /* $Id: OS2KPG.h,v 1. 1 2001-09-14 01:50:15 bird Exp $1 /* $Id: OS2KPG.h,v 1.2 2001-09-26 03:52:35 bird Exp $ 2 2 * 3 3 * OS/2 kernel page manager stuff. … … 17 17 * <li> 0 - Swapping disabled. </ul> 18 18 */ 19 #ifdef KKRNLLIB 19 20 extern int * pPGSwapEnabled; 20 21 #define PGSwapEnabled (*pPGSwapEnabled) 22 #else 23 extern int PGSwapEnabled; 24 #endif 25 21 26 22 27 /** 23 28 * Count of physical pages - hope this is correct. 24 29 */ 30 #ifdef KKRNLLIB 25 31 extern int * ppgPhysPages; 26 32 #define pgPhysPages (*ppgPhysPages) 33 #else 34 extern int pgPhysPages; 35 #endif 36 27 37 28 38 /** 29 39 * Pointer to top of physical memory (physical address). 30 40 */ 41 #ifdef KKRNLLIB 31 42 extern PULONG ppgPhysMax; 32 43 #define pgPhysMax (*ppgPhysMax) 44 #else 45 extern ULONG pgPhysMax; 46 #endif 47 33 48 34 49 /** 35 50 * Count of resident pages. 36 51 */ 52 #ifdef KKRNLLIB 37 53 extern int * ppgResidentPages; 38 54 #define pgResidentPages (*ppgResidentPages) 55 #else 56 extern int pgResidentPages; 57 #endif 58 39 59 40 60 /** 41 61 * Count of swappable pages which is currently present in memory. 42 62 */ 63 #ifdef KKRNLLIB 43 64 extern int * ppgSwappablePages; 44 65 #define pgSwappablePages (*ppgSwappablePages) 66 #else 67 extern int pgSwappablePages; 68 #endif 69 45 70 46 71 /** 47 72 * Count of discardable pages which is currently present in memory. 48 73 */ 74 #ifdef KKRNLLIB 49 75 extern int * ppgDiscardableInmem; 50 76 #define pgDiscardableInmem (*ppgDiscardableInmem) 77 #else 78 extern int pgDiscardableInmem; 79 #endif 80 51 81 52 82 /** 53 83 * Count of discardable pages allocated. 54 84 */ 85 #ifdef KKRNLLIB 55 86 extern int * ppgDiscardablePages; 56 87 #define pgDiscardablePages (*ppgDiscardablePages) 88 #else 89 extern int pgDiscardablePages; 90 #endif 91 57 92 58 93 /** 59 94 * Count of page faults since bootup. 60 95 */ 96 #ifdef KKRNLLIB 61 97 extern PULONG ppgcPageFaults; 62 98 #define pgcPageFaults (*ppgcPageFaults) 99 #else 100 extern ULONG pgcPageFaults; 101 #endif 102 63 103 64 104 /** 65 105 * Count of page faults currently being processed. 66 106 */ 107 #ifdef KKRNLLIB 67 108 extern PULONG ppgcPageFaultsActive; 68 109 #define pgcPageFaultsActive (*ppgcPageFaultsActive) 110 #else 111 extern ULONG pgcPageFaultsActive; 112 #endif 69 113 70 114 … … 73 117 */ 74 118 ULONG KRNLCALL PGPhysAvail(void); 119 ULONG KRNLCALL OrgPGPhysAvail(void); 75 120 76 121 … … 79 124 */ 80 125 ULONG KRNLCALL PGPhysPresent(void); 126 ULONG KRNLCALL OrgPGPhysPresent(void); 127 128 129 /** 130 * This function returns a bit vector for the dirty pages of a specified context 131 * for a specified range of pages. 132 * 133 * The dirty bits for the range are reset. 134 * 135 * @returns OS/2 return code. (NO_ERROR on success) 136 * @param ulVirtualPageNo Virtual page fram number. 137 * @param pPTDA Pointer to the context. 138 * @param cPages Number of pages. (max 32-bit due to ulDirtyBits.) 139 * @param ulDirtyBits Dirty bits. 140 * @remark VDM function... Not imported any longer. 141 */ 142 /*ULONG KRNLCALL PGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/ 143 /*ULONG KRNLCALL OrgPGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/ 144 81 145 82 146 #endif -
trunk/src/win32k/kKrnlLib/include/OS2KPTDA.h
r6701 r6815 1 /* $Id: OS2KPTDA.h,v 1. 1 2001-09-14 01:50:15bird Exp $1 /* $Id: OS2KPTDA.h,v 1.2 2001-09-26 03:52:36 bird Exp $ 2 2 * 3 3 * PTDA access functions. 4 4 * 5 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 27 27 28 28 29 #ifdef KKRNLLIB 29 30 extern PPPTDA ppPTDACur; /* Please access this only thru the ptdaGetCur() function. */ 31 #else 32 extern PPTDA pPTDACur; /* Please access this only thru the ptdaGetCur() function. */ 33 #endif 30 34 31 35 … … 39 43 */ 40 44 //PPTDA ptdaGetCur(void); 45 #ifdef KKRNLLIB 41 46 #define ptdaGetCur() (*ppPTDACur) 47 #else 48 #define ptdaGetCur() (pPTDACur) 49 #endif 50 42 51 43 52 -
trunk/src/win32k/kKrnlLib/include/OS2KSEC.h
r6701 r6815 1 /* $Id: OS2KSEC.h,v 1. 1 2001-09-14 01:50:15bird Exp $1 /* $Id: OS2KSEC.h,v 1.2 2001-09-26 03:52:36 bird Exp $ 2 2 * 3 3 * OS/2 Kernel Security helpers : prototypes, typedefs and macros. … … 17 17 */ 18 18 PSZ SECCALL SecPathFromSFN(SFN hFile); 19 PSZ SECCALL OrgSecPathFromSFN(SFN hFile); 19 20 20 21 -
trunk/src/win32k/kKrnlLib/include/OS2KSEM.h
r6701 r6815 1 /* $Id: OS2KSEM.h,v 1. 1 2001-09-14 01:50:15bird Exp $1 /* $Id: OS2KSEM.h,v 1.2 2001-09-26 03:52:36 bird Exp $ 2 2 * 3 3 * OS/2 kernel Semaphore functions. … … 156 156 */ 157 157 extern ULONG KRNLCALL KSEMRequestMutex(HKSEMMTX hkmtx, ULONG ulTimeout); 158 extern ULONG KRNLCALL OrgKSEMRequestMutex(HKSEMMTX hkmtx, ULONG ulTimeout); 158 159 extern VOID KRNLCALL KSEMReleaseMutex(HKSEMMTX hkmtx); 160 extern VOID KRNLCALL OrgKSEMReleaseMutex(HKSEMMTX hkmtx); 159 161 extern ULONG KRNLCALL KSEMQueryMutex(HKSEMMTX hkmtx, PUSHORT pcusNest); 162 extern ULONG KRNLCALL OrgKSEMQueryMutex(HKSEMMTX hkmtx, PUSHORT pcusNest); 160 163 161 164 … … 180 183 #endif 181 184 extern VOID KRNLCALL KSEMInit(PKSEM pksem, ULONG fulType, ULONG fulFlags); 185 extern VOID KRNLCALL OrgKSEMInit(PKSEM pksem, ULONG fulType, ULONG fulFlags); 182 186 #if 0 183 187 extern VOID KRNLCALL KSEMQuery(HKSEM hksem, ULONG p2) -
trunk/src/win32k/kKrnlLib/include/OS2KSM.h
r6701 r6815 1 /* $Id: OS2KSM.h,v 1. 1 2001-09-14 01:50:15bird Exp $1 /* $Id: OS2KSM.h,v 1.2 2001-09-26 03:52:36 bird Exp $ 2 2 * 3 3 * OS/2 kernel swapper manager stuff. … … 18 18 * <li> 0 - Swapping disabled. </ul> 19 19 */ 20 #ifdef KKRNLLIB 20 21 extern PSHORT pSMswapping; 21 22 #define SMswapping (*pSMswapping) 23 #else 24 extern SHORT SMswapping; 25 #endif 26 22 27 23 28 /** 24 29 * Real swapper file size in disk frames (ie. pages). 25 30 */ 31 #ifdef KKRNLLIB 26 32 extern PULONG psmFileSize; 27 33 #define smFileSize (*psmFileSize) 34 #else 35 extern ULONG smFileSize; 36 #endif 37 28 38 29 39 /** 30 40 * Number of broken disk frames. 31 41 */ 42 #ifdef KKRNLLIB 32 43 extern PULONG psmcBrokenDF; 33 44 #define smcBrokenDF (*psmcBrokenDF) 45 #else 46 extern ULONG smcBrokenDF; 47 #endif 48 34 49 35 50 /** 36 51 * Number of disk frames (DF) currently in use. 37 52 */ 53 #ifdef KKRNLLIB 38 54 extern PULONG pSMcDFInuse; 39 55 #define SMcDFInuse (*pSMcDFInuse) 56 #else 57 extern ULONG SMcDFInuse; 58 #endif 59 40 60 41 61 /** … … 44 64 #define SMcDFAvail (smFileSize - smcBrokenDF - SMcDFInuse) 45 65 66 46 67 /** 47 68 * The minimum free space on the swap volume (in pages). (Addjusted SMCFGMinFree) 48 69 */ 70 #ifdef KKRNLLIB 49 71 extern PULONG pSMMinFree; 50 72 #define SMMinFree (*pSMMinFree) 73 #else 74 extern ULONG SMMinFree; 75 #endif 76 51 77 52 78 /** 53 79 * The minimum free space on the swap volumen (in pages * 4) specified in config.sys. 54 80 */ 81 #ifdef KKRNLLIB 55 82 extern PULONG pSMCFGMinFree; 56 83 #define SMCFGMinFree (*pSMCFGMinFree) 84 #else 85 extern ULONG SMCFGMinFree; 86 #endif 87 57 88 58 89 /** 59 90 * The initial swapfile size (in pages * 4) specified in config.sys. 60 91 */ 92 #ifdef KKRNLLIB 61 93 extern PULONG pSMCFGSwapSize; 62 94 #define SMCFGSwapSize (*pSMCFGSwapSize) 95 #else 96 extern ULONG SMCFGSwapSize; 97 #endif 98 63 99 64 100 /** 65 101 * Number of swapper grow attempt which has failed since boot. 66 102 */ 103 #ifdef KKRNLLIB 67 104 extern PULONG psmcGrowFails; 68 105 #define smcGrowFails (*psmcGrowFails) 106 #else 107 extern ULONG smcGrowFails; 108 #endif 109 69 110 70 111 /** … … 72 113 * This count isn't counted into the SMcDFInuse count I think. 73 114 */ 115 #ifdef KKRNLLIB 74 116 extern PULONG pSMcInMemFile; 75 117 #define SMcInMemFile (*pSMcInMemFile) 118 #else 119 extern ULONG SMcInMemFile; 120 #endif 76 121 77 122 -
trunk/src/win32k/kKrnlLib/include/OS2KTCB.h
r6701 r6815 1 /* $Id: OS2KTCB.h,v 1. 1 2001-09-14 01:50:16bird Exp $1 /* $Id: OS2KTCB.h,v 1.2 2001-09-26 03:52:37 bird Exp $ 2 2 * 3 3 * TCB - Thread Control Block access methods. … … 149 149 } TCB, *PTCB, **PPTCB; 150 150 151 #ifdef KKRNLLIB 151 152 extern PPTCB ppTCBCur; 153 #else 154 extern PTCB pTCBCur; 155 #endif 152 156 153 157 … … 161 165 * NULL if not task-time. 162 166 */ 167 #ifdef KKRNLLIB 163 168 #define tcbGetCur() *ppTCBCur 169 #else 170 #define tcbGetCur() pTCBCur 171 #endif 164 172 165 173 -
trunk/src/win32k/kKrnlLib/include/OS2KTK.h
r6701 r6815 1 /* $Id: OS2KTK.h,v 1. 1 2001-09-14 01:50:16bird Exp $1 /* $Id: OS2KTK.h,v 1.2 2001-09-26 03:52:37 bird Exp $ 2 2 * 3 3 * OS2KTK - OS/2 Kernel Task. … … 98 98 */ 99 99 extern ULONG KRNLCALL TKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl); 100 extern ULONG KRNLCALL OrgTKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl); 100 101 101 102 … … 109 110 */ 110 111 extern ULONG KRNLCALL TKSuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl); 112 extern ULONG KRNLCALL OrgTKSuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl); 111 113 112 114 … … 122 124 */ 123 125 extern ULONG KRNLCALL TKFuBufLen(PLONG pcch, PVOID pvUsr, ULONG cchMax, ULONG fl, BOOL fDblNULL); 126 extern ULONG KRNLCALL OrgTKFuBufLen(PLONG pcch, PVOID pvUsr, ULONG cchMax, ULONG fl, BOOL fDblNULL); 124 127 125 128 … … 133 136 */ 134 137 extern ULONG KRNLCALL TKSuFuBuff(PVOID pvTarget, PVOID pvSource, ULONG cb, ULONG fl); 138 extern ULONG KRNLCALL OrgTKSuFuBuff(PVOID pvTarget, PVOID pvSource, ULONG cb, ULONG fl); 135 139 136 140 … … 144 148 */ 145 149 extern ULONG KRNLCALL TKPidToPTDA(PID pid, PPPTDA ppPTDA); 150 extern ULONG KRNLCALL OrgTKPidToPTDA(PID pid, PPPTDA ppPTDA); 146 151 #endif 147 152 … … 165 170 */ 166 171 extern ULONG KRNLCALL TKScanTasks(ULONG flFlags, ULONG id, PTKSCANTASKWORKER pfnWorker, ULONG ulArg); 172 extern ULONG KRNLCALL OrgTKScanTasks(ULONG flFlags, ULONG id, PTKSCANTASKWORKER pfnWorker, ULONG ulArg); 167 173 #endif 168 174 … … 170 176 /** 171 177 * Post signal to one or more processes. 172 * @returns NO_ERROR on success. 173 * On error ERROR_NOT_DESCENDANT, ERROR_SIGNAL_REFUSED, 174 * ERROR_INVALID_PROCID, ERROR_ZOMBIE_PROCESS, ERROR_SIGNAL_PENDING. (it seems) 175 * @param usSignal Signal number. 176 * @param usAction Action. 177 * 0 - the process and all children. 178 * 1 - only the process 179 * 2 - the process and all it's descendants. 180 * 3 - all processes in that screen group. 181 * @param usSignalArg Signal argument. 182 * @param usPIDSGR Process Id or Screen Group Id. 178 * @returns NO_ERROR on success. 179 * On error ERROR_NOT_DESCENDANT, ERROR_SIGNAL_REFUSED, 180 * ERROR_INVALID_PROCID, ERROR_ZOMBIE_PROCESS, ERROR_SIGNAL_PENDING. (it seems) 181 * @param usSignal Signal number. 182 * @param usAction Action. 183 * 0 - the process and all children. 184 * 1 - only the process 185 * 2 - the process and all it's descendants. 186 * 3 - all processes in that screen group. 187 * @param usSignalArg Signal argument. 188 * @param usPIDSGR Process Id or Screen Group Id. 189 * @remark Win32k Internal call. 183 190 */ 184 191 extern ULONG _Optlink POST_SIGNAL32(USHORT usSignal, USHORT usAction, USHORT usSignalArg, USHORT usPIDSGR); … … 196 203 */ 197 204 extern void KRNLCALL TKForceThread(ULONG flFlag, PTCB pTCB); 205 extern void KRNLCALL OrgTKForceThread(ULONG flFlag, PTCB pTCB); 198 206 #endif 199 207 … … 207 215 */ 208 216 extern void KRNLCALL TKForceTask(ULONG flFlag, PPTDA pPTDA, BOOL fForce); 217 extern void KRNLCALL OrgTKForceTask(ULONG flFlag, PPTDA pPTDA, BOOL fForce); 209 218 #endif 210 219 … … 216 225 */ 217 226 extern ULONG KRNLCALL TKGetPriority(PTCB pTCB); 227 extern ULONG KRNLCALL OrgTKGetPriority(PTCB pTCB); 218 228 #endif 219 229 … … 231 241 */ 232 242 extern ULONG KRNLCALL TKSleep(ULONG ulSleepId, ULONG ulTimeout, ULONG fUnInterruptable, ULONG flWakeupType); 243 extern ULONG KRNLCALL OrgTKSleep(ULONG ulSleepId, ULONG ulTimeout, ULONG fUnInterruptable, ULONG flWakeupType); 233 244 234 245 /** … … 242 253 */ 243 254 extern ULONG KRNLCALL TKWakeup(ULONG ulSleepId, ULONG flWakeupType, PULONG cWakedUp); 255 extern ULONG KRNLCALL OrgTKWakeup(ULONG ulSleepId, ULONG flWakeupType, PULONG cWakedUp); 244 256 245 257 #ifdef INCL_OS2KRNL_TCB … … 251 263 */ 252 264 extern ULONG KRNLCALL TKWakeThread(PTCB pTCB); 265 extern ULONG KRNLCALL OrgTKWakeThread(PTCB pTCB); 253 266 #endif 254 267 … … 262 275 */ 263 276 extern PTCB KRNLCALL TKQueryWakeup(ULONG ulSleepId, ULONG flWakeupType); 264 #endif 265 266 #endif 277 extern PTCB KRNLCALL OrgTKQueryWakeup(ULONG ulSleepId, ULONG flWakeupType); 278 #endif 279 280 #endif -
trunk/src/win32k/kKrnlLib/include/OS2KVM.h
r6701 r6815 1 /* $Id: OS2KVM.h,v 1. 1 2001-09-14 01:50:16bird Exp $1 /* $Id: OS2KVM.h,v 1.2 2001-09-26 03:52:37 bird Exp $ 2 2 * 3 3 * OS/2 kernel VM functions. … … 225 225 * Virtual Address Limit - this pointer might be NULL! 226 226 */ 227 #ifdef KKRNLLIB 227 228 extern ULONG *pVirtualAddressLimit; 228 #define VirtualAddressLimit (pVirtualAddressLimit ? *pVirtualAddressLimit : 0x20000000) 229 #define VirtualAddressLimit (pVirtualAddressLimit ? *pVirtualAddressLimit : 0x20000000UL) 230 #else 231 extern ULONG VirtualAddressLimit; 232 #define VirtualAddressLimit (&VirtualAddressLimit ? VirtualAddressLimit : 0x20000000UL) 233 #endif 229 234 230 235 /** 231 236 * System arena header. 232 237 */ 238 #ifdef KKRNLLIB 233 239 extern PVMAH pahvmSys; 234 240 #define ahvmSys (*pahvmSys) 241 #else 242 extern VMAH ahvmSys; 243 #endif 235 244 236 245 /** 237 246 * Shared arena header. 238 247 */ 248 #ifdef KKRNLLIB 239 249 extern PVMAH pahvmShr; 240 250 #define ahvmShr (*pahvmShr) 251 #else 252 extern VMAH ahvmShr; 253 #endif 241 254 242 255 /** 243 256 * High Shread arena header - only aurora and Warp Server Advanced SMP. 244 */ 257 * Check if &ahvmhShr is NULL! 258 */ 259 #ifdef KKRNLLIB 245 260 extern PVMAH pahvmhShr; 246 261 #define ahvmhShr (*pahvmhShr) 262 #else 263 extern VMAH ahvmhShr; 264 #endif 247 265 248 266 … … 253 271 ULONG ulCS, 254 272 ULONG ulEIP); 273 HMTE KRNLCALL OrgVMGetOwner( 274 ULONG ulCS, 275 ULONG ulEIP); 255 276 256 277 APIRET KRNLCALL VMAllocMem( … … 264 285 ULONG SomeArg2, 265 286 PVMAC pvmac); 287 APIRET KRNLCALL OrgVMAllocMem( 288 ULONG cbSize, 289 ULONG cbCommit, 290 ULONG flFlags1, 291 HPTDA hPTDA, 292 USHORT usVMOwnerId, 293 HMTE hMTE, 294 ULONG flFlags2, 295 ULONG SomeArg2, 296 PVMAC pvmac); 266 297 267 298 APIRET KRNLCALL VMFreeMem( 299 ULONG ulAddress, 300 HPTDA hPTDA, 301 ULONG flFlags); 302 APIRET KRNLCALL OrgVMFreeMem( 268 303 ULONG ulAddress, 269 304 HPTDA hPTDA, … … 276 311 HPTDA hPTDA, 277 312 PVMAC pvmac); 313 APIRET KRNLCALL OrgVMMapDebugAlias( 314 ULONG flVMFlags, 315 ULONG ulAddress, 316 ULONG cbSize, 317 HPTDA hPTDA, 318 PVMAC pvmac); 278 319 279 320 APIRET KRNLCALL VMObjHandleInfo( … … 281 322 PULONG pulAddr, 282 323 PUSHORT pushPTDA); 324 APIRET KRNLCALL OrgVMObjHandleInfo( 325 USHORT usHob, 326 PULONG pulAddr, 327 PUSHORT pushPTDA); 283 328 284 329 #ifdef _OS2KLDR_H_ 285 330 PMTE KRNLCALL VMPseudoHandleMap( 331 HMTE hMTE); 332 PMTE KRNLCALL OrgVMPseudoHandleMap( 286 333 HMTE hMTE); 287 334 #endif … … 301 348 ULONG flFlags, 302 349 PULONG pulSentinelAddress); 350 VOID KRNLCALL OrgvmRecalcShrBound( 351 ULONG flFlags, 352 PULONG pulSentinelAddress); 303 353 304 354 … … 317 367 VMHOB usOwner, 318 368 PVMHOB phob); 369 APIRET KRNLCALL OrgVMCreatePseudoHandle( 370 PVOID pvData, 371 VMHOB usOwner, 372 PVMHOB phob); 319 373 320 374 … … 327 381 APIRET KRNLCALL VMFreePseudoHandle( 328 382 VMHOB hob); 329 330 331 #endif 383 APIRET KRNLCALL OrgVMFreePseudoHandle( 384 VMHOB hob); 385 386 387 #endif -
trunk/src/win32k/kKrnlLib/include/OS2Krnl.h
r6797 r6815 1 /* $Id: OS2Krnl.h,v 1. 2 2001-09-24 02:13:01bird Exp $1 /* $Id: OS2Krnl.h,v 1.3 2001-09-26 03:52:36 bird Exp $ 2 2 * 3 3 * OS/2 kernel structures, typedefs and macros. … … 82 82 #define INCL_OS2KRNL_VM 83 83 #define INCL_OS2KRNL_VMOWNER 84 #define INCL_OS2KRNL_SEL 84 85 #define INCL_OS2KRNL_SM 85 86 #define INCL_OS2KRNL_SEM 86 87 #define INCL_OS2KRNL_TK 87 88 #define INCL_OS2KRNL_PTDA 89 #define INCL_OS2KRNL_PG 88 90 #define INCL_OS2KRNL_TCB 89 91 #define INCL_OS2KRNL_SEC … … 107 109 #endif 108 110 109 #ifdef INCL_OS2KRNL_PG110 #include <OS2KPG.h>111 #endif112 113 111 #ifdef INCL_OS2KRNL_SM 114 112 #include <OS2KSM.h> … … 127 125 #endif 128 126 127 #ifdef INCL_OS2KRNL_PG 128 #include <OS2KPG.h> 129 #endif 130 131 #ifdef INCL_OS2KRNL_SEL 132 #include <OS2KSEL.h> 133 #endif 134 129 135 #ifdef INCL_OS2KRNL_TK 130 136 #include <OS2KTK.h>
Note:
See TracChangeset
for help on using the changeset viewer.