The FwpmSubLayerGetByKey0 function retrieves a sublayer by its key.
DWORD FwpmSubLayerGetByKey0( HANDLE engineHandle, const GUID *key, FWPM_SUBLAYER0 **subLayer );
Handle for an open session to the filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.
Type: const GUID*
Unique identifier of the sublayer. This is the same GUID that was specified when the application called FwpmSubLayerAdd0.
The sublayer information.
||The sublayer was retrieved successfully.|
||A Windows Filtering Platform (WFP) specific error. See WFP Error Codes for details.|
||Failure to communicate with the remote or local firewall engine.|
The caller must free the returned object by a call to FwpmFreeMemory0.
FwpmSubLayerGetByKey0 is a specific implementation of FwpmSubLayerGetByKey. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|