Re: playsound
※ 引述《ahsti (竹)》之銘言:
: PlaySound "C:\WINDOWS\Media\notify.wav", ByVal 0&, &H20000 Or &H1
: 其中(((ByVal 0&, &H20000 Or &H1)))
: 是什麼意思?
: 請各位能夠解答一下
: 謝謝
文法:
BOOL PlaySound(
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
PlaySound "C:\WINDOWS\Media\notify.wav", ByVal 0&, &H20000 Or &H1
等同於下式
PlaySound "C:\WINDOWS\Media\notify.wav", Null, SND_FILENAME + SND_ASYNC
hmod:
Handle of the executable file that contains the resource to be loaded.
This Parameter must be NULL unless SND_RESOURCE is specified in fdwSound.
SND_FILENAME:
The pszSound parameter is a filename.
SND_ASYNC
The sound is played asynchronously and PlaySound returns immediately
after beginning the sound. To terminate an asynchronously played waveform
sound, call PlaySound with pszSound set to NULL.
--
以上資料節錄自 MSDN Library
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.81.194.38
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章