qr2_register_key

GameSpy SDK

qr2_register_key

Register a key with the qr2 sdk.  This tells the sdk that the application will report values for this key.

void qr2_register_key(
int keyid,
const gsi_char * key );
RoutineRequired HeaderDistribution
qr2_register_key<qr2.h>SDKZIP

Parameters

keyid
[in] Id of the key.  See remarks.
key
[in] Name of the key.

Remarks

The qr2_register_key function tell the qr2 sdk that it should report values for the specified key. Key IDs 0 through NUM_RESERVED_KEYS are reserved for common key names.  Keys upward to MAX_REGISTERED_KEYS are available for custom use.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
qr2_register_keyqr2_register_keyAqr2_register_keyW

qr2_register_keyW and qr2_register_keyA are UNICODE and ANSI mapped versions of qr2_register_key. The arguments of qr2_register_keyA are ANSI strings; those of qr2_register_keyW are wide-character strings.