internal static void SetPresenceComplete(IntPtr address)
        {
            SetPresenceCompleteCallback callback     = null;
            SetPresenceCallbackInfo     callbackInfo = null;

            if (Helper.TryGetAndRemoveCallback <SetPresenceCompleteCallback, SetPresenceCallbackInfoInternal, SetPresenceCallbackInfo>(address, out callback, out callbackInfo))
            {
                callback(callbackInfo);
            }
        }
        /// <summary>
        /// Sets your new presence with the data applied to a PresenceModificationHandle. The PresenceModificationHandle can be released safely after calling this function.
        /// <seealso cref="CreatePresenceModification" />
        /// <seealso cref="PresenceModification.Release" />
        /// </summary>
        /// <param name="options">Object containing a PresenceModificationHandle and associated user data</param>
        /// <param name="clientData">Optional pointer to help track this request, that is returned in the completion callback</param>
        /// <param name="completionDelegate">Pointer to a function that handles receiving the completion information</param>
        public void SetPresence(SetPresenceOptions options, object clientData, SetPresenceCompleteCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <SetPresenceOptionsInternal>(options);

            var completionDelegateInternal = new SetPresenceCompleteCallbackInternal(SetPresenceComplete);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Presence_SetPresence(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
        /// <summary>
        /// Sets your new presence with the data applied to a PresenceModificationHandle. The PresenceModificationHandle can be released safely after calling this function.
        /// <seealso cref="CreatePresenceModification" />
        /// <seealso cref="PresenceModification.Release" />
        /// </summary>
        /// <param name="options">Object containing a PresenceModificationHandle and associated user data</param>
        /// <param name="clientData">Optional pointer to help track this request, that is returned in the completion callback</param>
        /// <param name="completionDelegate">Pointer to a function that handles receiving the completion information</param>
        public void SetPresence(SetPresenceOptions options, object clientData, SetPresenceCompleteCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SetPresenceOptionsInternal, SetPresenceOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new SetPresenceCompleteCallbackInternal(SetPresenceCompleteCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Presence_SetPresence(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }