Collapse All
Parallels Desktop® 10 for Mac — C API Reference Guide
PrlApi_PutUserData Function
System Functions

Allows to put arbitrary data to the cloud user storage.

Syntax
PRL_HANDLE PrlApi_PutUserData(
    PRL_CONST_STR account, 
    PRL_CONST_STR accountPass, 
    PRL_PROXY_CLIENT_INFO_PTR cliInfo, 
    PRL_CONST_STR dataKey, 
    PRL_INT32 dataVersion, 
    PRL_VOID_PTR data, 
    PRL_UINT32 dataSize, 
    PRL_UINT32 timeout, 
    PRL_EVENT_HANDLER_PTR handler, 
    PRL_VOID_PTR userData, 
    PRL_UINT32 flags
);
File

PrlApiManager.h

Parameters

account
Parallels account ID.
accountPass
Parallels account password.
cliInfo
Additional client information (e.g. alternative manager URL). Can be null for default settings.
dataKey
A key identifying the data in the user storage.
dataVersion
Version of data (aka revision).
data
Pointer to the buffer containing the data.
dataSize
Size of the data.
timeout
Timeout in milliseconds. The authentication operation will stop once this limit is reached.
handler
Optional. A pointer to a user callback function (event handler) that will be called on operation completion.
userData
Optional. A pointer to a user data that will be passed to the optional callback function.
flags
Optional. Reserved for future needs.
Returns

A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.

Possible return codes: PRL_ERR_SUCCESS - operation completed successfully PRL_ERR_XMLRPC_INVALID_CREDENTIALS - wrong user credentials were provided PRL_ERR_XMLRPC_LIMITS_EXHAUSTED - remote server is busy for now - analogue of EAGAIN PRL_ERR_XMLRPC_INTERNAL_ERROR - error occurred during XML RPC interoperation PRL_ERR_FAILURE - operation failed on remote side

Links
Copyright © 1999-2015 Parallels IP Holdings GmbH and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!