Opened 16 years ago

Closed 16 years ago

#610 closed Bug (Fixed)

WinAPI.au3 _WinAPI_CreateFile() does not return 0 on failure as specified in beta help

Reported by: Bowmore Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


Tested on
AutoIt Beta

This may be either a documentation issue or a UDF bug

From Beta Help
Return Value

Success: The open handle to a specified file
Failure: 0

From testing I get 0xFFFFFFFF returned on failure

#Include <WinAPI.au3>
$sfile = "C:\I do not exist.txt" 
$hFile = _WinAPI_CreateFile($sFile, 2, 2, 2)
MsgBox(0,"File Handle", $hFile)

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Gary

  • Milestone set to
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

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

as closed The owner will remain Gary.

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

Note: See TracTickets for help on using tickets.