ObReleaseObjectSecurity - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID ObReleaseObjectSecurity(
  [in] PSECURITY_DESCRIPTOR SecurityDescriptor,
  [in] BOOLEAN              MemoryAllocated
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-obreleaseobjectsecurity)

ObReleaseObjectSecurity function

Description

The ObReleaseObjectSecurity routine is the reciprocal to ObGetObjectSecurity.

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.

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.

See also

ObGetObjectSecurity

SECURITY_DESCRIPTOR