Get Device Notification Event in Windows Nt Services

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]]
 
G

Guest

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top