Esempio n. 1
0
        IntPtr FreeBypassMessage(BypassMessage bpm)
        {
            // Check it made it through
            System.Diagnostics.Debug.Assert(bpm.bypassed);

            // Remove from map
            _activeBypassMessages.Remove(bpm.id);

            // Return result
            return(bpm.retVal);
        }
Esempio n. 2
0
        BypassMessage AllocBypassMessage(uint message, IntPtr wParam, IntPtr lParam)
        {
            // Grab an id
            _nextBypassMessageID++;

            // Allocate info
            var bpm = new BypassMessage()
            {
                id      = _nextBypassMessageID,
                message = message,
                wParam  = wParam,
                lParam  = lParam,
            };

            // Store it
            _activeBypassMessages.Add(bpm.id, bpm);
            return(bpm);
        }