Correct syntax for PtrSafe Function AccessibleObjectFromWindow
Hi
I use a number of Windows API Functions in a vba project that I have converted to 64 bit Excel. I remain unsure about 1 of these because of my lack of understanding of MicroSoft published syntax. This function does appear in a number of different www sources but these have inconsistent Types and none of them is authoritative.
Is anyone able to confirm if this is correct? I have highlighted the 2 types I am uncertain of:
Private Declare PtrSafe Function AccessibleObjectFromWindow Lib "oleacc" _
(ByVal HWnd As LongPtr, _
ByVal dwId As Long, _
ByRef riid As GUID, _
ByRef ppvObject As Object) As LongPtr
thanks
|