This topic has not yet been rated - Rate this topic

ObjectPreCallback routine

The ObjectPreCallback routine is called by the operating system when a process or thread handle operation occurs.

Syntax

OB_PREOP_CALLBACK_STATUS ObjectPreCallback(
  __in  PVOID RegistrationContext,
  __in  POB_PRE_OPERATION_INFORMATION OperationInformation
);

Parameters

RegistrationContext [in]

The context that the driver specifies as the CallBackRegistration->RegistrationContext parameter of the ObRegisterCallbacks routine. The meaning of this value is driver-defined.

OperationInformation [in]

A pointer to an OB_PRE_OPERATION_INFORMATION structure that specifies the parameters of the handle operation.

Return value

ObjectPreCallback returns an OB_PREOP_CALLBACK_STATUS value. Drivers must return OB_PREOP_SUCCESS.

Remarks

Use the ObRegisterCallbacks routine to register an ObjectPreCallback routine, and use the ObUnRegisterCallbacks routine to unregister the routine.

Requirements

Version

Available in Windows Server 2008 and later versions of the Windows operating system.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

See also

OB_PRE_OPERATION_INFORMATION
ObjectPostCallback
ObRegisterCallbacks
ObUnRegisterCallbacks

 

 

Send comments about this topic to Microsoft

Build date: 4/2/2012

Did you find this helpful?
(1500 characters remaining)