Jump to content

GUIDE: WIMGAPI in VB .NET


Recommended Posts

Here is something for those who want to work with WIMGAPI and VB .NET. Just add the module below to your project and use the examples below that to do your tasks. I will be updating it with more functions. If you know any which have not been added yet please post a working example :D

WIMGAPI Module v1.0

The places where you see the number 1, that is the image index.

Mount Image

If CWIM_MountImage(1,"C:\Wimfile.wim","C:\MountPath") = true then
'DO THIS
else
'MSGBOX("There was an error mounting this image")
end if

UnMount Image

If CWIM_UnMountImage(1,"C:\Wimfile.wim","C:\MountPath",True) = true then
'DO THIS
else
'MSGBOX("There was an error unmounting this image")
end if

Delete Image

CWIM_DeleteImage("C:\WimFile.wim",1)

GetWIMInfo

Dim WImInfo = CWIM_GetWimInfo("C:\Wimfile.wim")

Capture Image

CWIM_CaptureImage("C:\FolderToCapture","C:\NewWim.wim",WIM_COMPRESS_LZX,"C:\Temp")

Export Image

CWIM_ExportImage("C:\OriginalWim.wim","C:\ExportedWim.wim",1,"C:\Temp")

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

Hi,

I use the capture function in my project but i'd like to edit the properties "NAME" and "DESCRIPTION" with 2 textBox on my Form.

My question is : Must I use the "SetImageInformation" function to do that ?

I have read all of this document and I can't really find my way :

My linkhttp://msdn.microsoft.com/en-us/library/dd834960.aspxhttp://msdn.microsoft.com/en-us/library/dd834960.aspx

...

Link to comment
Share on other sites

  • 3 years later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...