CmGetDeviceInterfacePathFormat
NTSTATUS __stdcall CmGetDeviceInterfacePathFormat(WCHAR *DeviceInterfaceName, UINT8 *NtPathFormat){
_BYTE *v2;
_BYTE *v3;
int inited;
_UNICODE_STRING DestinationString;
v3 = v2;
DestinationString = 0i64;
inited = CmValidateDeviceInterfaceName(DeviceInterfaceName);
if( inited >= 0 )
{
inited = RtlInitUnicodeStringEx(&DestinationString, (WCHAR *)NtPathFormat);
if( inited < 0 )
return -1073741773;
if( (unsigned __int8)RtlPrefixUnicodeString(&stru_140001F68 + 3, &DestinationString, 0) )
{
*v3 = 1;
return inited;
}
if( !(unsigned __int8)RtlPrefixUnicodeString(&stru_140001F68 + 2, &DestinationString, 0) )
return -1073741773;
*v3 = 0;
}
return inited;
}Referenced by:
IoGetDeviceInterfaceAlias