virtualization - How can I use the COM object "VirtualPC.Application" to automate Windows Virtual PC from c# -
I've read that Windows Virtual PC comes with a Com Interface (VirtualPC.Application). I have read about how I used blogs from Powerhale, but how can I use it from C #? In particular, is there a Primary Interop Assembly (PIA) that I can use in # to get intellisense in Visual Studio?
-
Export the COM wrap as follows:
Tlbimp c: \ windows \ system32 \ vpc.exe /out:\vpc.dll
-
Add a reference to the generated DLL: vpc.dll
- Create an object and call it C #:
var vpc_obj = new vpc.VMVirtualPCClass ();
Comments
Post a Comment