P
Paul Sneddon
Hi,
I'm using VS.NET 2005 RC to create Windows Mobile apps. I'm trying to call
the following shell function which is new on Windows Mobile 5.
SNDGETSND
http://msdn.microsoft.com/library/d...en-us/mobilesdk5/html/wce51lrfSndSetSound.asp
I basically just need to be able to get the device ringer mode (e.g. On Off
Vibrate) this seems the way to do it in WM5.
I can set up the declaration (dll import, structs, pointers etc) but when I
call it I get a "Not Supported" exception. I tried setting various unmanged
directives on the structs and parameters which stops the exception but the
call doesnt have a return value and does not seem to work, but I dont really
know what I'm doing when it comes to calling unmanged code.
Could someone proide we will a basic working example for declaring and
calling this function and I should be able to work out everything else from
there. I got that frustrated that I deleted my example code..
Paul
I'm using VS.NET 2005 RC to create Windows Mobile apps. I'm trying to call
the following shell function which is new on Windows Mobile 5.
SNDGETSND
http://msdn.microsoft.com/library/d...en-us/mobilesdk5/html/wce51lrfSndSetSound.asp
I basically just need to be able to get the device ringer mode (e.g. On Off
Vibrate) this seems the way to do it in WM5.
I can set up the declaration (dll import, structs, pointers etc) but when I
call it I get a "Not Supported" exception. I tried setting various unmanged
directives on the structs and parameters which stops the exception but the
call doesnt have a return value and does not seem to work, but I dont really
know what I'm doing when it comes to calling unmanged code.
Could someone proide we will a basic working example for declaring and
calling this function and I should be able to work out everything else from
there. I got that frustrated that I deleted my example code..
Paul