Collapse All
Parallels C API Reference Guide
PrlVmDevNet_GenerateMacAddr Function
PrlApi.h PHT_VIRTUAL_DEV_NET_ADAPTER

Generates a unique MAC address for a virtual network adapter on a virtual machine.

Syntax
PRL_RESULT PrlVmDevNet_GenerateMacAddr(
    PRL_HANDLE hVmDev
);
File
Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the network adapter.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

The function will generate a new MAC address and will automatically assign it to the adapter. The function does not return the address to the caller. To retrieve the address, use the PrlVmDevNet_GetMacAddress function.

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