FltGetRequestorSessionId routine

The FltGetRequestorSessionId routine returns the session ID of the process that originally requested the specified I/O operation.

Syntax


NTSTATUS FltGetRequestorSessionId(
  _In_  PFLT_CALLBACK_DATA CallbackData,
  _Out_ PULONG             SessionId
);

Parameters

CallbackData [in]

A pointer to the FLT_CALLBACK_DATA structure specifying the I/O operation.

SessionId [out]

A pointer to the session ID for the requesting operation.

Return value

The FltGetRequestorSessionId routine returns STATUS_SUCCESS on success or STATUS_UNSUCCESSFUL on failure.

Remarks

If a process has no session ID, the SessionId parameter refers to -1 and the FltGetRequestorSessionId routine returns STATUS_SUCCESS.

If the FltGetRequestorSessionId routine returns STATUS_UNSUCCESSFUL, SessionId is not valid.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows 7 and later versions of the Windows operating system.

Header

FltKernel.h (include FltKernel.h)

Library

FltMgr.lib

DLL

Fltmgr.sys

IRQL

<= APC_LEVEL

 

 

Send comments about this topic to Microsoft

Show: