Category : C Source Code
Archive   : LANCE.ZIP
Filename : LANCE.P

 
Output of file : LANCE.P contained in archive : LANCE.ZIP
#define PID_CREATEWINDOW 0
#define PID_REGISTERCLASS 1
#define PID_DESTROYWINDOW 2
#define PID_ENDDIALOG 3
#define PID_CREATEWINDOWEX 4
#define PID_DEFMDI 5
#define PID_MDIMAIN 6
#define PID_MESSAGEBOX 7
#define PID_SENDMESSAGE 8
#define PID_LASTPID 8

#define SW_ALREADYPATCHED -1
#define SW_NOTPATCHED -2
#define SW_INVALIDPID -3

#define CPBYTES 5

struct tagPatchInfo
{
LPSTR p_oldFuncOPCodes;
FARPROC p_oldFunc;
BYTE ab_oldCode[CPBYTES+1];
WORD w_readSel;
WORD w_writeSel;

BYTE ab_jmpCode[CPBYTES+1];
BYTE b_patched;

} typedef s_PATCHINFO;

BOOL FAR PASCAL Release (WORD w_patchID);
BOOL FAR PASCAL Intercept (WORD w_patchID, FARPROC p_newFunc);
s_PATCHINFO FAR * FAR PASCAL GetPID(WORD w_patchID);




  3 Responses to “Category : C Source Code
Archive   : LANCE.ZIP
Filename : LANCE.P

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/