1 out of 2 rated this helpful - Rate this topic

INetFwPolicy2::CurrentProfileTypes property

Retrieves the currently active firewall profile.

This property is read-only.

Syntax


HRESULT get_CurrentProfileTypes(
  [out]  long *profileTypesBitmask,
  [out]  long profileTypesBitmask
);

Property value

The currently active profile.

Error codes

If the method succeeds, the return value is S_OK.

If the method fails, the return value is one of the following error codes.

NameMeaning
E_ACCESSDENIED

The operation was aborted due to permissions issues.

E_POINTER

The method failed because a pointer was not valid.

Remarks

Multiple profiles can be returned in the profiles bitmask.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Netfw.h

DLL

FirewallAPI.dll

See also

INetFwPolicy2
NET_FW_PROFILE_TYPE2

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.