Miguel Hi, This code can come in handy but I was hoping to find that the zip file contained a bit of documentation of some kind, could you perhaps clarify something for me? How does this work exactly? Is there a reference guide on how to use this coredll and what functions it contains? [DllImport("coredll")] private extern static bool NLedGetDeviceInfo(Int32 nID, NLED_SETTINGS_INFO nsi); [DllImport("coredll")] private extern static bool NLedSetDevice(Int32 nID, NLED_SETTINGS_INFO nsi); Kind Regards, Miguel on 23 Jul 2010 3:06 AM
Hi,
This code can come in handy but I was hoping to find that the zip file contained a bit of documentation of some kind, could you perhaps clarify something for me?
How does this work exactly? Is there a reference guide on how to use this coredll and what functions it contains?
[DllImport("coredll")]
private extern static bool NLedGetDeviceInfo(Int32 nID, NLED_SETTINGS_INFO nsi);
private extern static bool NLedSetDevice(Int32 nID, NLED_SETTINGS_INFO nsi);
Kind Regards,
Miguel on 23 Jul 2010 3:06 AM
Goedendag Miguel,
If I remember correctly, it is this 'Vibrating your PocketPC device!' article that inspired / helped us putting together this C# code sample
Now with regards to your "how to use this coredll and what functions it contains" question, let me bring the following articles to your attention:
- [.NET Compact Framework] Creating a P/Invoke Library- [C# Programmer's Reference] Platform Invoke Tutorial- [Visual Studio Technical Articles] Using P/Invoke to Call Unmanaged APIs from Your Managed Classes- P/Invoke.net (see the Smart Device Functions section)- [Platform Builder for Microsoft Windows CE 5.0] coredll Module
I do hope this helps.Tot ziens!
Jacques
--
Ref: How to programmatically make the Ikon vibrate? / Miguel's comment
Hi Jacques,
Thanks for those links, I have a nagging feeling I might have to use them sooner rather than later ;)
Miguel