说三道四技术文摘-感悟人生的经典句子
说三道四 > 文档快照

打开/关闭光驱门-VB资料

HTML文档下载 WORD文档下载 PDF文档下载
打开/关闭光驱门-VB资料

声明
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
代码
Sub OpenCDDoor()
mciSendString "Set CDAudio Door Open Wait", 0&, 0&, 0&
End Sub

Sub CloseCDDoor()
mciSendString "Set CDAudio Door Closed Wait", 0&, 0&, 0&
End Sub



备案号:鲁ICP备13029499号-2 说三道四 www.s3d4.cn 说三道四技术文摘