IoIsFileOriginRemote function (ntddk.h)

The IoIsFileOriginRemote routine determines whether a given file object is for a remote create request.

Syntax

BOOLEAN IoIsFileOriginRemote(
  [in] PFILE_OBJECT FileObject
);

Parameters

[in] FileObject

Pointer to a file object for the file.

Return value

IoIsFileOriginRemote returns TRUE if the file object was created to satisfy a remote create request, otherwise FALSE.

Remarks

File system filter drivers call IoIsFileOriginRemote for a file object to determine whether it represents a remote create request.

IoIsFileOriginRemote must be called after the create request has entirely completed. In other words, it cannot be called in the create dispatch ("pre-create") path or the create completion ("post-create") path.

IoIsFileOriginRemote checks the FO_REMOTE_ORIGIN flag on the file object pointed to by FileObject. Network file systems set or clear this flag by calling IoSetFileOrigin.

Requirements

Requirement Value
Minimum supported client This routine is available on Microsoft Windows XP and later.
Target Platform Universal
Header ntddk.h (include Ntddk.h, Ntifs.h, Fltkernel.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

IoSetFileOrigin