#If Win64 Then
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Type POINTAPI_AsLongLong
Value As LongLong
End Type
#End If
#If Win64 Then
'----------------------------
'Convert two Long to LongLong
'----------------------------
Function TwoLongToLonLong(x1 As Long, x2 As Long) As LongLong
Dim Pt As POINTAPI
Dim t As POINTAPI_AsLongLong
Pt.X = x1
Pt.Y = x2
LSet t = Pt
'Return value
TwoLongToLonLong = t.Value
End Function
#End If