Re: Segmentation in real mode

From: \\\\o//annabee (http://TheWannabee.org)
Date: 03/16/05


Date: Wed, 16 Mar 2005 18:30:28 +0100

På Wed, 16 Mar 2005 17:03:20 GMT, skrev Beth
<BethStone21@hotmail.NOSPICEDHAM.com>:

> I have said before that I was hardly "enamoured" with Linux as if it were
> some "angel sent from Heaven" or anything...but I tell what _IS_ true:
> The
> more I learn about Linux, the more impressed and optimistic I get...the
> more I've learnt about Windows, the more oppressed and depressed I get...

Hmm. An interessting analyse. Actually its a very good point. Hopefully.
At least it makes me currious on what Linux is, beyond the things I know,
so its a good slogan for Linux. At least to attract programmers. If I
could only trust the one who
posted 80kb explaining the revolutionary truth that case can be
represented as a boolean
property.......

Pesonally I see less and less need to stick with windows. Like you say,
the more I Iearn about window, the less I like it.

Anyway, here is code to kill the explorer cleanly, after rewriting the
registry so it will not start again ever. Could be used as a starting
point for writing a custom shell.

The code is not much. And the reason I post it, is if someone could post
back, a better way to do it.

[ExplorerClassName:"Progman" 0]
[TrayClassName:"Shell_TrayWnd" 0]
[WorkerClassName:"WorkerW" 0]
[DDEMomClassName:"DDEMLMom" 0]
[DDEEventClassName:"DDEMLEvent" 0]
[WebCheckMonitorClassName:"MS_WebCheckMonitor" 0]

[DestroyWindow|
APIFindWindow #1 &NULL
or eax eax | je D0>
push eax | APIPostMessage eax &WM_QUIT 0 0 | pop eax
D0:]

ThisApp.DestroyExplorer:

DestroyWindow ExplorerClassName
DestroyWindow TrayClassName
DestroyWindow DDEMomClassName
DestroyWindow DDEEventClassName
DestroyWindow WebCheckMonitorClassName
DestroyWindow WorkerClassName

While eax <> 0
     DestroyWindow WorkerClassName
End_While

ret

>
> Beth :)
>
>

-- 
Hey, it wasnt me !