Returns the number of volume images stored in an image file.
BOOL WINAPI WIMGetAttributes( HANDLE hWim, PWIM_INFO pWimInfo, DWORD cbWimInfo );
[in] The handle to a .wim file returned by WIMCreateFile.
[out] A pointer to a WIM_INFO structure that is returned with information about the .wim file.
[in] A DWORD value indicating the size of the pWimInfo buffer in which it passes.
If the function succeeds, then the return value is nonzero.
If the function fails, then the return value is zero. To obtain extended error information, call GetLastError.