'宣言はこうなって Private Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" _ (ByVal command As String, _ ByRef buffer As StringBuilder, _ ByVal bufferSize As Integer, _ ByVal hWndCallback As IntPtr) As Integer 'mciSendString の使い方は 'cmdString:コマンド文字列 Dim ret As Integer = mciSendString(cmdString, Nothing, 0, IntPtr.Zero)