在Win32服务中注册网络设备的设备通知 [英] Registering Device Notification for network devices in win32 service

查看:114
本文介绍了在Win32服务中注册网络设备的设备通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



正如主题行所说的那样.

我希望在拔下局域网电缆或禁用wifi信号时生成通知.

我能够枚举所有lan适配器和wifi适配器.但是我不想让我的线程连续运行.

因此,我需要一个网络通知来通知我的win32服务进行进一步处理.


任何人都可以帮助我.


使用Rgds
Girish

Hi,

As the subject line says it all.

I want a notification to be generated , when lan cable is unplugged, or wifi signal is disabled.

I am able to enumerate all lan adapters and wifi adapters. But i don''t want to keep my thread running continuously.

So i need a network notification which can signal my win32 service to do further processing.


Any anybody help me out.


With Rgds
Girish

推荐答案

查看本文:

Windows Vista和Windows 7中的网络意识
http://msdn.microsoft.com/en-us/library/ee264321 (v = vs.85).aspx [
See this article:

Network Awareness in Windows Vista and Windows 7
http://msdn.microsoft.com/en-us/library/ee264321(v=vs.85).aspx[^]

It tells you how to register for network events.


这篇关于在Win32服务中注册网络设备的设备通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆