Is it possible to control PC speaker directly in windows?
Posted on 2003-10-02 02:07:38 by optimus
Once and for all let us make this clear:

NO DIRECT HARDWARE ACCESS IN WINDOWS !

All hardware access goes THRU OS drivers.

This is especially true for latest versions on Windows like Win2k and WinXP
and only partially true for Win98/95.

If you want direct hardware access you should either make a driver (KMD .SYS file) or switch to another more
"permissive" OS like: Menuet, SolarOS, (many others) or good old DOS

The most closer API to direct hardware access is DirectX7 (in a sense) == you can have direct accesss to pixels on screen in a primary buffer in exclusive mode ...
Posted on 2003-10-02 07:01:12 by BogdanOntanu
This code work only in Win9x(no VxD)
#################################################


.386p
.MODEL FLAT,STDCALL
include windows.inc
.CODE
NewInt:
;Beep Function (C/P KMD Tutorials)
cli
mov al,10110110y
out 43h, al
mov eax, 1193
out 42h, al
mov al, ah
out 42h, al
in al, 61h
or al, 11y
out 61h, al
sti
mov eax,0FFFFFFh
.while eax
dec eax
.endw
cli
in al, 61h
and al, 11111100y
out 61h, al
sti
iretd
Start:
[ edited ]
offending code removed here ....
....
call ExitProcess, -1

#################################################
Posted on 2003-10-02 13:57:39 by Criminal2
For non-W9X systems, there is Beep.
Check it quickly on W2K, and still works!

Regards, P1 :cool:
Posted on 2003-10-02 15:46:29 by Pone
i was check it in win98.
this is a exe !!!

[ edit ] ofending code removed ..
Please read the rules

the Critical Code
"newInt" run in ring-0


....
Posted on 2003-10-02 16:47:22 by Criminal2
the system down after running the code. (I was running win95 on VirutalPC)
Posted on 2003-10-02 23:17:42 by optimus
ok.
Full Project + Exe

[ edit ] link removed
Posted on 2003-10-03 03:50:49 by Criminal2
Criminal2

Have you read the rules here?

They do NOT allow for virus related content...

Please be warned...
Posted on 2003-10-03 03:59:51 by BogdanOntanu
IT IS NOT VIRUS RELATED CONTET !!!!
just a trick
Posted on 2003-10-03 05:28:23 by Criminal2
really?

A trick or two... C&P from CIH ?

As you might note i have left the code related to this thread's subject untouched
just removed the reference to viri and any code from such offending materials.
Posted on 2003-10-03 06:32:53 by BogdanOntanu
"www.anticracking.sk" is not a illegal comp.
you can find same code in http://www.anticracking.sk/Articles/Ring0.txt
Posted on 2003-10-03 08:25:18 by Criminal2
The fact that OTHER sites has such material is no excuse for your c&p and also mentioning its viri sources. This site is located in a place that does not permit such content.

I am not even saying that this stuff is illegal or something.

What you like to do in your country and/your home/box is your own concern... it is not my intention to interfere.

All i am saying is that THIS forum has some Rules and we must all observe and obey them in order to be able to keep this place working for us all...

The alternative is to have host shut down by authoritys and we will loose a place where we can share ideas and stuff...

Are you prepared to pay this price now and here just to be able to freeley mention viri souces? and where will you mention them then ....

After all we all know that there are OTHER well known places for such stuff, locate in country's that do not have such harsh laws

http://www.asmcommunity.net/board/announcement.php?s=&forumid=23
Posted on 2003-10-03 10:00:16 by BogdanOntanu
Originally posted by BogdanOntanu
The alternative is to have host shut down by authoritys and we will loose a place where we can share ideas and stuff...
Are you prepared to pay this price now and here just to be able to freeley mention viri souces?

you are in the right.
i have no thought of this point.
i'm sorry ....
Posted on 2003-10-03 11:09:45 by Criminal2
BogdanOntanu,

Most ( not all ) criminals ( Note: little c ) are repeat offenders. End up getting permenately taken care of by society.

Criminal2,

I asked you once about your handle, I still interested, if you have the time.

Regards, P1 :cool:
Posted on 2003-10-03 12:45:42 by Pone
Criminal2, I want your files. Can u send me via e-mail (NOSPAMheyman@citiz.netNOSPAM)
Posted on 2003-10-03 12:46:36 by optimus