Changeset 15353


Ignore:
Timestamp:
Dec 11, 2000, 7:45:03 AM (24 years ago)
Author:
bird
Message:

Prototyped new imported and overrided kernel functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/win32k/include/LdrCalls.h

    r14874 r15353  
    1 /* $Id: LdrCalls.h,v 1.6 2000-09-22 09:22:37 bird Exp $
     1/* $Id: LdrCalls.h,v 1.7 2000-12-11 06:45:03 bird Exp $
    22 *
    33 * Prototypes for the loader overrided function.
     
    1919*******************************************************************************/
    2020#define LDRCALL __stdcall
     21
     22/** Additional ldrFindModule flag. Or together with the class. */
     23#define SEARCH_FULL_NAME    0x0001
    2124
    2225
     
    225228 * @sketch
    226229 */
    227 ULONG LDRCALL ldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
     230ULONG LDRCALL ldrFindModule(        /* retd  0x10 */
     231    PCHAR       pachFilename,       /* ebp + 0x08 */
     232    USHORT      cchFilename,        /* ebp + 0x0c */
     233    USHORT      usClass,            /* ebp + 0x10 */
     234    PPMTE       ppMTE               /* ebp + 0x14 */
     235    );
     236
     237ULONG LDRCALL myldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
    228238
    229239
     
    274284
    275285/**
     286 * Translates a relative filename to a full qualified filename.
     287 * @returns NO_ERROR on success.
     288 *          Errorcode on error.
     289 * @param   pszFilename     Pointer to nullterminated filename.
     290 */
     291extern ULONG LDRCALL ldrTransPath(PSZ pszFilename);
     292
     293
     294/**
    276295 * Sets the VM flags for an executable object.
    277296 * @returns     void
     
    292311
    293312/**
     313 * Checks if the internal name (first name in the resident nametable) matches
     314 * the filename.
     315 * @returns     NO_ERROR on success (the name matched).
     316 *              ERROR_INVALID_NAME if mismatch.
     317 * @param       pMTE    Pointer to the MTE of the module to check.<br>
     318 *                      Assumes! that the filename for this module is present in ldrpFileNameBuf.
     319 */
     320extern ULONG LDRCALL    ldrCheckInternalName( /* retd  0x04 */
     321    PMTE        pMTE                /* ebp + 0x08 */
     322    );
     323
     324ULONG LDRCALL myldrCheckInternalName(PMTE pMTE);
     325
     326
     327/**
     328 * Parses a filename to find the name and extention.
     329 * @returns Length of the filename without the extention.
     330 * @param   pachFilename    Pointer to filename to parse - must have path!
     331 * @param   ppachName       Pointer to pointer which should hold the name pointer upon successfull return.
     332 * @param   ppachExt        Pointer to pointer which should hold the extention pointer upon successfull return.
     333 */
     334extern ULONG LDRCALL    ldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     335
     336
     337/**
     338 * Parses a filename to find the name and extention.
     339 * @returns Length of the filename without the extention.
     340 * @param   pachFilename    Pointer to filename to parse - path not needed.
     341 * @param   ppachName       Pointer to pointer which should hold the name pointer upon successfull return.
     342 * @param   ppachExt        Pointer to pointer which should hold the extention pointer upon successfull return.
     343 */
     344extern ULONG LDRCALL    ldrGetFileName2(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     345
     346
     347/**
     348 * Uppercase a string.
     349 * @returns void
     350 * @param   pach    String to uppercase.
     351 * @param   cch     Length of string. (may include terminator)
     352 */
     353extern VOID LDRCALL     ldrUCaseString(PCHAR pch, unsigned cch);
     354
     355
     356/**
    294357 * Pointer to the loader filename buffer.
    295358 * Upon return from ldrOpen (and ldrOpenPath which calls ldrOpen) this is
Note: See TracChangeset for help on using the changeset viewer.