#include <windows.h>
#include <MMSystem.h>

#pragma comment( lib, "winmm.lib" )

int main()
{
	mciSendStringA( "set cdaudio door closed", NULL, 0, NULL );
	return 0;
}

用Python代码实现:
import ctypes
dll = ctypes.windll.LoadLibrary("winmm.dll")
dll.mciSendStringA("set cdaudio door closed", 0, 0, 0)

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-06-18
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-08-14
  • 2021-11-21
  • 2021-08-04
  • 2021-07-14
  • 2021-11-14
  • 2021-10-12
相关资源
相似解决方案