VerifierEnumerateResource function (avrfsdk.h)
Enumerates operating system resources for use by debugging and support tools.
Syntax
ULONG VerifierEnumerateResource(
HANDLE Process,
ULONG Flags,
ULONG ResourceType,
AVRF_RESOURCE_ENUMERATE_CALLBACK ResourceCallback,
PVOID EnumerationContext
);
Parameters
Process
A handle to the process in which resources are being enumerated.
When the ResourceType parameter is AvrfResrouceHeapAllocation, the handle must be opened with the PROCESS_VM_READ and PROCESS_QUERY_INFORMATION access rights.
If ResourceType is AvrfResrouceHeapAllocation and the Flags parameter contains AVRF_ENUM_RESOURCES_FLAGS_SUSPEND, the PROCESS_SUSPEND_RESUME flag must be used as well.
Flags
If ResourceType is AvrfResourceHandleTrace, no flags are defined and the value for the Flags parameter must be 0.
If the ResourceType parameter is AvrfResourceHeapAllocation, the Flags parameter can be 0 or a combination of the following values.
ResourceType
This parameter can be one of the following values:
ResourceCallback
An application-defined function that is invoked by the API.
The prototype is agnostic toward the type of resource being enumerated. The use will pass a prototype suitable for the type of enumeration being performed
EnumerationContext
An application-specific pointer that is passed back to the callback function.
Return value
This function returns one of the system error codes.
Remarks
This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Verifier.dll.
Examples
See Using Resource Enumeration.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | avrfsdk.h |
DLL | Verifier.dll |
See also
AVRF_HANDLEOPERATION_ENUMERATE_CALLBACK
AVRF_HEAPALLOCATION_ENUMERATE_CALLBACK