求SendDriverMessage函数帮助

[复制链接]
查看11 | 回复0 | 2008-2-2 11:15:55 | 显示全部楼层 |阅读模式
//vb定义Public Declare Function SendDriverMessage Lib "winmm.dll" Alias "SendDriverMessage" (ByVal hDriver As Long, ByVal message As Long, ByVal lParam1 As Long, ByVal lParam2 As Long) As Long//说明 向系统发送设备各种状态通知SendDriverMessageSends the specified message to the installable driver. LRESULT SendDriverMessage(HDRVR hdrvr, UINT msg, LONG lParam1,
LONG lParam2); ParametershdrvrHandle of the installable driver instance. The handle must been previously created by using the OpenDriver function. msgDriver message value. It can be a custom message value or one of these standard message values:DRV_QUERYCONFIGURE Queries an installable driver about whether it supports the DRV_CONFIGURE message and can display a configuration dialog box.DRV_CONFIGURE Notifies an installable driver that it should display a configuration dialog box. (This message should only be sent if the driver returns a nonzero value when the DRV_QUERYCONFIGURE message is processed.)DRV_INSTALL Notifies an installable driver that it has been successfully installed.DRV_REMOVE Notifies an installable driver that it is about to be removed from the system.lParam1 and lParam232-bit message-dependent information.Return ValueReturns nonzero if successful or zero otherwise. Requirements Windows NT/2000: Requires Windows NT 3.1 or later.Windows 95/98: Requires Windows 95 or later.Header: Declared in Mmsystem.h.Library: Use Winmm.lib.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行