I still can't figure out how to read the value of a variable.
When doing a $result = dir
then I don't know how to read this value and get it into PureBasic.
Will try but if someone has a little hint for me...
I just tried to call some basic commands within the powershell and don't get any output of them. When i try to call a simple dir command. How can i get the output of it? I thought a 'Debug oActiveXPosh\GetStringProperty("Output")' would do but nothing appears. Also when i do a '$result = dir ...
when I run the script you posted I get an error when getting the handle with pLoader\LoadService. I've tried it under Windows 8.1 and Windows 10. I haven't found any difference when looking at MSDN between Windows 7 and 8.1 concerning VDS.
It seems i have found the problem. I made a mistake when allocating memory in the first lines of the program. With the help of some lines of code i had found the heap problem i had created. I have found a link to it somewhere in the internet here is the url to it:
this code works for Windows Vista and greater. When trying to use the code under Windows XP or Windows Server2003 the CreateVssBackupComponentsInternal call won't be found. What I found on the internet is to download the microsoft vss sdk7.2 and use the given libs/includes for windows ...
some weeks ago I wrote a script in AutoIt which does also shadow copys and one of the guys there did a change to let the script also run under 64Bit. The change was in the definition of AddToSnapshotSet.