IMarshal.GetMarshalSizeMax definition problem lazarus / 67-Windows ---------------------------------------------------------------------- 440bx · 2025-06-30 09:23 Hello, In activex.pp, the GetMarshalSizeMax method is defined as: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         Function GetMarshalSizeMax ( Const Riid: TIID; {in, unique} pv:Pointer; Const dwDestContext : DWord;                   {in, unique} pvDestContext:Pointer; Const mshlflags : DWord; out pSize : PDWord ): HResult;Stdcall; Note the last parameter is declared as "out pSize : PDWord" since it is "out", it should be declared as "out pSize : DWord" (no P in DWord). HTH. ---------------------------------------------------------------------- Zvoni · 2025-06-30 09:53 Agreed. https://learn.microsoft.com/en-us/windows/win32/api/objidl/nf-objidl- imarshal-getmarshalsizemax Code: C  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i HRESULT GetMarshalSizeMax(  [in]  REFIID riid,  [in]  void   *pv,  [in]  DWORD  dwDestContext,  [in]  void   *pvDestContext,  [in]  DWORD  mshlflags,  [out] DWORD  *pSize);