View Single Post
 
Old 11-18-2018, 02:40 PM
Paul Cain Paul Cain is offline Windows 10 Office 2013
Novice
 
Join Date: Oct 2012
Location: Australia
Posts: 6
Paul Cain is on a distinguished road
Default 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
Reply With Quote