DrvDbValidateDeviceIdName

NTSTATUS __stdcall DrvDbValidateDeviceIdName(PWCHAR DeviceId){
  const wchar_t *v1; 
  WORD *v2; 
  int v3; 
  WORD *v4; 
  _SIZE_T pcchLength; 

  v2 = (WORD *)v1;
  v3 = RtlUnalignedStringCchLengthW(v1, 200, &pcchLength);
  if( v3 < 0 )
    return -1073741773;
  v4 = wcschr(v2, 92);
  if( v4 )
  {
    if( v4 == v2 || !v4[1] || wcschr(v4 + 1, 92) )
      return -1073741773;
  }
  return v3;
}

Referenced by:

DrvDbDispatchDeviceId