|
| |||||||
| |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
| | #1 (permalink) |
| duh Join Date: May 2002 Location: Boiler Up
Posts: 517
| CF .net p/invoke reading the phones current ringer Hey guys i'm working on a project at school in a mobile development class. I'm trying to read the current ringer settings on a phone (vibrate, off, on). There is no direct class for this so it has to be done through a platform invoke. I was able to find the code online to set the ringer here: Code:
Thanks for any help guys. |
| | |
| | #2 (permalink) |
| FoH Member with a rod in his pants Join Date: Jan 2002 Location: Forest, MS
Posts: 233
| 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?
__________________ |
| | |
| | #3 (permalink) | |
| duh Join Date: May 2002 Location: Boiler Up
Posts: 517
| Quote:
Code:
Code:
| |
| | |
| | #4 (permalink) |
| duh Join Date: May 2002 Location: Boiler Up
Posts: 517
| Got it btw, had to make a structure... Code:
|
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |