URGENTE CONVERTER API PARA 64 BITS

ELTONADM

24-10-2018 17:45:19

OLÁ PESSOAL ALGUEM POSSA CONVERTER ESTA API PARA RODAR EM 64 BITS


Private Declare PtrSafe Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As Long

Private Declare PtrSafe Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long

Private Declare PtrSafe Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long


Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long

Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

LaerteB

25-10-2018 12:10:17

ELTONADM escreveu: ↑Qua Out 24, 2018 2:45 pm OLÁ PESSOAL ALGUEM POSSA CONVERTER ESTA API PARA RODAR EM 64 BITS


Private Declare PtrSafe Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As Long

Private Declare PtrSafe Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long ........
Bom dia, ELTONADM.

Abaixo modifiquei as APIs que citou para serem usados em 64 Bits (contudo verificar se estas mudanças funcionarão na sua versão do Office, caso não entre neste link e altere conforme o seu caso - http://inanyplace.blogspot.com/2012/08/ ... s-api.html) :

Código: Selecionar todos

Private Declare PtrSafe Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As LongPtr

Private Declare PtrSafe Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As LongPtr

Private Declare PtrSafe Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As LongPtr


Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPtr

Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As LongPtr

Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPtr
Espero que resolva o seu problema.

Abraços :)
LaerteB