Click here to Skip to main content
15,881,173 members
Articles / Mobile Apps / Windows Mobile

Windows Mobile Interprocess Communication with Message Queues in .NET

Rate me:
Please Sign up or sign in to vote.
4.81/5 (17 votes)
15 Nov 2008CPOL11 min read 83.4K   1.1K   41  
Wrapper demonstrating the use of native message queues within managed code.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace J2i.Net.NamedObjects
{

    [StructLayout(LayoutKind.Sequential)]
    public struct  MessageQueueInfo
    {
        public int dwSize;
        public int dwFlags;
        public int dwMaxMessages;
        public int cbMaxMessages;
        public int dwCurrentMessages;
        public int dwMaxQueueMessages;
        public Int16 NumReaders;
        public Int16 NumWriters;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I attended Southern Polytechnic State University and earned a Bachelors of Science in Computer Science and later returned to earn a Masters of Science in Software Engineering. I've largely developed solutions that are based on a mix of Microsoft technologies with open source technologies mixed in. I've got an interest in astronomy and you'll see that interest overflow into some of my code project articles from time to time.



Twitter:@j2inet

Instagram: j2inet


Comments and Discussions