看板 Visual_Basic 關於我們 聯絡資訊
※ 引述《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