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

Returns the firewall rule entries list.

Syntax
PRL_RESULT PrlVmDevNet_GetFirewallRuleList(
    PRL_HANDLE hVmDev, 
    PRL_FIREWALL_DIRECTION nDirection, 
    PRL_HANDLE_PTR phRuleList
);
File
Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the virtual network adapter.
nDirection
Direction of a firewall - to/from the virtual network adapter
phRuleList
[out] A pointer to a variable that receives the new handle of PHT_HANDLES_LIST type.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_OUT_OF_MEMORY - not enough memory to create the list or a port forward handle object.

PRL_ERR_SUCCESS - function completed successfully.

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