Ignore:
Timestamp:
Oct 1, 2000, 4:58:21 AM (25 years ago)
Author:
bird
Message:

Implemented tool for generating calltab for kernel imports. (mkcalltab)
Implemented API for accessing memory in another process. (*ProcessReadWrite)
Added kernel imports needed to implemented ProcessReadWrite.
Removed unused kernel imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/test.h

    r4227 r4347  
    1 /* $Id: test.h,v 1.3 2000-09-08 21:34:11 bird Exp $
     1/* $Id: test.h,v 1.4 2000-10-01 02:58:17 bird Exp $
    22 *
    33 * Definitions and declarations for test moduls.
     
    1717#endif
    1818
     19/*******************************************************************************
     20*   Structures and Typedefs                                                    *
     21*******************************************************************************/
     22typedef struct _TstFaker
     23{
     24    unsigned   uAddress;
     25    int        fObj;                   /* 1 = CODE32, 2 = CODE16, 3 = DATA32, 4 = DATA16 */
     26} TSTFAKER, *PTSTFAKER, **PPTSTFAKER;
     27#ifdef NBR_OF_KRNLIMPORTS
     28extern TSTFAKER aTstFakers[NBR_OF_KRNLIMPORTS];
     29#endif
     30
     31/*******************************************************************************
     32*   Function Prototypes.                                                       *
     33*******************************************************************************/
    1934VOID  _Optlink ThunkStack32To16(VOID);  /* dh.asm */
    2035VOID  _Optlink ThunkStack16To32(VOID);  /* dh.asm */
     
    96111    ULONG   SomeArg2,
    97112    PVMAC   pvmac);
     113APIRET KRNLCALL fakeVMFreeMem(
     114    PVOID   pv,
     115    USHORT  hPTDA,
     116    ULONG   flFlags
     117    );
    98118APIRET KRNLCALL fakeVMObjHandleInfo(
    99119    USHORT  usHob,
     
    102122PMTE KRNLCALL fakeldrASMpMTEFromHandle(
    103123    HMTE  hMTE);
    104 ULONG LDRCALL   fakeldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful);
     124APIRET KRNLCALL fakeVMMapDebugAlias(
     125    ULONG   flVMFlags,
     126    ULONG   ulAddress,
     127    ULONG   cbSize,
     128    HPTDA   hPTDA,
     129    PVMAC   pvmac);
     130
     131ULONG LDRCALL   fakeldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
     132ULONG LDRCALL   fakeldrOpenPath_new(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
     133ULONG LDRCALL   fakeldrOpenPath_old(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful);
    105134ULONG LDRCALL   fakeLDRClearSem(void);
    106135ULONG LDRCALL   fakeldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
     
    109138BOOL  KRNLCALL  fakeKSEMQueryMutex(HKSEMMTX hkmtx, PUSHORT pcusNest);
    110139VOID  KRNLCALL  fakeKSEMInit(PKSEM pksem, ULONG fulType, ULONG fulFlags);
    111 extern KSEMMTX  fakeLDRSem;
     140extern KSEMMTX  fakeLdrSem;
    112141extern char *   fakeLDRLibPath;
    113142ULONG KRNLCALL  fakeTKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl);
    114143ULONG KRNLCALL  fakeTKSuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl);
    115144ULONG KRNLCALL  fakeTKFuBufLen(PLONG pcch, PVOID pvUsr, ULONG cchMax, ULONG fl, BOOL fDblNULL);
     145ULONG KRNLCALL  fakeTKSuFuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl);
     146ULONG KRNLCALL  fakeTKPidToPTDA(PID pid, PPPTDA ppPTDA);
    116147PMTE LDRCALL    fakeldrValidateMteHandle(HMTE hMTE);
    117148PSZ  SECCALL    fakeSecPathFromSFN(SFN hFile);
    118149void _Optlink   fakeg_tkExecPgm(void);    /* Not callable! (fakea.asm) */
    119 void _Optlink   fake_tkStartProcess(void);/* Not callable! (fakea.asm) */
     150void _Optlink   faketkStartProcess(void); /* Not callable! (fakea.asm) */
    120151void _Optlink   fakef_FuStrLenZ(void);    /* Not callable! (fakea.asm) */
    121152void _Optlink   fakef_FuStrLen(void);     /* Not callable! (fakea.asm) */
     
    126157extern USHORT   fakeptda_environ;
    127158extern KSEMMTX  fakeptda_ptdasem;
     159extern HMTE     fakeptda_handle;
    128160extern HMTE     fakeptda_module;
    129161extern PSZ      fakeptda_pBeginLIBPATH;
Note: See TracChangeset for help on using the changeset viewer.