Collapse All
Parallels Virtualization SDK
PrlVmDevNet_GetFirewallDefaultPolicy Function
PHT_VIRTUAL_DEV_NET_ADAPTER

Gets an adapter firewall default policy.

Syntax
PRL_RESULT PrlVmDevNet_GetFirewallDefaultPolicy(
    PRL_HANDLE hVmDev, 
    PRL_FIREWALL_DIRECTION nDirection, 
    PRL_FIREWALL_POLICY_PTR pnPolicy
);
File

PrlApiDeprecated.h

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
pnPolicy
[out] A pointer to a buffer that receives the adapter firewall default policy.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

Policy values are defined in the PRL_FIREWALL_POLICY enumeration.

Links
Copyright © 1999-2017 Parallels International GmbH. All rights reserved.