PInvoke to handle events |
![]() ![]() |
PInvoke to handle events |
|
Jun 23 2008, 14:06
Post
#1
|
||
|
Newbie Group: Posters Posts: 4 Joined: 3rd June 2008 Member No.: 394,865 |
I managed to get midi playback working on WM6 using SndPlayAsync. Now I would like to be able to loop the midi. The only way I can see to do this is to detect when the file stops playing and play it again. I believe I might be able to detect the event using SndGetWaitHandle, but I don't know what to do with the event handle once it's retrieved.
CODE [DllImport("aygshell.dll")] static extern uint SndGetWaitHandle(IntPtr hSound, ref IntPtr phDoneEvent); Can anyone tell me how to set up an event handler for this kind of event handle? Or if there is an easier way to loop the midi, that would be preferable. |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
|
21 | Paul (MVP) | 26,279 | Today, 09:05 Last post by: dFrag73 |
![]() |
Video uploading now... |
533 | Paul (MVP) | 195,138 | Today, 07:29 Last post by: SonOfJobs |
![]() |
Wifi connection whilst connected to ActiveSync How? |
4 | Webreaper | 299 | Today, 09:35 Last post by: Swampie |
![]() |
now working |
58 | Omnia_1 | 6,544 | Today, 10:20 Last post by: Omnia_1 |
![]() |
(Maybe a) Solution to unbrick your omnia | 6 | KM | 755 | Today, 10:44 Last post by: cantarol |
![]() |
Sun next to Clock in today screen How to remove it ??? |
3 | xteph1973 | 30 | Today, 12:53 Last post by: silencer22 |
|
Lo-Fi Version | Time is now: 6th October 2008 - 13:24 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
VITO Technology | Slipstream Solutions | Aiko Solutions | PDAMill | Inesoft | SBSH | LingvoSoft | Ruttensoft | Astraware | MadBeetle | Sprite Software
Opera | Westtek | TetraEdge | Z4Soft | KBM Systems | Conduits | Mini Lyrics Magic | Proporta | Semsons | SyncData | Active Kitten | Binaryfish | Textr
SPB Software House | Omega One | OmniSoft | Resco | eSoft Interactive | TenGo | ATEKsoft | imei-check | GpsGate | SplashData | DeveloperOne | monocube
WebIS, home of Pocket Informant, FlexMail and Note2Self
Would your company like to become a 'Plus Partner'? Click Here to contact us!