CD in/out(光驱硬打开/关闭事件的检测 - 自解)
来源:互联网 发布:深度优先搜索算法 编辑:程序博客网 时间:2024/05/20 06:30
Here's how to be notified when CD drawer is opened or closed:
~~~~~~~~~~~~~~~~~~~~~~~~~
{Put this line into private section
of your form's declaration}
procedure WMDeviceChange(var Msg: TMessage) ;
message WM_DEVICECHANGE;
{the implementation part:}
procedure TForm1.WMDeviceChange
(var Msg: TMessage) ;
const
CD_IN = $8000;
CD_OUT = $8004;
var
Msg : String;
begin
inherited;
case Msg.wParam of
CD_IN : Msg := 'CD in';
CD_OUT : Msg := 'CD out';
end;
ShowMessage(Msg) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~
- CD in/out(光驱硬打开/关闭事件的检测 - 自解)
- c#打开关闭CD/DVD光驱代码
- 打开、关闭光驱的方法
- C# 打开关闭光驱
- VBS 打开关闭光驱
- CD驱动器的打开与关闭
- 用C#打开关闭光驱
- 打开和关闭光驱(十五)
- C++打开或关闭光驱
- 电脑DVD光驱变成CD光驱的解决方法
- 用程序打开或关闭光驱
- 用VB6.0打开和关闭光驱
- 用PowerShell打开或关闭光驱
- 编程控制光驱打开和关闭
- Delphi实现打开和关闭光驱
- VC中使用mci指令控制光驱(打开/关闭)
- C#中调用系统API打开和关闭光驱
- 把旧光驱改CD播放机的方法
- 今天,我在csdn写了第一篇blog
- Earned Value Management(挣值管理)
- 项目结束阶段PM要做好三项工作
- C++好文章
- 关于23种设计模式的有趣见解
- CD in/out(光驱硬打开/关闭事件的检测 - 自解)
- 2006年12月14日
- 什么是SOA,请先平一下我的理解
- 在java中动态分配cpu
- 今天下午和寝室变态男吵架了
- 对屏幕进行拍照
- 编写可测试的程序
- php.mvc
- WINDOWS VISTA 使用心得(一)