作者colawei (D逃)
看板Visual_Basic
标题Re: playsound
时间Wed Nov 22 23:06:21 2006
※ 引述《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