Quote:
Originally Posted by Jaytee Bushwacker I've been working on WMI stuff and for that you have to create a base object and then do a get parameters function in order to pass args to the method you want to invoke.
Sounds like that msdn article does something along those lines. You have to query for the seSoundEvent (whatever the ringer would be called) and pass in a pointer to an object (pSoundFileInfo) you already created. It then populates the object with the filename.
I don't know how you would invoke the method SndGetSound method from that msdn article though. I haven't done any mobile phone or CF.NET work though so I may be totally in left field.
You have googled for examples of the method right? |
Yeah there are a bunch of examples on the SndSetSound method, but none on the GetSound. What you described is kind of what I have tried, however it's not working for some reason, and debugging debugging p/invokes is like taking a shot in the dark. This is what i'm sitting at now.
Code:
clsNotification blah = new clsNotification();
uint rettVal = clsNotification.SndGetSound(SoundEvent.All, blah);
Here is how I setup the SndGetSound method:
Code:
public static extern uint SndGetSound(SoundEvent seSoundEvent, clsNotification pSoundFileInfo);
It will execute, but always comes back with the value ringer on.