Modify

Opened 23 months ago

Last modified 4 weeks ago

#3889 assigned Bug

ProcessClose does set @extended when no process found

Reported by: Jpm Owned by: Jon
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

ProcessClose() just return @extended = 0 when no process found
ret= 0 @error=0

#include <WinAPIError.au3>

Global $iError, $iExtended, $iRet = ProcessClose("lol_this_lol.exe")
;~      Return Value
;~      Success: 1.
;~      Failure: 0 and sets the @error flag to non-zero.
;~      @error: 1 = OpenProcess failed
;~      2 = AdjustTokenPrivileges Failed
;~      3 = TerminateProcess Failed
;~      4 = Cannot verify if process exists
;~      @extended: sets to Windows API GetLastError()
$iError = @error
$iExtended = @extended
Local $iGetLastError = _WinAPI_GetLastError()
Local $sGetErrorMessage = _WinAPI_GetErrorMessage($iGetLastError)
ConsoleWrite(";  @AutoItVersion = " & @AutoItVersion & @TAB)
ConsoleWrite('  iRet = ' & $iRet & @TAB & "  @error = " & $iError & @TAB & "  @extended = " & $iExtended & @TAB)
ConsoleWrite("  GetLastError = " & $iGetLastError & @TAB & '  GetErrorMessage = "' & $sGetErrorMessage & '"' & @CRLF )

Attachments (0)

Change History (4)

comment:1 Changed 23 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Fix Sent to Jon

comment:2 Changed 23 months ago by mLipok

JPM why this is set to 3.3.14.0 ?
Wondering if this should be set to 3.3.16.0 ? (also other recent tickets).

btw.
Thanks for all the fixes.

Last edited 23 months ago by mLipok (previous) (diff)

comment:3 Changed 23 months ago by mLipok

  • Description modified (diff)

comment:4 Changed 4 weeks ago by Jpm

  • Owner changed from Jpm to Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.