For the example below:
GetWindowLong - worked x64/x32
GetWindowLongPtr - worked x64/didn't work x32
Am I missing something?
Code: Select all
q:: ;window get style/extended style
WinGet, hWnd, ID, A
;GWL_STYLE := -16 ;GWL_EXSTYLE := -20
;vSfx := (A_PtrSize=8) ? "Ptr" : ""
;vSfx := "Ptr"
vSfx := ""
vWinStyle := DllCall("GetWindowLong" vSfx, Ptr,hWnd, Int,-16)
vWinExStyle := DllCall("GetWindowLong" vSfx, Ptr,hWnd, Int,-20)
MsgBox, % Format("0x{:08X} 0x{:08X}", vWinStyle, vWinExStyle)
return
GetClassLong / GetClassLongPtr
SetClassLong / SetClassLongPtr
GetWindowLong / GetWindowLongPtr
SetWindowLong / SetWindowLongPtr