Contents
Getting Started 5
Overview ......................................................................................................................................................5
System Requirements ...................................................................................................................................6
Mac OS X Clients..............................................................................................................................6
Windows Clients ...............................................................................................................................6
Linux Clients.....................................................................................................................................7
Common Network Requirements......................................................................................................7
Parallels C API Concepts 8
Compiling Client Applications.....................................................................................................................8
Mac OS X..........................................................................................................................................8
Windows..........................................................................................................................................18
Linux ...............................................................................................................................................19
Handles.......................................................................................................................................................20
Synchronous Functions...............................................................................................................................21
Asynchronous Functions.............................................................................................................................22
Strings as Return Values.............................................................................................................................26
Error Handling............................................................................................................................................28
Parallels C API by Example 30
Obtaining Server Handle and Logging In...................................................................................................31
Host Operations..........................................................................................................................................35
Retrieving Host Configuration Information ....................................................................................36
Managing Parallels Service Preferences..........................................................................................39
Searching for Parallels Servers........................................................................................................42
Managing Parallels Service Users...................................................................................................45
Managing Files In The Host OS......................................................................................................50
Managing Licenses..........................................................................................................................53
Obtaining a Problem Report............................................................................................................56
Virtual Machine Operations........................................................................................................................58
Obtaining the Virtual Machines List ...............................................................................................59
Searching for Virtual Machine by Name.........................................................................................62
Obtaining Virtual Machine Configuration Information...................................................................64
Determining Virtual Machine State.................................................................................................66
Starting, Stopping, Resetting a Virtual Machine.............................................................................69
Suspending and Pausing a Virtual Machine....................................................................................70
Creating a New Virtual Machine.....................................................................................................72
Searching for Virtual Machines.......................................................................................................75
Adding an Existing Virtual Machine...............................................................................................79
Cloning a Virtual Machine..............................................................................................................82
Deleting a Virtual Machine .............................................................................................................84
Modifying Virtual Machine Configuration......................................................................................85
Managing User Access Rights.........................................................................................................99
Working with Virtual Machine Templates....................................................................................101
Events .......................................................................................................................................................110
Receiving and Handling Events.....................................................................................................111
Responding to Parallels Service Questions ...................................................................................114
Performance Statistics...............................................................................................................................121
Obtaining Performance Report......................................................................................................122
Performance Monitoring................................................................................................................125