Example #1
0
        private static ACKDATA BuildAckData(IntPtr pModuleName, AckType type, bool success, IntPtr contactHandle, IntPtr processHandle, IntPtr lParam)
        {
            ACKDATA ack = new ACKDATA(pModuleName, (int)type, success ? (int)AckResult.Success : (int)AckResult.Failure);
            ack.ContactHandle = contactHandle;
            ack.ProcessHandle = processHandle;
            ack.LParam = lParam;

            return ack;
        }
Example #2
0
 private static unsafe int BroadcastAck(ACKDATA* ack)
 {
     return MirandaContext.Current.CallServiceUnsafe(MS_PROTO_BROADCASTACK, null, ack);
 }