Fonction DismGetImageInfo

Renvoie un tableau de structures DismImageInfo qui décrivent les images dans un fichier .wim ou .vhd.

Syntaxe

HRESULT WINAPI DismGetImageInfo(
  _In_  PCWSTR        ImageFilePath,
  _Out_ DismImageInfo **ImageInfo,
  _Out_ UINT          *Count
);

Paramètres

ImageFilePath [in]
Chemin d’accès relatif ou absolu à un fichier .wim ou .vhd.

ImageInfo [out]
Pointeur vers l’adresse d’un tableau de structures DismImageInfo .

Nombre [sortie]
Nombre de structures DismImageInfo retournées.

Valeur retournée

Renvoie S_OK en cas de réussite.

Notes

Le tableau de structures DismImageInfo est alloué par l’API DISM sur le tas.

Important

Vous devez appeler DismDelete, en passant le pointeur ImageInfo , pour libérer les ressources associées aux structures DismImageInfo .

Exemple

HRESULT hr = S_OK;
UINT* ImageInfoCount;
hr = DismGetImageInfo(L"C:\\Images\\Image1.vhd", &ImageInfo, &ImageInfoCount);

Spécifications

Condition requise Description
Plateforme hôte prise en charge pour les images .wim L’API DISM peut être utilisée sur n’importe quel système d’exploitation pris en charge par le Kit de déploiement et d’évaluation Windows (Windows ADK). Pour plus d’informations, consultez les Informations de référence technique Windows ADK.
Plateforme hôte prise en charge pour les images .vhd Windows 7, Windows Server 2008 R2, Windows 8, Windows Server 2012, Windows 8.1, Windows Server 2012 R2, Windows 10, Windows Server 2016
Plateformes d’images prises en charge Windows 7, Windows Server 2008 R2, Windows PE 3.0, Windows 8, Windows Server 2012, environnement de préinstallation Windows (Windows PE) 4.0, Windows 8.1, Windows Server 2012 R2, Windows 10, Windows Server 2016

Voir aussi

DismImageInfo

DismGetMountedImageInfo

DismMountedImageInfo

DismDelete