Before C code in the function definition, use the __stdcall key to select the function calling convention, is there a the contract way in C #? If yes, how do you use? Thank you all the friends to help!
CodePudding user response:
C # don't specify CallConvention,Only when the c # to call native DLL, to specify the calling convention:
[DllImport (" user32. DLL, "CallingConvention=CallingConvention. StdCall )]