For a project of writing a windows service with Delphi I stumbled across the problem that not all WinAPI functions were present in the libraries, this is probably not only the case with WinSvc.pas which mostly seems to have the API bindings of Win9x and nothing of the API which came with WinNT4, Win2k and later. This is why I decided to make a normal unit which would do the binding and make a place for implementing more missing API functions if any found missing.

For a project of writing a windows service with Delphi I stumbled across the problem that not all WinAPI functions were present in the libraries, this is probably not only the case with WinSvc.pas which mostly seems to have the API bindings of Win9x and nothing of the API which came with WinNT4, Win2k and later. This is why I decided to make a normal unit which would do the binding and make a place for implementing more missing API functions if any found missing.
A little bit more detailed motivation and analysis is in my blog: http://rarog-it.blogspot.de/2013/12/delphi-and-missing-windows-api-functions.html

The code is at github: https://github.com/rarog/winapi-for-delphi


If someone knows another repository, has more ideas of missing API  calls in other units or wants to contribute, please feel free to contact me.


#delphi #programming #windows #api

Comments