Exported APIs.
More...
Go to the source code of this file.
|
RZRESULT | Init (void) |
|
RZRESULT | UnInit (void) |
|
RZRESULT | CreateEffect (RZDEVICEID DeviceId, ChromaSDK::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | CreateKeyboardEffect (ChromaSDK::Keyboard::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | CreateMouseEffect (ChromaSDK::Mouse::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | CreateHeadsetEffect (ChromaSDK::Headset::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | CreateMousepadEffect (ChromaSDK::Mousepad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | CreateKeypadEffect (ChromaSDK::Keypad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID *pEffectId) |
|
RZRESULT | DeleteEffect (RZEFFECTID EffectId) |
|
RZRESULT | SetEffect (RZEFFECTID EffectId) |
|
RZRESULT | RegisterEventNotification (HWND hWnd) |
|
RZRESULT | UnregisterEventNotification () |
|
RZRESULT | QueryDevice (RZDEVICEID DeviceId, DEVICE_INFO_TYPE &DeviceInfo) |
|
Create generic effect for specific or all devices.
- Parameters
-
[in] | DeviceId | Device Id defined in RzChromaSDKDefines.h |
[in] | Effect | Standard effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect. |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_DEVICE_NOT_AVAILABLE: Device not supported.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Create headset effect.
- Parameters
-
[in] | Effect | Headset effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect defined in RzChromaSDKTypes.h |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Create keyboard effect.
- Parameters
-
[in] | Effect | Keyboard effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect. |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Create keypad effect.
- Parameters
-
[in] | Effect | Keypad effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect defined in RzChromaSDKTypes.h |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Create mouse effect.
- Parameters
-
[in] | Effect | Mouse effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect. |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Create mousepad effect.
- Parameters
-
[in] | Effect | Mousemat effect type. |
[in] | pParam | Pointer to a parameter type specified by Effect defined in RzChromaSDKTypes.h |
[in,out] | pEffectId | Valid effect Id if successful. Set it to NULL if not required. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
RZRESULT_NOT_SUPPORTED: Effect not supported for this device.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Delete effect
- Parameters
-
[in] | EffectId | Id of the effect that needs to be deleted. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_NOT_FOUND: Effect Id not found.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Initialize Chroma SDK.
- Returns
- RZRESULT_SERVICE_NOT_ACTIVE: Chroma SDK Service not running.
-
RZRESULT_ALREADY_INITIALIZED: Chroma SDK has already been initialized.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
Query for device information.
- Parameters
-
[in] | DeviceId | Device id found in RzChromaSDKDefines.h |
[out] | DeviceInfo | Contains device information specified by DeviceId. |
- Returns
- RZRESULT_DEVICE_NOT_AVAILABLE: Device not supported.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
RZRESULT RegisterEventNotification |
( |
HWND |
hWnd | ) |
|
Register for event notification.
- Parameters
-
[in] | hWnd | Application window handle. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_ALREADY_INITIALIZED: Invalid Windows handle.
-
RZRESULT_INVALID_PARAMETER: Invalid parameter.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
Set effect.
- Parameters
-
[in] | EffectId | Id of the effect that needs to be set. |
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. Did you forgot to call Init()?
-
RZRESULT_ACCESS_DENIED: No permision to access device.
-
RZRESULT_NOT_FOUND: Effect Id not found.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
UnInitialize Chroma SDK.
- Returns
- RZRESULT_NOT_VALID_STATE: Chroma SDK not in a valid state. For every Init() call there should be a corresponding UnInit().
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).
- Examples:
- ChromaSDKImpl.cpp.
RZRESULT UnregisterEventNotification |
( |
| ) |
|
Un-register for event notification.
- Returns
- RZRESULT_NOT_VALID_STATE: Internal state is not valid. There was no event registered.
-
For other error codes, please refer to Windows System Error Codes from Windows SDK (WinError.h).