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 );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
qr2_register_key | qr2_register_keyA | qr2_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.
Section Reference: Gamespy Query and Reporting 2 SDK