Get Device Notification Event in Windows Nt Services

  • Thread starter Thread starter poojapatel22
  • Start date Start date
P

poojapatel22

hi all,
i had created a Windows NT service in VC 6.0 and i want to develop
sasme thing in VC++.Net as per my Requirement. In VC 6.0 we get the
Notification Like SERVICE_CONTROL_DEVICEEVENT by Registering through
"RegisterDeviceNotification" and for that we r using
RegisterServiceCtrlHandlerEx.

i want to get same type of notification in VC++.NET application. Is
there any other method from Where i can Get The Same Thing.

i am in Hurry. please Help Me

Thanks in Advance.

Jitendra Sanghani
[[email protected]]
 
hi all,
i had created a Windows NT service in VC 6.0 and i want to develop
sasme thing in VC++.Net as per my Requirement. In VC 6.0 we get the
Notification Like SERVICE_CONTROL_DEVICEEVENT by Registering through
"RegisterDeviceNotification" and for that we r using
RegisterServiceCtrlHandlerEx.

i want to get same type of notification in VC++.NET application. Is
there any other method from Where i can Get The Same Thing.

Hi,

I think the only option is to use interop to use
RegisterForDeviceNtofication because there is no .NET equivalent that I could
find.

the following link discusses this for VB.NET
http://www.dotnet247.com/247reference/msgs/41/205522.aspx

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top