private void Init() { RzResult result = this._init(); if (result != RzResult.Success) { throw RazerApiException.Create(result, "Init"); } }
public void UnregisterEventNotification() { RzResult result = this._unregisterEventNotification(); if (result != RzResult.Success) { throw RazerApiException.Create(result, "UnregisterEventNotification"); } }
public void RegisterEventNotification(IntPtr windowHandle) { RzResult result = this._registerEventNotification(windowHandle); if (result != RzResult.Success) { throw RazerApiException.Create(result, "RegisterEventNotification"); } }
internal void DeleteEffect(Guid EffectId) { RzResult result = this._deleteEffect(EffectId); if (result != RzResult.Success) { throw RazerApiException.Create(result, "DeleteEffect"); } }
public ChromaSDK.DeviceInfoType QueryDevice(Guid DeviceId) { RzResult result = this._quertyDevice(DeviceId, out ChromaSDK.DeviceInfoType returnValue); if (result != RzResult.Success) { throw RazerApiException.Create(result, "QueryDevice"); } return(returnValue); }
private void UnInit() { if (!IsDisposed) { IsDisposed = true; RzResult result = this._unInit(); if (result != RzResult.Success) { throw RazerApiException.Create(result, "Init"); } } }
public Effect CreateHeadSetEffect(HeadSet.Effects.Static effect) { RzResult result = this._createHeadSetEffect2(HeadSet.Definitions.EffectType.Static, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateHeadSetEffect")); }
public Effect CreateChromaLinkEffect(ChromaLink.Effects.Static effect) { RzResult result = this._createChromaLinkEffect1(ChromaLink.Definitions.EffectType.CHROMA_STATIC, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateChromaLinkEffect")); }
public Effect CreateKeypadEffect(KeyPad.Effects.Wave effect) { RzResult result = this._createKeyPadEffect4(KeyPad.Definitions.EffectType.Wave, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeypadEffect")); }
public Effect CreateMousepadEffect(MousePad.Effects.Custom effect) { RzResult result = this._createMousePadEffect1(MousePad.Definitions.EffectType.Custom, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateMousepadEffect")); }
public Effect CreateMouseEffect(Mouse.Effects.Spectrumcycling effect) { RzResult result = this._createMouseEffect6(Mouse.Definitions.EffectType.Spectrumcycling, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateMouseEffect")); }
public Effect CreateKeyboardEffect(Keyboard.Effects.StarLight effect) { RzResult result = this._createKeyboardEffect4(Keyboard.Definitions.EffectType.Invalid, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeyboardEffect")); }
public Effect CreateKeyboardEffect(Keyboard.Effects.CustomKey effect) { RzResult result = this._createKeyboardEffect2(Keyboard.Definitions.EffectType.Custom_key, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeyboardEffect")); }
public Effect CreateEffect(Guid deviceId, ChromaSDK.Effects.Wave effect) { RzResult result = this._createEffect8(deviceId, ChromaSDK.Definitions.EffectType.Wave, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateEffect")); }