Win64/AMD64 API
From Free Pascal wiki
As far as I know, there is no offical document yet decribing the win64/amd64 api so the follow information is collected from several sources.
Begin in this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64/getting_ready_for_64_bit_windows.asp
Parameter passing
The parameters are passed in a different manner to subroutines than known from amd64/linux.
Data type sizes
Basic information at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64/the_new_data_types.asp