IopSetDeviceSecurityDescriptors
NTSTATUS __stdcall IopSetDeviceSecurityDescriptors(
PVOID *OriginalDeviceObject,
PVOID *DeviceObject,
VOID *SecurityDescriptor,
VOID *PoolType,
POOL_TYPE GenericMapping,
_GENERIC_MAPPING *a6){
NTSTATUS v7;
_DEVICE_OBJECT *v10;
NTSTATUS v11;
_DEVICE_OBJECT *AttachedDevice;
v7 = 0;
v10 = (_DEVICE_OBJECT *)DeviceObject;
ObfReferenceObject(DeviceObject);
do
{
v11 = IopSetDeviceSecurityDescriptor(v10, (UINT64 *)SecurityDescriptor, PoolType, GenericMapping, a6);
AttachedDevice = v10->AttachedDevice;
if( v10 == (_DEVICE_OBJECT *)OriginalDeviceObject )
v7 = v11;
if( AttachedDevice )
ObfReferenceObject(v10->AttachedDevice);
HalPutDmaAdapter((PADAPTER_OBJECT)v10);
v10 = AttachedDevice;
}
while( AttachedDevice );
return v7;
}Referenced by:
IopGetSetSecurityObject