Re: Killing process
Harlin Seritt wrote:
I think I need something besides TerminateProcess(). Is there anyway
possible to terminate a process by just passing a string value to the
function? Honestly, I am not interesting in terminating a process by
its handle.
This is a bizarre request. Why can't you just call int() as you did in
your example to turn the string into a number? And if you can do that,
why would you have a problem using the *defined mechanism* to convert
from a PID to a handle, which is what the Windows API routine to kill
processes requires?
-Peter
.
Relevant Pages
- I dont mind bug: BinToHex implementation/description do not match !
... The BinToHex procedure occurding to Delphi's help would return a 'null' ... to terminate it with a #0 in the first place. ... Call BinToHex to convert the binary value in a buffer into a string that is ... Buffer is a buffer of bytes that contains the binary value. ... (alt.comp.lang.borland-delphi) - Re: The following Marshal code almost works
... Marshal.StringToHGlobalAuto is more for when you need to pass a string into ... > The problem is Marshal.PtrToStringAuto seems to terminate at the first ... > Dim lLenOflDrives As Integer ... > Dim lPointerToMemory As IntPtr ... (microsoft.public.dotnet.languages.vb) - Re: Zero terminated strings
... to terminate a string is a Bad Thing, why isn't it also a Bad Thing to ... use a sentinel to terminate other sequences? ... as linked lists of characters: a 32-bit word for each, ... The last character of the string had a zero link. ... (comp.lang.c) - how to terminate program execution ?
... the program accepts user input and checks the user input, ... correct then the program proceeds. ... If not then it should terminate the ... if userinput is equal to string "NY" then proceed with program. ... (alt.comp.lang.learn.c-cpp) - Re: Zero terminated strings
... to terminate a string is a Bad Thing, why isn't it also a Bad Thing to ... Linked lists, for example: ... You tried to lump together into a single category every possible pattern that uses some kind of sentinel. ... The last character of the string had a zero link. ... (comp.lang.c) |
|