GetRegistryChannelNumber()
GetRegistryInfrastructureMode()
700 Series Monochrome Mobile Computer User's Manual
This routine allows reading the specific 802.11b channel for a specific
configuration. Note that the channel number is read from the registry and
applies only to the Peer-to-Peer mode of operation. Channel number for
Access Point (AP) infrastructure mode is set in the AP configuration menus
and does not apply here.
Syntax
int GetRegistryChannelNumber ( int ProfileNumber, DWORD*
ChannelNumber );
Parameters
ProfileNumber
[in] This is an integer value that specifies which
ChannelNumber
[out] Pointer to the DWORD receiving the channel
Returns
This returns a NULL if successful or a non-zero value if an error occurs.
This routine gets the 802.11b radio infrastructure mode from the registry
for the configuration number specified.
Syntax
int GetRegistryInfrastructureMode( int ProfileNumber,
DWORD* InfrastructureMode );
Parameters
ProfileNumber
[in] This is an integer value that specifies which
InfrastructureMode [out] Infrastructure setting return value. Valid values
Returns
This returns a NULL if successful or a non-zero value if an error occurs.
Chapter 7
configuration number the user wants to read.
Valid values are CONFIG_01, CONFIG_02,
CONFIG_03, and CURRENT_CONFIG.
CURRENT_CONFIG returns the currently
active channel number stored in the registry.
number. Valid North American channel numbers:
1 through 11.
configuration number the user wants to read.
Valid values are CONFIG_01, CONFIG_02,
CONFIG_03, and CURRENT_CONFIG.
CURRENT_CONFIG gets the value of the
currently active configuration.
are INFRASTRUCTURE_AP and
INFRASTRUCTURE_PP.
—
Programming
283