Skip to content

Latest commit

 

History

History
208 lines (177 loc) · 3.76 KB

nf-netfw-inetfwrules-item.md

File metadata and controls

208 lines (177 loc) · 3.76 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:netfw.INetFwRules.Item
INetFwRules::Item (netfw.h)
The Item method returns the specified rule if it is in the collection.
INetFwRules interface [ICS/ICF]
Item method
INetFwRules.Item
INetFwRules::Item
Item
Item method [ICS/ICF]
Item method [ICS/ICF]
INetFwRules interface
ics.inetfwrules_item
netfw/INetFwRules::Item
ics\inetfwrules_item.htm
ics
91c5a93b-7408-4870-a2c0-167648d849cd
12/05/2018
INetFwRules interface [ICS/ICF],Item method, INetFwRules.Item, INetFwRules::Item, Item, Item method [ICS/ICF], Item method [ICS/ICF],INetFwRules interface, ics.inetfwrules_item, netfw/INetFwRules::Item
netfw.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
FirewallAPI.dll
Windows
19H1
INetFwRules::Item
netfw/INetFwRules::Item
c++
APIRef
kbSyntax
COM
FirewallAPI.dll
INetFwRules.Item

INetFwRules::Item

-description

The Item method returns the specified rule if it is in the collection.

-parameters

-param name [in]

Name of the rule to retrieve.

-param rule [out]

Reference to the returned INetFwRule object.

-returns

C++

If the method succeeds the return value is S_OK.

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

Return code Description
E_ACCESSDENIED
The operation was aborted due to permissions issues.
E_INVALIDARG
The method failed due to an invalid parameter.
E_OUTOFMEMORY
The method was unable to allocate required memory.
E_POINTER
The method failed due to an invalid pointer.
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
The requested item does not exist.
 

VB

If the method succeeds the return value is S_OK.

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

Return code Description
E_ACCESSDENIED
The operation was aborted due to permissions issues.
E_INVALIDARG
The method failed due to an invalid parameter.
E_OUTOFMEMORY
The method was unable to allocate required memory.
E_POINTER
The method failed due to an invalid pointer.
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
The requested item does not exist.

-see-also

INetFwRule

INetFwRules