Search the Community
Showing results for tags 'shadowcopy component'.
Found 1 result
Hiho together. As a systemadministrator I have sometimes to get some data back which the customers deleted. Surely we have a backup but the possibilities of shadowcopy are very fine! First I tried to use programs like vssadmin and vshadow.exe but as a lover of AutoIt I don't like to call exxes from my scripts and searched the internet for a solution. When looking at the vss apis its really a pain in the... you know what i mean. :-) After some days of searching and trying I would liketo post the information I have and the point where I'am standing. My goal is for example to create a shadowcopy set. Add some drives to the set and then let it create the shadowcopys all at one... So here we go. First problem. You can't use dll calls for it. The only way I see is using the COMs given. There is one dllcall as a starting point for creating the IVssBackupComponents interface. With the help of this interface you can use many methods for managing shadowcopys. ( http://msdn.microsoft.com/en-us/library/aa381517(v=vs.85).aspx ) This is the code which gives me the "Doubly indirect pointer to the created IVssBackupComponents interface object.". Local $hVSS = DllOpen("c:\windows\system32\vssapi.dll") Local $aResult $aResult = DllCall($hVSS, "handle", "CreateVssBackupComponentsInternal", "ptr*", 0) ConsoleWrite("CreateVssBackupComponentsInternal: " & @error & " " & $aResult & @CRLF) Now I have a pointer pointing to a pointer to the needed component. And now I'am stuck. I don't know how to use this pointer. The next thing to do for example would be acall like this (in C#) backupComponents->InitializeForBackup(); ( http://social.msdn.microsoft.com/Forums/vstudio/en-US/2aab5683-d34d-4ff9-861d-174d30c84181/cant-access-vss-under-windows-81?forum=vcgeneral ) I tried using the OLE/COM Object Viewer but haven't found any usefull information. Does someone of you guys know how to use this pointer? many thanks in advance for a little hint! Sundance