The MSDN documentation you have linked is for the .NET Interop assembly which wraps the PowerPoint COM object model for use by .NET managed code, rather than for the COM object model itself.
The metadata in the interop assembly shows that there is actually an undocumented HWND
property present in the COM interface to a DocumentWindow
, but it carries the special type library attribute FUNCFLAG_FRESTRICTED
which indicates that it
is intended for system-level functions or functions that type browsers should not display.
I imagine this is the reason that your attempt to call this property by name through the DocumentWindow
dispatch interface is failing.
However, the Interop assembly metadata also shows that the DISPID (dispatch identifier) for this restricted property is the value 0x7e4
. I'm not very familiar with the JACOB library but I believe there is an override which allows you to get the value of a property by DISPID rather than by name:
Dispatch.get(window, 0x7e4);
I suggest you give this a try.