RegisterDeviceNotification 注册设备必须要MFC吗?

cheneyhehe 2007-07-18 02:29:27
RegisterDeviceNotification(Handle, &DevInt, DEVICE_NOTIFY_WINDOW_HANDLE);

这里有个参数是handle,请问,在win32 console里怎么处理?

谢谢
...全文
410 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
partime 2007-07-25
  • 打赏
  • 举报
回复
Handle:
Handle to the window or service
Services can specify either a window handle or service status handle.
service status handle:CALLBACK
Flags
[in] This parameter can be one of the following values

DEVICE_NOTIFY_WINDOW_HANDLE The hRecipient parameter is a window handle.
DEVICE_NOTIFY_SERVICE_HANDLE The hRecipient parameter is a service status handle.
龙凤呈祥焱 2007-07-21
  • 打赏
  • 举报
回复
你想移植到什么环境?
cheneyhehe 2007-07-18
  • 打赏
  • 举报
回复
那这样移植时不是很麻烦?或有人知道有什么方案没有窗口下,去处理消息?
龙凤呈祥焱 2007-07-18
  • 打赏
  • 举报
回复
一定要消息处理。

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧