home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1996 November / PCO96_11.ISO / filesbbs / taskmon.arj / PASCAL / FUNCHOOK.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-08-23  |  2.3 KB  |  76 lines

  1. const
  2.   SMM_BAD_HEAP        = -1;
  3.   SMM_ATTR_EXTENSIBLE = $0003;
  4.   SMM_ATTR_ZEROINIT   = $1000;
  5.   FUNCHOOK_CMD_STATUS = 102;
  6.   FUNCHOOK_CMD_LASTRESULT = 103;
  7.   FUNCHOOK_CMD_PROCESSID = 105;
  8.   FUNCHOOK_CONFIG_EXITCOND = 201;
  9.   FUNCHOOK_CONFIG_RTNSIZE = 203;
  10.   FUNCHOOK_CONFIG_BEXITCOND = 211;
  11.   FUNCHOOK_CONFIG_BRTNSIZE = 213;
  12.   FUNCHOOK_COND_STOP = 1;
  13.   FUNCHOOK_COND_NE = 3;
  14.   FUNCHOOK_STATUS_MASK = $00FF;
  15.   FUNCHOOK_STATUS_DOIT = $0000;
  16.   FUNCHOOK_STATUS_SKIP = $0002;
  17.   FUNCHOOK_STATUS_NOTDONE = $0100;
  18.   FUNCHOOK_STATUS_LAST = $8000;
  19.  
  20. function FuncHookInstallHookEx
  21.   (LibraryName: PChar;
  22.    FunctionName: PChar;
  23.    HookFunction: TFarProc;
  24.    StackCount: LongInt;
  25.    Last: WordBool): LongInt;
  26.     stdcall; external 'FH95LITE.DLL' index 1102;
  27. function FuncHookUnInstallHook
  28.   (HookId: LongInt): WordBool;
  29.     stdcall; external 'FH95LITE.DLL' index 1103;
  30. function FuncHookGetInfo
  31.   (Cmd: Integer;
  32.    Par: LongInt): LongInt;
  33.     stdcall; external 'FH95LITE.DLL' index 1105;
  34. function FuncHookSetInfo
  35.   (Cmd: Integer;
  36.    Par: LongInt;
  37.    Value: LongInt): LongInt;
  38.     stdcall; external 'FH95LITE.DLL' index 1106;
  39. function FuncHookConfigureHook
  40.    (HookId: LongInt;
  41.     ConfigCmd: Integer;
  42.     ConfigData: LongInt;
  43.     Config: LongInt): WordBool;
  44.     stdcall; external 'FH95LITE.DLL' index 1112;
  45. function FuncHookUnlockDeletion
  46.   (DeletionCount: Integer): Integer;
  47.     stdcall; external 'FH95LITE.DLL' index 1114;
  48. function SMMCreate
  49.   (LogSize: DWord; LogAttr: DWord): DWord;
  50.     stdcall; external 'FH95LITE.DLL' index 1311;
  51. function SMMDestroy
  52.   (SMMHandle: DWord): WordBool;
  53.     stdcall; external 'FH95LITE.DLL' index 1312;
  54. function SMMAlloc
  55.   (SMMHandle: DWord;
  56.    ItemSize: DWord): PChar;
  57.     stdcall; external 'FH95LITE.DLL' index 1313;
  58. function SLMAdd
  59.   (List: PByte;
  60.    Item: PByte): WordBool;
  61.     stdcall; external 'FH95LITE.DLL' index 1401;
  62. function SLMCreateEx
  63.   (ItemSize: DWord;
  64.    SMMHandle: DWord): Pointer;
  65.     stdcall; external 'FH95LITE.DLL' index 1406;
  66. function SLMFirst
  67.   (List: PByte): PByte;
  68.     stdcall; external 'FH95LITE.DLL' index 1410;
  69. function SLMNext
  70.   (List: PByte): PByte;
  71.     stdcall; external 'FH95LITE.DLL' index 1416;
  72. function ProcProcessName
  73.   (ProcessId: LongInt;
  74.    ProcessName: PChar): Integer;
  75.     stdcall; external 'FH95LITE.DLL' index 1601;
  76.