vb prevents win7 from shutting down, vb6 prohibits windows 7 from shutting down

Updated on technology 2024-03-20
16 answers
  1. Anonymous users2024-02-07

    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.

  2. Anonymous users2024-02-06

    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.

  3. Anonymous users2024-02-05

    Use 2 timers and set it to 1 millisecond.

    Then write down the unload of the 2 forms to prevent the shutdown.

  4. Anonymous users2024-02-04

    The easiest way.

    Put Suspend The system will not respond to the shutdown command.

  5. Anonymous users2024-02-03

    Win7 doesn't have admin privileges, right??

  6. Anonymous users2024-02-02

    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.

  7. Anonymous users2024-02-01

    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?

  8. Anonymous users2024-01-31

    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.

  9. Anonymous users2024-01-30

    It seems that there is really nothing that can be done at the moment.

  10. Anonymous users2024-01-29

    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。

  11. Anonymous users2024-01-28

    1. Open the task manager in an exclusive way, and it's good to occupy it.

  12. Anonymous users2024-01-27

    This doesn't work, you can't use prtscm in the user switching interface, this is not a window anymore.

  13. Anonymous users2024-01-26

    Judge the key, if two of the keys are pressed at the same time, then...

  14. Anonymous users2024-01-25

    This is difficult, and your program must have administrator permissions.

  15. Anonymous users2024-01-24

    As long as you disable the del key and the right mouse button, you have to do the lock software.

  16. Anonymous users2024-01-23

    It can be automatically shut down without being sure, and then the user request (restart shutdown) is executed

Related questions
5 answers2024-03-20

Is it caused by hardware overheating? Try to clean the ash and add some thermal grease to the graphics card and CPU.

4 answers2024-03-20

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

12 answers2024-03-20

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!

6 answers2024-03-20

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

5 answers2024-03-20

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