_AirpcapKeysCollection Struct Reference
[AirPcap definitions and data structures]

This structure is used to store a collection of WEP keys. Note that the definition of the structure doesn't contain any key, so be careful to allocate a buffer with the size of the key, like in the following example:. More...

#include <airpcap.h>


Data Fields

UINT nKeys
 Number of keys in the collection.
AirpcapKey Keys [0]
 Array of nKeys keys.


Detailed Description

This structure is used to store a collection of WEP keys. Note that the definition of the structure doesn't contain any key, so be careful to allocate a buffer with the size of the key, like in the following example:.

    PAirpcapKeysCollection KeysCollection;
    UINT KeysCollectionSize;
    
    KeysCollectionSize = sizeof(AirpcapKeysCollection) + NumKeys * sizeof(AirpcapKey);
    
    KeysCollection = (PAirpcapKeysCollection)malloc(KeysCollectionSize);
    if(!KeysCollection)
    {
        // Error
    }


Field Documentation

UINT _AirpcapKeysCollection::nKeys
 

Number of keys in the collection.

AirpcapKey _AirpcapKeysCollection::Keys[0]
 

Array of nKeys keys.


AirPcap documentation. Copyright (c) 2006 CACE Technologies. All rights reserved.