IoSetDeviceInterfaceState
NTSTATUS __stdcall IoSetDeviceInterfaceState(_UNICODE_STRING *SymbolicLinkName, UINT8 Enable){
_ETHREAD *CurrentThread;
int v5;
CurrentThread = (_ETHREAD *)KeGetCurrentThread();
--*((_WORD *)CurrentThread + 242);
ExAcquireResourceExclusiveLite(&PnpRegistryDeviceResource, 1u);
v5 = IopProcessSetInterfaceState(SymbolicLinkName, Enable, 1);
ExReleaseResourceLite(&PnpRegistryDeviceResource);
KeLeaveCriticalRegionThread((__int64)KeGetCurrentThread());
if( v5 < 0 )
return Enable != 0 ? v5 : 0;
return v5;
}Referenced by:
PiSwDeviceInterfaceSetState
PiSwDeviceInterfacesUpdateState
PnpDisableDeviceInterfaces