Solved

How to freeze windows 95?

Posted on 1998-12-19
10
231 Views
Last Modified: 2013-11-13
I would like to know how to freeze up a windows 95 machine
with a visual basic code. It can be just a "blue screen of the death".

thanks
0
Comment
Question by:merdik
10 Comments
 

Expert Comment

by:TomKid2004
ID: 1451488
And why in the world would you even want to do this?
0
 
LVL 1

Expert Comment

by:muffinthedog
ID: 1451489
Easy,
    just copy 3 or 4 of the API declarations from the API viewer and try to call the functions correctly!!! MoveMemory works real good... just poke arbitrary values into it...
0
 

Expert Comment

by:kennym141282
ID: 1451490
I wont give you the code for this, but try terminating the KERNEL32.DLL!
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Expert Comment

by:MAVERICK
ID: 1451491
Why would you want to make a computer crash anyway???

0
 

Accepted Solution

by:
Shroom earned 200 total points
ID: 1451492
I have this thing that locks the mouse and when they try to hit ctr alt del and shut the program off it just reloads it self so fast that nothing happens! You can just make a form that is blue and it freezes! Well here is the code (pls. execpt my answer I need these points) Thanx!


Function Lock_Mouse()
' to lock it just type: Lock_Mouse
   Dim typRect As tagRect
   Static fClip As Boolean
           
     
     
Call ClipCursor(typRect)
      fClip = Not fClip
end function

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim dirss
dirss = App.Path + "/"

Shell dirss + "YourAppName.exe"

End Sub

'

0
 

Expert Comment

by:kennym141282
ID: 1451493
The answer doesnt lock windows just the mouse!!!

Here's a clue, look at the following APIs

Createtool32help (or something like it)
Process32First
Process32Next
(CloseHandle)
OpenProcess
GetExitCodeProcess
TerminateProcess
(CloseHandle)

Have Fun! :)) Use your initiative!
0
 

Expert Comment

by:ljaques
ID: 1451494
One sure fire way of CRASHING windows is to slap the Winsock control onto your form and make ordinary calls to it over and over again (connect/disconnect) and within 4 hours time your entire system will go down because of lost memory. Your HD will also begin thrashing because of the lost physical RAM (resorting to full virtual).

Sounds like you are making a malignant virus...
0
 

Expert Comment

by:kennym141282
ID: 1451495
4 Hours... I think s/he wants an instant crash!!!

(Look into those APIs, I will help you further if you need it)
0
 

Expert Comment

by:kennym141282
ID: 1451496
I'd hide the cursor too!

add the declaration from the Win32API Reference!

' Code
r=ShowCursor(0)

0
 

Expert Comment

by:Shroom
ID: 1451497
This freezes the mouse but it also makes it so nothing happens if u would like the code for it to disable ctrl alt del then ask me for it. then they cant do anything! Oh well have fun!!!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question