Re: The revelation of St. f0dder the Divine
- From: Donkey <contact_nospam_donkey@xxxxxxxxxxx>
- Date: Sun, 21 Aug 2005 18:01:33 GMT
f0dder wrote:
Donkey wrote:
(...) You should also CloseHandle pr_info.hThread
Yup, missed that one, my mistake. Thanks f0dder.
shell FRAME lpfilename,dwTimeOut
invoke CreateProcess,NULL,[lpfilename],NULL,NULL, \
NULL,NULL,NULL,NULL, \
ADDR st_info, \
ADDR pr_info test eax,eax
jz >.ERROR
invoke WaitForSingleObject,[pr_info.hProcess],[dwTimeOut]
push eax
invoke CloseHandle,[pr_info.hProcess]
invoke CloseHandle,[pr_info.hThread]
pop eax
test eax,eax
RET
.ERROR
xor eax,eax
sub eax,1
RET
ENDFshell PROC lpfilename:DWORD,dwTimeOut:DWORD
invoke CreateProcess,NULL,[lpfilename],NULL,NULL, \
NULL,NULL,NULL,NULL, \
ADDR st_info, \
ADDR pr_info test eax,eax
jz @F
invoke WaitForSingleObject,[pr_info.hProcess],[dwTimeOut]
push eax
invoke CloseHandle,[pr_info.hProcess]
invoke CloseHandle,[pr_info.hThread]
pop eax
test eax,eax
RET
@@:
xor eax,eax
sub eax,1
RET
shell ENDPDonkey .
- Follow-Ups:
- Re: The revelation of St. f0dder the Divine
- From: hutch--
- Re: The revelation of St. f0dder the Divine
- References:
- The revelation of St. f0dder the Divine
- From: hutch--
- Re: The revelation of St. f0dder the Divine
- From: f0dder
- Re: The revelation of St. f0dder the Divine
- From: f0dder
- Re: The revelation of St. f0dder the Divine
- From: hutch--
- Re: The revelation of St. f0dder the Divine
- From: Donkey
- Re: The revelation of St. f0dder the Divine
- From: Donkey
- Re: The revelation of St. f0dder the Divine
- From: f0dder
- The revelation of St. f0dder the Divine
- Prev by Date: Re: US Military Dead during Iraq War
- Next by Date: Re: US Military Dead during Iraq War
- Previous by thread: Re: The revelation of St. f0dder the Divine
- Next by thread: Re: The revelation of St. f0dder the Divine
- Index(es):
Relevant Pages
|