Loads a volume image from a Windows image (.wim) file.
HANDLE WIMLoadImage( HANDLE hWim, DWORD dwImageIndex );
[in] A handle to a .wim file returned by the WIMCreateFile function.
[in] Specifies the one-based index of the image to load. An image file may store multiple images.
If the function succeeds, then the return value is a handle to an object representing the volume image. If the function fails, then the return value is NULL. To obtain extended error information, call the GetLastError function.
You must call the WIMSetTemporaryPath function before calling the WIMLoadImage function so the image metadata can be extracted and processed from the temporary location.
Use the WIMCloseHandle function to unload the volume image.