-
Only hook API can be used under win7, but vb6 hookapi is not easy to implement.
If it's simpler, you can make a global mouse hook and hook the user to click the shutdown button, but this is not really intercepting the shutdown.
-
Win7 has a logout reminder dialog box "shutdown needs to close the following programs" and other boxes, as long as you terminate this shutdown delay program can terminate the shutdown, I hope it will help you.
-
Use 2 timers and set it to 1 millisecond.
Then write down the unload of the 2 forms to prevent the shutdown.
-
The easiest way.
Put Suspend The system will not respond to the shutdown command.
-
Win7 doesn't have admin privileges, right??
-
Cause analysis: This kind of failure is generally caused by the user's use of the rapid shutdown function of the Windows system inadvertently or by using some software to set the system, which causes the failure.
Solution 1:
1. Click "Start" - "Run" - "msconfig".
2. Then select Advanced in the "System Configuration Utility" panel.
3. Select "Disable Rapid Shutdown".
4. Restart the computer to solve the problem.
Solution 2:
1. Turn off the setting of automatic computer restart when the system occurs an error, right-click "My Computer" - select "Properties" - select the "Advanced" tab in the pop-up "System Properties" dialog box - >> Click "Settings" in the lower right corner of the "Startup and Fault Recovery" item below - In the pop-up "Startup & Failback" dialog box, remove the check in front of "Auto Restart" -- >> Click "OK" to exit.
2. Click on the "Start" menu -- select "Run" -- enter "regedit" to open the registry -- -- in order hkey local machine software Microsoft Window NT CurrentVersion Winlgon project, find the "PowerdownAftershutdown" subkey on the right side of the winlgon project -- Right-click and select "Modify" - change the numeric data to "1" -- >> If you don't find the "PowerdownAfterShutdown" sub-project, you can right-click to create a new "PowerDownAfterShutdown" project and set its data value to "1".
3. Open "Online Neighbors" - right-click "Local Connection" and select "Properties" - click "Configuration (C)" in the upper part of the "General" tab - select "Power Management" - tick "Allow the computer to turn off this device to save power", remove the tick in front of "Allow this device to take the computer out of standby" - click "OK" to exit.
-
What a strange requirement, even if it is a very important server, so important that it cannot be shut down casually, there is no such requirement, or you can only unplug the power supply when you maintain it, so it is not easier to cause the loss of the database or hard damage?
-
Shutdown is also an order, as long as the order is banned, it should be okay.
shell " /c shutdown -s -t 0"
Start--Run:
It is forbidden to shut down gadgets.
-
It seems that there is really nothing that can be done at the moment.
-
private sub command1_click()if msgbox("Whether to restart", vbyesno) =vbyes then
shell "shutdown -r -t 0"
end if
end sub
private sub command2_click()if msgbox("Whether to turn it off", vbyesno) =vbyes then
shell "shutdown -s -t 0" 'Shutdown.
end if
end sub
Search "vb6 version msdn" to help the base to help the document after installation,I don't understand the function to find it.,Sell with an explanation of the fight and。
-
1. Open the task manager in an exclusive way, and it's good to occupy it.
-
This doesn't work, you can't use prtscm in the user switching interface, this is not a window anymore.
-
Judge the key, if two of the keys are pressed at the same time, then...
-
This is difficult, and your program must have administrator permissions.
-
As long as you disable the del key and the right mouse button, you have to do the lock software.
-
It can be automatically shut down without being sure, and then the user request (restart shutdown) is executed
Is it caused by hardware overheating? Try to clean the ash and add some thermal grease to the graphics card and CPU.
Win7 system does not come with a timer shutdown software,This makes everyone a headache。 But you can set a scheduled shutdown under the win7 system. >>>More
Simple,Write a driver wizard to update the necessary driver to try.,The driver on the disc is no longer good.,You can try.,But it's not guaranteed.,Good luck!
Click on "Control Panel" - "System & Security" - "Check WindOS Index" - "Adjust Visual Effects", and then check the box in front of "Show translucent selection rectangle". Just in case, to avoid the problem of not being able to use other similar software in the future, it is recommended that you do not select "Custom" in the dialog box that comes out after clicking "Adjust Visual Effects", but "Best Appearance", so that Win7 will also look better. >>>More
Method steps.
On the desktop of the computer, click [Start], and in the right sidebar, find [Control Panel], as shown in the following figure: >>>More