I have code that includes declarations of 32-bit Microsoft libraries. Some of our users are now just migrating to 64-bit versions of Office and I want the code to work on both. I tried to look around for the 64-bit equivalents of the 32-bit declarations, but no luck. Our code works for those running MS Access 2010 but not MS Access 2013 64-bit.
Any help would be much appreciated. Here are the 32-bit declarations:
Declare Function IsZoomed Lib "user32" (ByVal hwnd As Long) As Long
Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Declare Function AddPrinterConnection Lib "winspool.drv" Alias "AddPrinterConnectionA" (ByVal pName As String) As Long
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)