Jump to content


Photo

GUIDE: WIMGAPI in VB .NET


  • Please log in to reply
7 replies to this topic

#1 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,015 posts
  • Location:Hull, UK.

Posted 27 May 2009 - 12:15 PM

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

[attachment=1923:WIMGAPI_1.0.7z]

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")


#2 Jatin Beniwal

Jatin Beniwal

    WinCert Friend

  • W7T Addon Maker
  • 285 posts
  • Location:India

Posted 27 May 2009 - 03:17 PM

Thanks for the guide.

#3 AMIRZ

AMIRZ

    Loyal Member and Friend

  • Contributors
  • 517 posts
  • Location:Jakarta
  • OS:Windows 7

Posted 13 June 2009 - 08:04 PM

Thanks :)

#4 wallace1

wallace1

    Member

  • Members
  • PipPip
  • 26 posts
  • OS:non-selected

Posted 14 June 2009 - 05:38 PM

Thanks a lot Legolash2O. :thumbsup_anim:

#5 wallace1

wallace1

    Member

  • Members
  • PipPip
  • 26 posts
  • OS:non-selected

Posted 18 August 2009 - 08:26 AM

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

...

#6 lhenry

lhenry

    Lurker

  • Members
  • Pip
  • 1 posts
  • OS:Windows 7 x64

Posted 31 August 2012 - 06:16 PM

Resurrecting an old thread, I know, but it would be wonderful if the attachment could be replaced / fixed -- not showing it as active or valid. Thanks!

#7 ERI

ERI

    Lurker

  • Members
  • Pip
  • 1 posts
  • OS:Windows 7 x64

Posted 10 September 2012 - 04:03 PM

I also would like to be able to download this attachment

#8 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,015 posts
  • Location:Hull, UK.

Posted 10 September 2012 - 06:18 PM

I no longer have the code anymore, i think i got rid of it years ago, it's available via google if you look in the right places. Sorry.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users