all groups > dotnet compact framework > december 2006 >
You're in the

dotnet compact framework

group:

WinMobile: Inter Process Communication


Re: WinMobile: Inter Process Communication Peter Foot [MVP]
12/24/2006 12:35:51 PM
dotnet compact framework:
There most definitely is a coredll.dll (it's present on all Windows CE
devices), but the file is normally hidden. There is a rundown of IPC methods
here:-
http://www.danielmoth.com/Blog/2004/09/ipc-with-cf-on-ce-part-1.html
http://www.danielmoth.com/Blog/2004/09/ipc-with-cf-on-ce-part-2.html

To use a named mutex P/Invoke CreateMutex:-

[DllImport("coredll.dll")]
private static extern IntPtr CreateMutex(
int lpMutexAttributes,
bool bInitialOwner,
string lpName);

You can then pass the resulting handle to an instance of the Mutex class in
..NETCF by setting the Handle property.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com


[quoted text, click to view]
WinMobile: Inter Process Communication Harry Hirsch
12/24/2006 12:49:07 PM
Hello,

I just started to program for Windows Mobile 5.0 using VisualStudio 2005 and
C#. I'm looking for "inter process communication". In C++/MFC I use named
CMutex and named CEvent objects, and I sent messages to other processes
using FindWindow() and PostMessage().
All these things are not available in the Compact Framework 2.0. I tried
[DllImport] but there are no "user32.dll" or "coredll.dll" on the machine...
Is there anybody to give me a tip? Thanks!

Harry Hirsch

AddThis Social Bookmark Button