From: bob123 on
> OK thanks Mayayana
> I know it's a dangerous thing but I need It ...
> I am very interested in Terminate Thread
> Can you show me how I can use it ?
I have the thread ID
is it possible to have a script which ask the TID
and then kill it
Thanks


From: Mayayana on

| I have the thread ID
| is it possible to have a script which ask the TID
| and then kill it

No. That's why I asked what you want to
accomplish. If you want to use TerminateThread
you have to do it from compiled software. (And
you also need to have permission or "access" on
an NTFS system. (Vista/7 is always NTFS. XP is
sometimes NTFS.) I don't know about who has
access aside from the process that created the
thread.)

The way I like to think of it is as a cook and
a waiter in a diner. Compiled software is the
cook. Script is the waiter. The waiter can do
a few things himself, like pour drinks and maybe
make salads. But most of what the waiter does
is to send orders to the cook. You can only order
what the cook makes. Likewise with script. It's
interpreted. You can only call the functions that
the host provides. If you want something other
than that you have to go into the kitchen. That
means loading and unloading libraries, using
specific data types, having direct access to data
in memory, etc. Those are all things that script
can't do.

You can look up TerminateThread and find the
docs online at MSDN. It's a fairly simple function.
And you can call it from compiled software if you
have the required access. You just can't call it from
script.