TwclWiFiInformationElementParser.ExtractInformationElements(TwclWiFiInformationElementId,TwclWiFiIeRawData,TwclWiFiInformationElements) Method
Extracts information elements with specified ID from WiFi frame IE raw data.
public function ExtractInformationElements(const Id: TwclWiFiInformationElementId; const Raw: TwclWiFiIeRawData; out Elements: TwclWiFiInformationElements): Integer; overload;
Parameters
- Id
- Type: TwclWiFiInformationElementId
The required Information Element ID.
- Raw
- Type: TwclWiFiIeRawData
The WiFi frame IE raw bytes array.
- Elements
- Type: TwclWiFiInformationElements
If the method completed with success and at least one IE was found on output contains the array of IEs. If the method was success but no one IE found or if the method failed the output value is
nil.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
As Windows may combine multiple Information Elements received in different Beacon advertisement in a single raw data stream there can be more than one IE with given ID.