Johan
Johan

Reputation: 76537

Difference between stdcall and winapi directives?

According to the online help:
ms-help://embarcadero.rs_xe7/rad/Fundamental_Syntactic_Elements.html#Directives

  1. winapi is the same as stdcall for Delphi for Win32; 64-bit is different

I always thought that Win64 has only one calling convention. So how can stdcall and winapi have different meanings on x64?

Upvotes: 1

Views: 850

Answers (1)

David Heffernan
David Heffernan

Reputation: 612794

64-bit is different.

That's badly written, and who knows what the author meant.

I always thought that Win64 has only one calling convention.

You are correct. There really is only one calling convention on x64 Windows. So these directives are essentially ignored on x64.

On x86, winapi and stdcall happen mean the same thing. But there are other distinct calling conventions on x86 such as cdecl and register.

Upvotes: 3

Related Questions