Ignore:
Timestamp:
Sep 26, 2001, 5:52:37 AM (24 years ago)
Author:
bird
Message:

Updated to work for kKrnlLib.DLL and internally in kKrnlLib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 $
    22 *
    33 * OS/2 kernel Loader Stuff.
     
    2929    ULONG    ote_pagemap;          /* Object page map index */
    3030    ULONG    ote_mapsize;          /* Num of entries in obj page map */
    31   /*ULONG    ote_reserved;*/
    3231    USHORT   ote_sel;              /* Object Selector */
    3332    USHORT   ote_hob;              /* Object Handle */
     
    226225*   Global Variables                                                           *
    227226*******************************************************************************/
     227#ifdef KKRNLLIB
    228228extern PSZ*    pLdrLibPath;             /* Pointer to the libpath pointer. */
    229229extern PPMTE   pmte_h;
     
    234234extern PPMTE   pspecific_h;
    235235extern PPMTE   pspecific_l;
     236#else
     237extern PSZ     LdrLibPath;             /* Pointer to the libpath. */
     238extern PMTE    mte_h;
     239extern PMTE    program_h;
     240extern PMTE    program_l;
     241extern PMTE    global_h;
     242extern PMTE    global_l;
     243extern PMTE    specific_h;
     244extern PMTE    specific_l;
     245#endif
    236246
    237247/*******************************************************************************
     
    245255    );
    246256
    247 ULONG LDRCALL myldrClose(SFN);
     257extern ULONG LDRCALL OrgldrClose(SFN);
    248258
    249259
     
    257267    );
    258268
    259 ULONG LDRCALL myldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl);
     269extern ULONG LDRCALL OrgldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl);
    260270
    261271
     
    272282    );
    273283
    274 ULONG LDRCALL myldrRead(
     284extern ULONG LDRCALL OrgmyldrRead(
    275285    SFN     hFile,
    276286    ULONG   ulOffset,
     
    282292
    283293
    284 
    285294/**
    286295 * _LDRQAppType
     
    291300    );
    292301
    293 ULONG LDRCALL myLDRQAppType(ULONG,ULONG);
     302extern ULONG LDRCALL OrgLDRQAppType(ULONG,ULONG);
    294303
    295304
     
    313322    );
    314323
    315 ULONG LDRCALL myldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID);
    316 
     324extern ULONG LDRCALL OrgldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID);
    317325
    318326
     
    372380 *      endloop
    373381 *  endif
     382 * @remark  Win32k Internal stuff???
    374383 */
    375384extern ULONG LDRCALL ldrOpenPath_old(   /* retd  0x10 */
     
    379388    PULONG      pful                /* ebp + 0x14 */
    380389    );
    381 
    382 ULONG LDRCALL myldrOpenPath_old(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful);
    383390
    384391
     
    429436    );
    430437
    431 ULONG LDRCALL myldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
     438extern ULONG LDRCALL OrgldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
    432439
    433440
     
    442449 * @sketch
    443450 */
    444 ULONG LDRCALL ldrFindModule(        /* retd  0x10 */
     451extern ULONG LDRCALL ldrFindModule( /* retd  0x10 */
    445452    PCHAR       pachFilename,       /* ebp + 0x08 */
    446453    USHORT      cchFilename,        /* ebp + 0x0c */
     
    449456    );
    450457
    451 ULONG LDRCALL myldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
     458extern ULONG LDRCALL OrgldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
    452459
    453460
     
    469476    PULONG      pcUsage);               /* ebp + 0x10 */
    470477
    471 ULONG LDRCALL myldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage);
     478extern ULONG LDRCALL OrgldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage);
    472479#endif
    473480
     
    497504    PULONG      pulProcType);           /* ebp + 0x1c */
    498505
    499 ULONG LDRCALL myLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType);
     506extern ULONG LDRCALL OrgLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType);
    500507
    501508
     
    508515 */
    509516extern ULONG LDRCALL LDRClearSem(void);
     517extern ULONG LDRCALL OrgLDRClearSem(void);
    510518
    511519
     
    515523 *            OS2 errorcode on failure. (ERROR_INTERRUPT?)
    516524 */
     525#ifdef KKRNLLIB
    517526#define LDRRequestSem()   KSEMRequestMutex(pLdrSem, (ULONG)-1)
     527#else
     528#define LDRRequestSem()   KSEMRequestMutex(&LdrSem, (ULONG)-1)
     529#endif
    518530
    519531
     
    522534 */
    523535#ifdef _OS2KSEM_h_
     536#ifdef KKRNLLIB
    524537extern PKSEMMTX    pLdrSem;
     538#else
     539extern KSEMMTX     LdrSem;
     540#endif
    525541#endif
    526542
     
    535551 */
    536552extern PMTE LDRCALL ldrValidateMteHandle(HMTE hMTE);
     553extern PMTE LDRCALL OrgldrValidateMteHandle(HMTE hMTE);
    537554
    538555
     
    544561 */
    545562extern PMTE KRNLCALL ldrASMpMTEFromHandle(HMTE  hMTE);
     563extern PMTE KRNLCALL OrgldrASMpMTEFromHandle(HMTE  hMTE);
    546564
    547565
     
    553571 */
    554572extern ULONG LDRCALL ldrTransPath(PSZ pszFilename);
     573extern ULONG LDRCALL OrgldrTransPath(PSZ pszFilename);
    555574
    556575
     
    570589    );
    571590
    572 VOID LDRCALL myldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2);
     591extern VOID LDRCALL OrgldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2);
    573592
    574593
     
    584603    PMTE        pMTE                /* ebp + 0x08 */
    585604    );
    586 
    587 ULONG LDRCALL myldrCheckInternalName(PMTE pMTE);
     605extern ULONG LDRCALL OrgldrCheckInternalName(PMTE pMTE);
    588606
    589607
     
    596614 */
    597615extern ULONG LDRCALL    ldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     616extern ULONG LDRCALL    OrgldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
    598617
    599618
     
    604623 * @param   ppachName       Pointer to pointer which should hold the name pointer upon successfull return.
    605624 * @param   ppachExt        Pointer to pointer which should hold the extention pointer upon successfull return.
     625 * @remark  Win32k internal function???
    606626 */
    607627extern ULONG LDRCALL    ldrGetFileName2(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     
    615635 */
    616636extern VOID LDRCALL     ldrUCaseString(PCHAR pch, unsigned cch);
     637extern 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 */
     650extern ULONG LDRCALL    ldrGetOrdNum(PMTE pMTE, PSZ pszExportName, PUSHORT pusOrdinal);
     651extern 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 */
     658extern void LDRCALL     LDRFreeTask(PPTDA pPTDA);
     659extern void LDRCALL     OrgLDRFreeTask(PPTDA pPTDA);
    617660
    618661
     
    622665 * set to the fully qualified filename of the file last opened (successfully).
    623666 */
    624 extern PSZ *pldrpFileNameBuf;
     667#ifdef KKRNLLIB
     668extern PSZ *    pldrpFileNameBuf;
    625669#define ldrpFileNameBuf (*pldrpFileNameBuf)
     670#else
     671extern PSZ      ldrpFileNameBuf;
     672#endif
    626673
    627674
Note: See TracChangeset for help on using the changeset viewer.