Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #2133

VPC's GetVirtualMachineFiles method

From Tim Rude <timrude.nospam@nospam.hotmail.com>
Newsgroups microsoft.public.vb.general.discussion;, comp.lang.basic.visual.misc
Subject VPC's GetVirtualMachineFiles method
Date 2014-06-09 00:55 -0500
Organization A noiseless patient Spider
Message-ID <ln3i99$jhb$1@dont-email.me> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


Windows 7 with VPC installed (ala XP Mode) and VB6:

Using the info from the docs here:

http://msdn.microsoft.com/en-us/library/dd796730(v=vs.85).aspx

I want to list the registered virtual machine files on my system but I 
can't figure out how to call this API in VB6 code. I have added the 
Reference to 'VirtualPC' to my project and I'm able to get a handle to 
the VPC object like so:

Dim vpc As VMVirtualPC
Set vpc = CreateObject("VirtualPC.Application")

My next step would be to do something with the 
vpc.GetVirtualMachineFiles method but I'm getting hung up on what all I 
need to define to use as the in/out parameters and how to actually 
formulate the call to the method. Objects, arrays, variants, ???

Here's an excerpt from the docs cited above:

Syntax C++

HRESULT GetVirtualMachineFiles(
   [in]           VARIANT inAdditionalSearchPaths,
   [in]           VARIANT_BOOL inExcludedRegisteredVMs,
   [out, retval]  VARIANT *outVirtualMachineFileList
);

Parameters
inAdditionalSearchPaths [in]
These paths will be searched along with the paths set in the 
IVMVirtualPC::SearchPaths and IVMVirtualPC::DefaultVMConfigurationPath 
properties.

inExcludedRegisteredVMs [in]
TRUE if registered virtual machines should be excluded from the array 
return in the outVirtualMachineFileList parameter and FALSE otherwise.

outVirtualMachineFileList [out, retval]
An array of path strings for the virtual machine configuration files 
found in the specified search paths.

Any help?

Back to comp.lang.basic.visual.misc | Previous | Next | Find similar | Unroll thread


Thread

VPC's GetVirtualMachineFiles method Tim Rude <timrude.nospam@nospam.hotmail.com> - 2014-06-09 00:55 -0500

csiph-web