Modify

Opened 5 years ago

#3829 new Bug

ObjCreateInterface and STRUCT type.

Reported by: kAnon Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description

Passing structure by value doesn't work in 64 bit mode.

#AutoIt3Wrapper_UseX64=y
#include <WinAPIMisc.au3>
#include <Array.au3>
#include 'UIAutomate.au3'

test()

Func test()
        Local $oUIA = _UIA_ObjectCreate()
        Local $tRECT = _WinAPI_CreateRect(10, 10, 40, 40)
        Local $vVariant
        $oUIA.RectToVariant($tRECT, $vVariant)
        _ArrayDisplay($vVariant)
EndFunc   ;==>test

Declaring this method in 'UI Constants.au3'

; ***
"RectToVariant hresult(struct;variant*);" & _
; ***

Declaring this method in <UIAutomationClient.h>

virtual HRESULT STDMETHODCALLTYPE RectToVariant( 
    /* [in] */ RECT rc,
    /* [retval][out] */ __RPC__out VARIANT *var) = 0;

Windows 10 Pro 21H1 x64
AutoIt Version: 3.3.14.5 / 3.3.15.4
Exit code: 0xC0000005


UIAutomate.au3
UIAConstants.au3

Attachments (0)

Change History (0)

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.