CmGetDeviceContainerMappedPropertyLocales

NTSTATUS __stdcall CmGetDeviceContainerMappedPropertyLocales(
        _DEVPROPKEY *PropertyKey,
        WCHAR *Buffer,
        UINT64 BufferLength,
        UINT64 *RequiredLength){
  DEVPROPKEY **v4; 
  NTSTATUS v5; 
  unsigned int v6; 
  DEVPROPKEY *v7; 
  UINT64 v8; 
  _WORD *v10; 
  int v11; 
  _DWORD *v12; 

  v4 = &off_140007960;
  v5 = -1073741802;
  v6 = 0;
  *v12 = 0;
  while( 1 )
  {
    v7 = *v4;
    if( *((_DWORD *)RequiredLength + 4) == (*v4)->pid )
    {
      v8 = *RequiredLength - *(_QWORD *)&v7->fmtid.Data1;
      if( *RequiredLength == *(_QWORD *)&v7->fmtid.Data1 )
        v8 = RequiredLength[1] - *(_QWORD *)v7->fmtid.Data4;
      if( !v8 )
        break;
    }
    ++v6;
    v4 += 2;
    if( v6 >= 4 )
      return v5;
  }
  *v12 = 1;
  if( !v11 )
    return -1073741789;
  v5 = 0;
  *v10 = 0;
  return v5;
}

Referenced by:

PnpDispatchDeviceContainer