Search code examples
c#delphiwinapidllentry-point

delphi Import dll function with specified entry point


How can I define this function in Delphi ? I know imports only without entry point and can't find any usefull example :(

That's written in C#

[DllImport("dwmapi.dll", EntryPoint = "#131")]
static extern int DwmpSetColorizationParameters(ref DwmColorParams dcpParams, 
bool alwaysTrue);

Thanks a lot

Best regards


Solution

  • This should do, although I'm not sure about the const for alwaysTrue.

    function DwmpSetColorizationParameters(var dcpParams: TDwmColorParams; 
      alwaysTrue: BOOL): Integer; stdcall; 
      external 'dwmapi.dll' index 131;