ObReleaseObjectSecurity routine

The ObReleaseObjectSecurity routine is the reciprocal to ObGetObjectSecurity.

Syntax


VOID ObReleaseObjectSecurity(
  _In_  PSECURITY_DESCRIPTOR SecurityDescriptor,
  _In_  BOOLEAN MemoryAllocated
);

Parameters

SecurityDescriptor [in]

Pointer to the buffered SECURITY_DESCRIPTOR to be released. The caller obtained this parameter from ObGetObjectSecurity

MemoryAllocated [in]

Specifies the value also obtained from ObGetObjectSecurity.

Return value

None

Remarks

After a successful call to ObGetObjectSecurity, a driver must call ObReleaseObjectSecurity eventually.

ObReleaseObjectSecurity releases any resources that were allocated by ObGetObjectSecurity. It also decrements the reference count on the given security descriptor.

Requirements

Version

Available starting with Windows 2000.

Header

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

Library

Ntoskrnl.lib

IRQL

<=APC_LEVEL

DDI compliance rules

IrqlApcLte, HwStorPortProhibitedDDIs

See also

SECURITY_DESCRIPTOR
ObGetObjectSecurity

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft