Recent

Author Topic: Missing CreateFile2 API  (Read 305 times)

440bx

  • Hero Member
  • *****
  • Posts: 6556
Missing CreateFile2 API
« on: June 28, 2026, 01:28:19 am »
Hello,

In FPC v3.2.2, the definition of CreateFile2 is missing along with the CREATEFILE2_EXTENDED_PARAMETERS structure and some of the constants used in that structure.

MSDN C prototype is at:
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2

HTH.

FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

LeP

  • Sr. Member
  • ****
  • Posts: 426
Re: Missing CreateFile2 API
« Reply #1 on: June 28, 2026, 11:09:20 am »
May be 'cause is new ... it was introduced with Windows 8 (neither Windows 7 had it).

This is the last update that I use of WinMD (May 2026), it include all updates of all Windows API.

Sorry but not enough space on Forum, so it is an external link (my server): https://cloud.dyn-o-saur.com/Winmd.Winapi.Windows UODATE 2026 May.zip

P.S.: they are created for Delphi, but I think there is no issues to use with Lazarus
P.S.1: I don't try all APIs, of course, so I don't know if all of them  are "translated" in the right way.

This link will be live for near one week ... feel free to ask for it in this thread, if need it again in the future.
« Last Edit: June 28, 2026, 11:18:46 am by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12942
  • FPC developer.

440bx

  • Hero Member
  • *****
  • Posts: 6556
Re: Missing CreateFile2 API
« Reply #3 on: June 28, 2026, 01:54:55 pm »
@marcov, that looks good.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018