Adds a function to resource monitoring.
Unit
Syntax
ParametersAModuleName DLL file name to hook. Case insensitive
AAPIName DLL's function name to hook. Case sensitive
AAPICategory Category for API.
AAPIType Sub-type of API. Typically equals APICategory
AParamCount Number of functions arguments
ACreate True - function creates resource, False - function destroys resource
ACheckType Specifies valid/invalid conditions for function call. See TCheckType description for more details
ACheckValue Value for failure call. See TCheckType description for more details
AResultParam Index of function's argument which returns resource (for Create-like functions) or accepts resource (for Destroy-like functions). Use -1 for functions and >= 0 for procedures. Use -2 for resources without handles at all (i.e. handle is never exposed, so you only need to watch for pairing calls)
RemarksNotes:
- ACheckValue is ignored (and must be 0) for ctNone, ctHResult, ctNTStatus.
- AResultParam can't be a return value, if check type is ctHResult or ctNTStatus
- Dispose-like function (ACreate = False) can't return handle - handle should be only passed as argument or be an internal handle (AResultParam = -2 or AResultParam >= 0)
|