Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call a vb program during the windows shutdown?

Status
Not open for further replies.

lpatnaik

Programmer
Jul 11, 2002
53
0
0
Hi, I have a vb application which is run to disable a particular NIC(network Interface Card) when the windows is started. When the windows is shutdown, the program is to detect if the NIC is enabled and disable it, if so.

I would like to know how to call the program when the windows shutdown occurs?
 
The easiest method is to leave the VB program running and then, when Windows is shutting down, the VB program's QueryUnload event will be triggered with the UnloadMode parameter set to vbAppWindows (2), which tell's the VB program that Windows is shutting down
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top