the function PlaySound(...) plays the soundfile that must be located in terminal_directory\Sounds or its sub-directory.
How can I play a sound file from the C:\Windows\Media path?
I can think of two possibilities:
An adaptation of https://forum.mql4.com/60173#894658:
int PlaySoundW(string, int, int);
PlaySoundW("c:\\windows\\media\\chimes.wav", 0, 1 /* SND_ASYNC */);
Thank you very much!
To add comments, please log in or register