Click here to Skip to main content
15,896,269 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
QuestionRe: usb keyboard emulator (but software:) Pin
Krzysztof Gorgolewski10-Sep-07 9:35
Krzysztof Gorgolewski10-Sep-07 9:35 
AnswerRe: usb keyboard emulator (but software:) Pin
Dan Neely11-Sep-07 2:17
Dan Neely11-Sep-07 2:17 
Questionusb on the go? Pin
kutalinelucas10-Sep-07 2:12
kutalinelucas10-Sep-07 2:12 
AnswerRe: usb on the go? Pin
shaikhooo11-Sep-07 3:20
shaikhooo11-Sep-07 3:20 
QuestionHandling notification events of a network adapter. Pin
Marimuthu.r6-Sep-07 19:17
Marimuthu.r6-Sep-07 19:17 
AnswerRe: Handling notification events of a network adapter. Pin
Dave Kreskowiak7-Sep-07 4:34
mveDave Kreskowiak7-Sep-07 4:34 
GeneralRe: Handling notification events of a network adapter. Pin
Marimuthu.r9-Sep-07 22:29
Marimuthu.r9-Sep-07 22:29 
GeneralRe: Handling notification events of a network adapter. Pin
Dave Kreskowiak10-Sep-07 1:41
mveDave Kreskowiak10-Sep-07 1:41 
I don't know of any. System Event Notification Services is a pretty obscure API to use. I haven't been able to find any examples.

But, about 3 minutes of research finds hat SENS is installed automatically with every version of Windows after NT4, AND it exposes a COM library you can use in your code.

Start your project and open the Project properties. Click the References tab and in the dialog that shows up, click on the COM tab. Scroll down the list and find the "SENS Events Type Library". Double click on that line to add the reference. You can now use SENS as if it where a normal class in the .NET BCL.

All you have to do is add a class-level Dim to create a SENS object and then create the event handlers.
Dim WithEvents sens As New SensEvents.SENS




A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: Handling notification events of a network adapter. Pin
fat_boy10-Sep-07 3:43
fat_boy10-Sep-07 3:43 
GeneralRe: Handling notification events of a network adapter. Pin
Marimuthu.r10-Sep-07 21:05
Marimuthu.r10-Sep-07 21:05 
GeneralRe: Handling notification events of a network adapter. Pin
fat_boy10-Sep-07 21:13
fat_boy10-Sep-07 21:13 
QuestionBeginner VHDL syntax problem Pin
MatthysDT6-Sep-07 5:29
MatthysDT6-Sep-07 5:29 
AnswerRe: Beginner VHDL syntax problem Pin
Matthew Faithfull6-Sep-07 6:30
Matthew Faithfull6-Sep-07 6:30 
GeneralRe: Beginner VHDL syntax problem Pin
MatthysDT6-Sep-07 19:55
MatthysDT6-Sep-07 19:55 
GeneralRe: Beginner VHDL syntax problem Pin
rbuchana8-Sep-07 12:54
rbuchana8-Sep-07 12:54 
QuestionSystem specification change trouble Pin
DanB19834-Sep-07 5:56
DanB19834-Sep-07 5:56 
AnswerRe: System specification change trouble Pin
Big Daddy Farang6-Sep-07 6:12
Big Daddy Farang6-Sep-07 6:12 
GeneralRe: System specification change trouble Pin
DanB19836-Sep-07 6:55
DanB19836-Sep-07 6:55 
Question8.5 G.B Double Layer DVD Pin
nkjha131-Aug-07 2:55
nkjha131-Aug-07 2:55 
AnswerRe: 8.5 G.B Double Layer DVD Pin
#realJSOP31-Aug-07 10:18
professional#realJSOP31-Aug-07 10:18 
GeneralRe: 8.5 G.B Double Layer DVD Pin
Dan Neely31-Aug-07 10:36
Dan Neely31-Aug-07 10:36 
QuestionWiFi scanner Pin
Archyami30-Aug-07 17:22
Archyami30-Aug-07 17:22 
QuestionSlow Network Speed Pin
Dreamer200724-Aug-07 20:34
Dreamer200724-Aug-07 20:34 
AnswerRe: Slow Network Speed Pin
#realJSOP25-Aug-07 2:55
professional#realJSOP25-Aug-07 2:55 
AnswerRe: Slow Network Speed Pin
cp987625-Aug-07 17:46
cp987625-Aug-07 17:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.