pfnAcRedirTraceIgnored function

Callback invoked when a path is not redirected, and the original call is issued.


VOID pfnAcRedirTraceIgnored(
  _In_     ACREDIR_REDIRECT_TYPE redirectType,
  _In_     PVOID                 callerAddress,
  _In_     LPCWSTR               apiName,
  _In_opt_ LPCWSTR               path,
  _In_     LONG_PTR              result


redirectType [in]

A type of operation. Can be ACREDIR_REDIRECT_TYPE_FILE for files, or ACREDIR_REDIRECT_TYPE_REGISTRY for registry operations.

callerAddress [in]

The address of the function that called the API. Can be used to determine the calling module.

apiName [in]

A string that specifies the name of the API; for example, RegOpenKeyA() or CreateFileW().

path [in, optional]

The original path that was passed to the API. Can be NULL.

result [in]

The result of the API call, cast to a LONG_PTR. The actual type depends on the API that was called. For example, some Win32 APIs return a DWORD error code, while other APIs return a BOOL.

Return value

No return value.


The result parameter is the result of the original call. Usually, it is a Win32 error code, but it can also be a HANDLE. It is up to the callback to interpret this value appropriately.


Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008



See also