IRpcChannelBuffer.GetDestCTX definition problem lazarus / 67-Windows ---------------------------------------------------------------------- 440bx · 2025-07-02 06:33 Hello, In activex.pp, IRpcChannelBuffer.GetDestCTX 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 GetDestCTX(Out dwDestContext : DWord;Out pvDestContext : Pointer):HResult; StdCall; Note that pvDestContext is defined as "out". The documentation found at: https://learn.microsoft.com/en-us/windows/win32/api/objidl/nf-objidl- irpcchannelbuffer-getdestctx states that pvDestContext must be nil. passing nil for an "out" parameter is cumbersome and semantically questionable.  The parameter should be "ppointer" (to be very precise) or "pointer" (since it must be nil anyway.) ---------------------------------------------------------------------- gues1 · 2025-07-02 08:49 The function example described in the link defines that parameter as a generic pointer, i.e. untyped ('void'). And in all the pascal wrappers I have the generic pointer is defined as described in FPC.