Okay well I've found some of the keys I need to use but not yet
unfortunately, for anyone elses reference you can achieve it via the
following,
Private Const SND_PURGE As Integer = &H40
Private Const SND_APPLICATION As Integer = &H80
Private Const SND_ASYNC As Integer = &H1
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal
lpszName As String, ByVal hModule As Integer, ByVal dwFlags As Integer) As
Integer
PlaySound(<name>, Nothing, SND_PURGE Or SND_ASYNC Or SND_APPLICATION)
<name> - SystemAsterisk
<name> - SystemHand
<name> - SystemExclamation
<name> - SystemQuestion
..... Still looking for more..
Nick.
"Nick" <no****@nospam.com> wrote in message
news:Ot**************@TK2MSFTNGP15.phx.gbl...
Hi there,
Im trying to use the PlaySnd API to play a system sound, such as
"Asterisk" or "Question" within the windows section. Anyone got any ideas
on how this is done? I've tried using the SND_APPLICATION and SND_ALIAS
flags but I'm thinking that my name isnt correct in the first place,
should I be using "Windows\Asterisk"? Thanks in advance.
--
Nick Pateman
---------------------------------------------------------------
Please do not reply directly to me, but the entire newsgroup.
Any views expressed above are my own
Without predjudice