ObReleaseObjectSecurity function

The ObReleaseObjectSecurity routine is the reciprocal to ObGetObjectSecurity.

Syntax

void ObReleaseObjectSecurity(
  PSECURITY_DESCRIPTOR SecurityDescriptor,
  BOOLEAN              MemoryAllocated
);

Parameters

SecurityDescriptor

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

MemoryAllocated

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

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<=APC_LEVEL"
DDI compliance rules IrqlApcLte, HwStorPortProhibitedDDIs

See Also

ObGetObjectSecurity

SECURITY_DESCRIPTOR