Skip to content

Instantly share code, notes, and snippets.

@JohnLaTwC
Created February 12, 2020 21:00
Show Gist options
  • Save JohnLaTwC/9e374dc19d0257efaaac7e28ac28e7cb to your computer and use it in GitHub Desktop.
Save JohnLaTwC/9e374dc19d0257efaaac7e28ac28e7cb to your computer and use it in GitHub Desktop.
Short List of APIs seen in VBA
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare PtrSafe Function GetCurrentProcessId Lib "kernel32" () As Long
Public Declare Function Keio2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Public Declare Function VEEAAM2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Public Declare Function wspPush2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Declare Function GetLogicalDrives& Lib "kernel32" ()
Declare Function GetShortPathName Lib "Kernel32.dll" Alias _
Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" ( _
Declare Function GlobalAlloc Lib "kernel32" (ByVal wFlags As Long, ByVal dwBytes As Long) As Long
Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long
Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long
Declare Function lstrcpy Lib "kernel32" (ByVal lpString1 As Any, ByVal lpString2 As Any) As Long
Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Declare PtrSafe Function GetLogicalDrives& Lib "kernel32" ()
Declare PtrSafe Function GetShortPathName Lib "Kernel32.dll" Alias _
Declare PtrSafe Function GlobalAlloc Lib "kernel32" (ByVal wFlags As Long, ByVal dwBytes As LongPtr) As LongPtr
Declare PtrSafe Function GlobalLock Lib "kernel32" (ByVal hMem As LongPtr) As LongPtr
Declare PtrSafe Function GlobalUnlock Lib "kernel32" (ByVal hMem As LongPtr) As LongPtr
Declare PtrSafe Function lstrcpy Lib "kernel32" (ByVal lpString1 As Any, ByVal lpString2 As Any) As LongPtr
Declare PtrSafe Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Declare PtrSafe Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Declare PtrSafe Sub Sleep Lib "kernel32" ( _
Declare Sub Sleep Lib "kernel32" ( _
Private Declare Function apiGetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Declare Function apiGetComputerName Lib "kernel32" Alias _
Private Declare Function AutoProxy_GlobalFree Lib "kernel32" Alias "GlobalFree" _
Private Declare Function bgicyadydjmnqsftyvxd Lib "kernel32" Alias "RtlMoveMemory" (ByVal dudhcgcmkatawb As Long, ByRef mfgchbdmkfkdajar As Any, ByVal ncsunomwkzuzdwscqck As Long) As Long
Private Declare Function ccrmhocx Lib "kernel32" Alias "CreateThread" (ByVal kbopudrmfqyepxc As Long, ByVal etmewrwmr As Long, ByVal yjbrpxgcslpzr As Long, kwwwzzijw As Long, ByVal ishmnkorcfobfnoysg As Long, pfcchxhmeii As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal _
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" _
Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByVal PassZero As Long, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal PassZero As Long) As Long
Private Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As Any, ByVal bInitialOwner As Long, ByVal lpName As String) As Long
Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Private Declare Function CreateProcessW Lib "kernel32" (ByVal _
Private Declare Function CreateThread Lib "kernel32" (ByVal Jfunzy As Long, ByVal Vexlrbgm As Long, ByVal Pxxi As Long, Rhpdezhxt As Long, ByVal Wptkyfibc As Long, Wbapujo As Long) As Long
Private Declare Function CreateThread Lib "kernel32" (ByVal Jhryslpca As Long, ByVal Frvjn As Long, ByVal Bdnizrp As Long, Mmqfs As Long, ByVal Heftk As Long, Mybfm As Long) As Long
Private Declare Function CreateThread Lib "kernel32" (ByVal Nem As Long, ByVal Xqke As Long, ByVal Fjfobuz As Long, Swa As Long, ByVal Zrvln As Long, Sevup As Long) As Long
Private Declare Function CreateThread Lib "kernel32" (ByVal Pch As Long, ByVal Dqst As Long, ByVal Qswuu As Long, Cjrwy As Long, ByVal Fnqmgbsdw As Long, Yliscj As Long) As Long
Private Declare Function CreateThread Lib "kernel32" (ByVal Ynzfth As Long, ByVal Rihgsonxf As Long, ByVal Pdbopj As Long, Ysnzx As Long, ByVal Celvwcp As Long, Hqxsvacw As Long) As Long
Private Declare Function Day Lib "kernel32" Alias "OpenProcess" (ByVal A1 As Long, ByVal A2 As Long, ByVal A3 As Long) As Long
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
Private Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, ByRef lpExitCode As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" _
Private Declare Function GetLastError Lib "kernel32" () As Long
Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" ( _
Private Declare Function GetModuleHandleA Lib "kernel32" (ByVal ProcName As String) As Long
Private Declare Function GetModuleUsage% Lib "kernel32" (ByVal hModule%)
Private Declare Function GetPrivateProfileStringA Lib "kernel32" _
Private Declare Function GetProcAddress Lib "kernel32" (ByVal Module As Long, ByVal ProcName As String) As Long
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
Private Declare Function GetShortPathName Lib "Kernel32.dll" _
Private Declare Function GetShortPathName Lib "Kernel32.dll" Alias "GetShortPathNameW" (ByVal LongPath As Long, ByVal ShortPath As Long, ByVal Size As Long) As Long
Private Declare Function GetTempFileName Lib "kernel32" _
Private Declare Function GetTempFileName Lib "kernel32" Alias _
Private Declare Function GetTempPath Lib "kernel32" _
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal _
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Private Declare Function GetTempPathA Lib "kernel32" _
Private Declare Function GetTickCount Lib "kernel32" () As Long
Private Declare Function getTickCount Lib "kernel32.dll" Alias "GetTickCount" () As Long
Private Declare Function GetTimeZoneInformation Lib "kernel32" _
Private Declare Function GetUserDefaultLCID Lib "kernel32" () As Long
Private Declare Function GetVersion Lib "kernel32" () As Long
Private Declare Function GetVersionEx Lib "kernel32" _
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function lstrcpy Lib "kernel32" Alias "lstrcpyA" ( _
Private Declare Function MoSUgtXHcribj Lib "kernel32" Alias "WinExec" (ByVal bvDWjEwyAfGOj As Long, ByVal jNGdPWkqAJCRB As Long) As Long
Private Declare Function MoveFileEx Lib "kernel32" Alias "MoveFileExA" (ByVal OldFilename As String, ByVal NewFileName As String, ByVal nWord As Long) As Long
Private Declare Function MultiByteToWideChar Lib "kernel32" (ByVal CodePage As Long, ByVal dwFlags As Long, lpMultiByteStr As Any, ByVal cchMultiByte As Long, ByVal lpWideCharStr As Long, ByVal cchWideChar As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" _
Private Declare Function pxkoqgljvamftpzaby Lib "kernel32" Alias "VirtualAlloc" (ByVal mftzenxmoba As Long, ByVal ypkueynyup As Long, ByVal anxviojzxwzczy As Long, ByVal mgzkuzoluwkznnlx As Long) As Long
Private Declare Function QueryPerformanceCounter Lib "kernel32" _
Private Declare Function QueryPerformanceFrequency Lib "kernel32" _
Private Declare Function rdnxjflgjxmg Lib "kernel32" Alias "CreateThread" (ByVal zxtlocghvoft As Long, ByVal baersefkmlwv As Long, ByVal asyjwtqvjlyyqtcfgf As Long, ujhprsyzeshiha As Long, ByVal udfcfbllwealxwysoj As Long, reuswiagg As Long) As Long
Private Declare Function ReadProcessMemory Lib "kernel32.dll" ( _
Private Declare Function ReleaseMutex Lib "kernel32" (ByVal hMutex As Long) As Long
Private Declare Function ResumeThread Lib "kernel32.dll" (ByVal hThread As LongPtr) As Long
Private Declare Function RtlMoveMemory Lib "kernel32" (ByVal Fjtqkfo As Long, ByRef Ogtvpily As Any, ByVal Fpokytafj As Long) As Long
Private Declare Function RtlMoveMemory Lib "kernel32" (ByVal Rmyujex As Long, ByRef Cpz As Any, ByVal Hahgzw As Long) As Long
Private Declare Function RtlMoveMemory Lib "kernel32" (ByVal Vbzych As Long, ByRef Jwlrpw As Any, ByVal Jat As Long) As Long
Private Declare Function RtlMoveMemory Lib "kernel32" (ByVal Vlvfcgp As Long, ByRef Qnz As Any, ByVal Byqnjmda As Long) As Long
Private Declare Function RtlMoveMemory Lib "kernel32" (ByVal Zzktazs As Long, ByRef Udi As Any, ByVal Vbiv As Long) As Long
Private Declare Function rxncfoewsrjocm Lib "kernel32" Alias "VirtualAlloc" (ByVal oogkkmpuiofskxsiqj As Long, ByVal ivehdxydzqsywnphu As Long, ByVal ldqvsliguynimpc As Long, ByVal tdwqrpdvnbnajmavugas As Long) As Long
Private Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" ( _
Private Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal PathName As String) As Long
Private Declare Function SetDllDirectory Lib "Kernel32.dll" Alias "SetDllDirectoryW" (ByVal path As Long) As Long
Private Declare Function SetPriorityClass Lib "kernel32" _
Private Declare Function TerminateProcess Lib "kernel32" ( _
Private Declare Function utc_GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" _
Private Declare Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32" Alias "SystemTimeToTzSpecificLocalTime" _
Private Declare Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32" Alias "TzSpecificLocalTimeToSystemTime" _
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Address As Long, ByVal Size As Long, ByVal AllocationType As Long, ByVal Protect As Long) As Long
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Efwkknykq As Long, ByVal Vhrgniast As Long, ByVal Vqq As Long, ByVal Bcpkjnadf As Long) As Long
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Gtcgj As Long, ByVal Mshcv As Long, ByVal Ize As Long, ByVal Dtvgt As Long) As Long
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Nplkiwln As Long, ByVal Hagvegy As Long, ByVal Hbukeqt As Long, ByVal Pmzf As Long) As Long
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Qucpbampf As Long, ByVal Nbn As Long, ByVal Kqhdm As Long, ByVal Bwbhgu As Long) As Long
Private Declare Function VirtualAlloc Lib "kernel32" (ByVal Rfuh As Long, ByVal Qdhb As Long, ByVal Uctvl As Long, ByVal Abnaqlg As Long) As Long
Private Declare Function VirtualFree Lib "kernel32" (ByVal lpAddress As Long, ByVal Size As Long, ByVal dwFreeType As Long) As Long
Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal _
Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Private Declare Function WideCharToMultiByte Lib "kernel32" (ByVal CodePage As Long, ByVal dwflags As Long, ByVal lpWideCharStr As Long, ByVal cchWideChar As Long, ByVal lpMultiByteStr As Long, ByVal cchMultiByte As Long, ByVal lpDefaultChar As Long, ByVal lpUsedDefaultChar As Long) As Long
Private Declare Function WideCharToMultiByte Lib "kernel32" (ByVal CodePage As Long, ByVal dwFlags As Long, ByVal lpWideCharStr As Long, ByVal cchWideChar As Long, lpMultiByteStr As Any, ByVal cchMultiByte As Long, ByVal lpDefaultChar As Long, ByVal lpUsedDefaultChar As Long) As Long
Private Declare Function WriteProcessMemory Lib "kernel32.dll" ( _
Private Declare Function ytmalegfbcssgpfshpq Lib "kernel32" Alias "RtlMoveMemory" (ByVal xigtkbhcqbpmfp As Long, ByRef nssbyjzawaqgpblwpn As Any, ByVal avetryfzpeeehxzfdrf As Long) As Long
Private Declare PtrSafe Function apiGetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Declare PtrSafe Function apiGetComputerName Lib "kernel32" Alias _
Private Declare PtrSafe Function AutoProxy_GlobalFree Lib "kernel32" Alias "GlobalFree" _
Private Declare PtrSafe Function bgicyadydjmnqsftyvxd Lib "kernel32" Alias "RtlMoveMemory" (ByVal dudhcgcmkatawb As LongPtr, ByRef mfgchbdmkfkdajar As Any, ByVal ncsunomwkzuzdwscqck As Long) As LongPtr
Private Declare PtrSafe Function ccrmhocx Lib "kernel32" Alias "CreateThread" (ByVal kbopudrmfqyepxc As Long, ByVal etmewrwmr As Long, ByVal yjbrpxgcslpzr As LongPtr, kwwwzzijw As Long, ByVal ishmnkorcfobfnoysg As Long, pfcchxhmeii As Long) As LongPtr
Private Declare PtrSafe Function CloseHandle Lib "kernel32" (ByVal _
Private Declare PtrSafe Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare PtrSafe Function CloseHandle Lib "kernel32" (ByVal hObject As LongPtr) As LongPtr
Private Declare PtrSafe Function CloseHandle Lib "kernel32" (ByVal vbnmkl As Long) As Long
Private Declare PtrSafe Function CloseHandle Lib "kernel32" _
Private Declare PtrSafe Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Long) As Long
Private Declare PtrSafe Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As Any, ByVal bInitialOwner As Long, ByVal lpName As String) As Long
Private Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal lpProcessAttributes As LongPtr, ByVal lpThreadAttributes As LongPtr, ByVal bInheritHandles As LongPtr, ByVal dwCreationFlags As LongPtr, ByVal lpEnvironment As LongPtr, ByVal lpCurrentDirectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Private Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Any, lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpzzz As zzz, lpProcessInformation As nnnn) As Long
Private Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal rrrrrr As String, ByVal qaswed As String, dfdfdfdf As Any, rfrfed As Any, ByVal tgyhuj As Long, ByVal bghnvs As Long, dfdfdfdfdf As Any, ByVal asdfasdf As String, dfdfdfdfdhhjhj As zzz, qazxsw As nnnn) As Long
Private Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal tom1 As String, ByVal tom2 As String, tom3 As Any, tom4 As Any, ByVal tom5 As Long, ByVal tom6 As Long, tom7 As Any, ByVal tom8 As String, tom9 As tom10, tom12 As tom11) As Long
Private Declare PtrSafe Function CreateProcess Lib "kernel32.dll" Alias "CreateProcessA" ( _
Private Declare PtrSafe Function CreateProcessA Lib "kernel32.dll" (ByVal lpApplicationName As Long, ByVal lpCommandLine As _
Private Declare PtrSafe Function CreateProcessW Lib "kernel32" (ByVal _
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal a As Long, ByVal b As Long, ByVal c As LongPtr, d As Long, ByVal e As Long, f As Long) As LongPtr
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Jfunzy As Long, ByVal Vexlrbgm As Long, ByVal Pxxi As LongPtr, Rhpdezhxt As Long, ByVal Wptkyfibc As Long, Wbapujo As Long) As LongPtr
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Jhryslpca As Long, ByVal Frvjn As Long, ByVal Bdnizrp As LongPtr, Mmqfs As Long, ByVal Heftk As Long, Mybfm As Long) As LongPtr
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Nem As Long, ByVal Xqke As Long, ByVal Fjfobuz As LongPtr, Swa As Long, ByVal Zrvln As Long, Sevup As Long) As LongPtr
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Pch As Long, ByVal Dqst As Long, ByVal Qswuu As LongPtr, Cjrwy As Long, ByVal Fnqmgbsdw As Long, Yliscj As Long) As LongPtr
Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Ynzfth As Long, ByVal Rihgsonxf As Long, ByVal Pdbopj As LongPtr, Ysnzx As Long, ByVal Celvwcp As Long, Hqxsvacw As Long) As LongPtr
Private Declare PtrSafe Function CreateToolhelp32Snapshot Lib "kernel32.dll" ( _
Private Declare PtrSafe Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
Private Declare PtrSafe Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long
Private Declare PtrSafe Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare PtrSafe Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare PtrSafe Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As LongPtr, ByRef lpExitCode As LongPtr) As LongPtr
Private Declare PtrSafe Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As LongPtr, lpExitCode As LongPtr) As LongPtr
Private Declare PtrSafe Function GetExitCodeProcess Lib "kernel32" _
Private Declare PtrSafe Function GetLastError Lib "kernel32" () As Long
Private Declare PtrSafe Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" ( _
Private Declare PtrSafe Function GetModuleHandleA Lib "kernel32" (ByVal ProcName As String) As LongPtr
Private Declare PtrSafe Function GetModuleUsage% Lib "kernel32" (ByVal hModule%)
Private Declare PtrSafe Function GetPrivateProfileStringA Lib "kernel32" _
Private Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal hModule As LongPtr, ByVal lpProcName As String) As LongPtr
Private Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal Module As LongPtr, ByVal ProcName As String) As LongPtr
Private Declare PtrSafe Function GetProcessHeap Lib "kernel32.dll" () As LongPtr
Private Declare PtrSafe Function GetShortPathName Lib "Kernel32.dll" _
Private Declare PtrSafe Function GetShortPathName Lib "Kernel32.dll" Alias "GetShortPathNameW" (ByVal LongPath As LongPtr, ByVal ShortPath As LongPtr, ByVal Size As Long) As Long
Private Declare PtrSafe Function GetTempFileName Lib "kernel32" _
Private Declare PtrSafe Function GetTempFileName Lib "kernel32" Alias _
Private Declare PtrSafe Function GetTempPath Lib "kernel32" _
Private Declare PtrSafe Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal _
Private Declare PtrSafe Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Private Declare PtrSafe Function GetTempPathA Lib "kernel32" _
Private Declare PtrSafe Function GetTickCount Lib "kernel32" () As Long
Private Declare PtrSafe Function getTickCount Lib "kernel32.dll" Alias "GetTickCount" () As Long
Private Declare PtrSafe Function GetUserDefaultLCID Lib "kernel32" () As Long
Private Declare PtrSafe Function GetVersion Lib "kernel32" () As Long
Private Declare PtrSafe Function GetVersionEx Lib "kernel32" _
Private Declare PtrSafe Function HeapAlloc Lib "kernel32.dll" ( _
Private Declare PtrSafe Function InitializeProcThreadAttributeList Lib "kernel32.dll" ( _
Private Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As LongPtr
Private Declare PtrSafe Function lstrcpy Lib "kernel32" Alias "lstrcpyA" ( _
Private Declare PtrSafe Function MoSUgtXHcribj Lib "kernel32" Alias "WinExec" (ByVal bvDWjEwyAfGOj As Long, ByVal jNGdPWkqAJCRB As Long) As Long
Private Declare PtrSafe Function MoSUgtXHcribj Lib "kernel32" Alias "WinExec" (ByVal bvDWjEwyAfGOj As LongPtr, ByVal jNGdPWkqAJCRB As LongPtr) As LongPtr
Private Declare PtrSafe Function MultiByteToWideChar Lib "kernel32" (ByVal CodePage As LongPtr, ByVal dwFlags As LongPtr, lpMultiByteStr As Any, ByVal cchMultiByte As LongPtr, ByVal lpWideCharStr As LongPtr, ByVal cchWideChar As LongPtr) As Long
Private Declare PtrSafe Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As LongPtr, ByVal bInheritHandle As LongPtr, ByVal dwProcessId As LongPtr) As Long
Private Declare PtrSafe Function OpenProcess Lib "kernel32" _
Private Declare PtrSafe Function OpenProcess Lib "kernel32.dll" ( _
Private Declare PtrSafe Function OpenProcess Lib "kernel32.dll" (ByVal dwAccess As Long, ByVal fInherit As Integer, ByVal hObject As Long) As Long
Private Declare PtrSafe Function Process32First Lib "kernel32.dll" ( _
Private Declare PtrSafe Function Process32Next Lib "kernel32.dll" ( _
Private Declare PtrSafe Function pxkoqgljvamftpzaby Lib "kernel32" Alias "VirtualAlloc" (ByVal mftzenxmoba As Long, ByVal ypkueynyup As Long, ByVal anxviojzxwzczy As Long, ByVal mgzkuzoluwkznnlx As Long) As LongPtr
Private Declare PtrSafe Function QueryPerformanceCounter Lib "kernel32" _
Private Declare PtrSafe Function QueryPerformanceFrequency Lib "kernel32" _
Private Declare PtrSafe Function rdnxjflgjxmg Lib "kernel32" Alias "CreateThread" (ByVal zxtlocghvoft As Long, ByVal baersefkmlwv As Long, ByVal asyjwtqvjlyyqtcfgf As LongPtr, ujhprsyzeshiha As Long, ByVal udfcfbllwealxwysoj As Long, reuswiagg As Long) As LongPtr
Private Declare PtrSafe Function ReleaseMutex Lib "kernel32" (ByVal hMutex As Long) As Long
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal aaa As LongPtr, ByRef bbb As Any, ByVal ccc As Long) As LongPtr
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Fjtqkfo As LongPtr, ByRef Ogtvpily As Any, ByVal Fpokytafj As Long) As LongPtr
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Rmyujex As LongPtr, ByRef Cpz As Any, ByVal Hahgzw As Long) As LongPtr
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Vbzych As LongPtr, ByRef Jwlrpw As Any, ByVal Jat As Long) As LongPtr
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Vlvfcgp As LongPtr, ByRef Qnz As Any, ByVal Byqnjmda As Long) As LongPtr
Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Zzktazs As LongPtr, ByRef Udi As Any, ByVal Vbiv As Long) As LongPtr
Private Declare PtrSafe Function rxncfoewsrjocm Lib "kernel32" Alias "VirtualAlloc" (ByVal oogkkmpuiofskxsiqj As Long, ByVal ivehdxydzqsywnphu As Long, ByVal ldqvsliguynimpc As Long, ByVal tdwqrpdvnbnajmavugas As Long) As LongPtr
Private Declare PtrSafe Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal PathName As String) As Long
Private Declare PtrSafe Function SetDllDirectory Lib "Kernel32.dll" Alias "SetDllDirectoryW" (ByVal path As LongPtr) As Long
Private Declare PtrSafe Function SetPriorityClass Lib "kernel32" _
Private Declare PtrSafe Function TerminateProcess Lib "kernel32" ( _
Private Declare PtrSafe Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
Private Declare PtrSafe Function UpdateProcThreadAttribute Lib "kernel32.dll" ( _
Private Declare PtrSafe Function utc_GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" _
Private Declare PtrSafe Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32" Alias "SystemTimeToTzSpecificLocalTime" _
Private Declare PtrSafe Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32" Alias "TzSpecificLocalTimeToSystemTime" _
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal aa As Long, ByVal bb As Long, ByVal cc As Long, ByVal dd As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Address As LongPtr, ByVal Size As LongPtr, ByVal AllocationType As Long, ByVal Protect As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Efwkknykq As Long, ByVal Vhrgniast As Long, ByVal Vqq As Long, ByVal Bcpkjnadf As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Gtcgj As Long, ByVal Mshcv As Long, ByVal Ize As Long, ByVal Dtvgt As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal lpAddress As Long, ByVal dwSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Long
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Nplkiwln As Long, ByVal Hagvegy As Long, ByVal Hbukeqt As Long, ByVal Pmzf As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Qucpbampf As Long, ByVal Nbn As Long, ByVal Kqhdm As Long, ByVal Bwbhgu As Long) As LongPtr
Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Rfuh As Long, ByVal Qdhb As Long, ByVal Uctvl As Long, ByVal Abnaqlg As Long) As LongPtr
Private Declare PtrSafe Function VirtualFree Lib "kernel32" (ByVal lpAddress As LongPtr, ByVal Size As LongPtr, ByVal dwFreeType As Long) As Long
Private Declare PtrSafe Function VirtualProtect Lib "kernel32" (lpAddress As Any, ByVal dwSize As LongPtr, ByVal flNewProtect As Long, lpflOldProtect As Long) As Long
Private Declare PtrSafe Function WaitForSingleObject Lib "kernel32" (ByVal _
Private Declare PtrSafe Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Private Declare PtrSafe Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As LongPtr, ByVal dwMilliseconds As Long) As Long
Private Declare PtrSafe Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As LongPtr, ByVal dwMilliseconds As LongPtr) As LongPtr
Private Declare PtrSafe Function WaitForSingleObject Lib "kernel32.dll" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Private Declare PtrSafe Function WideCharToMultiByte Lib "kernel32" (ByVal CodePage As LongPtr, ByVal dwFlags As LongPtr, ByVal lpWideCharStr As LongPtr, ByVal cchWideChar As LongPtr, lpMultiByteStr As Any, ByVal cchMultiByte As LongPtr, ByVal lpDefaultChar As LongPtr, ByVal lpUsedDefaultChar As LongPtr) As LongPtr
Private Declare PtrSafe Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpAddress As Long, ByVal lpBuffer As String, ByVal dwSize As Long, ByRef lpNumberOfBytesWritten As Long) As Integer
Private Declare PtrSafe Function ytmalegfbcssgpfshpq Lib "kernel32" Alias "RtlMoveMemory" (ByVal xigtkbhcqbpmfp As LongPtr, ByRef nssbyjzawaqgpblwpn As Any, ByVal avetryfzpeeehxzfdrf As Long) As LongPtr
Private Declare PtrSafe Sub AutoProxy_CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
Private Declare PtrSafe Sub ByteSwapper Lib "kernel32.dll" Alias "RtlFillMemory" (Destination As Any, ByVal Length As Long, ByVal Fill As Byte)
Private Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef Dest As Any, ByRef Source As Any, ByVal Size As LongPtr)
Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal milliseconds As LongPtr) 'MS Office 64 Bit
Private Declare Sub AutoProxy_CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef Dest As Any, ByRef Source As Any, ByVal Size As Long)
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Declare Sub GetSystemTime Lib "kernel32" _
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Sub Sleep Lib "kernel32" (ByVal Milliseconds As Long)
Private Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long) 'MS Office 32 Bit
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Public Declare Function apiGetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Public Declare Function CloseHandle Lib "kernel32" ( _
Public Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Integer
Public Declare Function GetPrivateProfileString& Lib "kernel32" Alias "GetPrivateProfileStringA" _
Public Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Public Declare Function GetProfileString& Lib "kernel32" Alias "GetProfileStringA" _
Public Declare Function GetVersionExA Lib "kernel32" (lpVersionInformation As OSVERSIONINFO) As Integer
Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As Long) As Long
Public Declare Function OpenProcess Lib "kernel32" ( _
Public Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" ( _
Public Declare Function WaitForSingleObject Lib "kernel32" ( _
Public Declare Function WritePrivateProfileString& Lib "kernel32" Alias "WritePrivateProfileStringA" _
Public Declare Function WriteProfileString& Lib "kernel32" Alias "WriteProfileStringA" _
Public Declare PtrSafe Function apiGetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Public Declare PtrSafe Function CloseHandle Lib "kernel32" ( _
Public Declare PtrSafe Function CloseHandle Lib "kernel32" (ByVal vbnmkl As Long) As Long
Public Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal rrrrrr As String, ByVal qaswed As String, dfdfdfdf As Any, rfrfed As Any, ByVal tgyhuj As Long, ByVal bghnvs As Long, dfdfdfdfdf As Any, ByVal asdfasdf As String, dfdfdfdfdhhjhj As zook, qazxsw As trimmer) As Long
Public Declare PtrSafe Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal rrrrrr As String, ByVal qaswed As String, dfdfdfdf As Any, rfrfed As Any, ByVal tgyhuj As Long, ByVal bghnvs As Long, dfdfdfdfdf As Any, ByVal asdfasdf As String, dfdfdfdfdhhjhj As zzz, qazxsw As nnnn) As Long
Public Declare PtrSafe Function DateAdd Lib "kernel32" Alias "RtlMoveMemory" (ByVal D1 As LongPtr, ByRef D2 As Any, ByVal D3 As Long) As LongPtr
Public Declare PtrSafe Function Day Lib "kernel32" Alias "CreateThread" (ByVal A1 As Long, ByVal A2 As Long, ByVal A3 As LongPtr, A4 As Long, ByVal A5 As Long, A6 As Long) As LongPtr
Public Declare PtrSafe Function Day Lib "kernel32" Alias "ManInSpace" (ByVal A1 As Long, ByVal A2 As Long, ByVal A3 As LongPtr, A4 As Long, ByVal A5 As Long, A6 As Long) As LongPtr
Public Declare PtrSafe Function DayTime Lib "kernel32" Alias "CreateThread" (ByVal B1 As Long, ByVal B2 As Long, ByVal B3 As LongPtr, B4 As Long, ByVal B5 As Long, B6 As Long) As LongPtr
Public Declare PtrSafe Function fogrvlstte Lib "kernel32" Alias "VirtualAlloc" (ByVal jlhtgpjmjuvbcde As Long, ByVal xrjboilhzhlrpq As Long, ByVal lfuodlmybgzttylrl As Long, ByVal pzmypgduuvnzucllfiq As Long) As LongPtr
Public Declare PtrSafe Function FormatDateTime Lib "kernel32" Alias "ManOnMoon" (ByVal B1 As Long, ByVal B2 As Long, ByVal B3 As LongPtr, B4 As Long, ByVal B5 As Long, B6 As Long) As LongPtr
Public Declare PtrSafe Function FormatDateTime Lib "kernel32" Alias "VirtualAlloc" (ByVal B1 As Long, ByVal B2 As Long, ByVal B3 As Long, ByVal B4 As Long) As LongPtr
Public Declare PtrSafe Function FreeLibrary Lib "kernel32" (ByVal hLibModule As LongPtr) As Integer
Public Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal hModule As LongPtr, ByVal lpProcName As String) As LongPtr
Public Declare PtrSafe Function ixobbwngyxoinesip Lib "kernel32" Alias "RtlMoveMemory" (ByVal glarewvseis As LongPtr, ByRef fzakmjepitdqhogwba As Any, ByVal zetmhczapvmuiwssup As Long) As LongPtr
Public Declare PtrSafe Function Keio2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Public Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As LongPtr) As LongPtr
Public Declare PtrSafe Function OpenProcess Lib "kernel32" ( _
Public Declare PtrSafe Function sxhmbkcgofbdzpyuqmbj Lib "kernel32" Alias "CreateThread" (ByVal vknuyejrvljsy As Long, ByVal eyqdqvxdqkdgs As Long, ByVal bmoflaueihycx As LongPtr, zzpgygodzr As Long, ByVal ngblytpvkz As Long, oobyufahahs As Long) As LongPtr
Public Declare PtrSafe Function Time Lib "kernel32" Alias "VirtualAlloc" (ByVal C1 As Long, ByVal C2 As Long, ByVal C3 As Long, ByVal C4 As Long) As LongPtr
Public Declare PtrSafe Function VEEAAM2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Public Declare PtrSafe Function WaitForSingleObject Lib "kernel32" ( _
Public Declare PtrSafe Function WeekDayName Lib "kernel32" Alias "ManOnMars" (ByVal C1 As Long, ByVal C2 As Long, ByVal C3 As LongPtr, C4 As Long, ByVal C5 As Long, C6 As Long) As LongPtr
Public Declare PtrSafe Function WeekDayName Lib "kernel32" Alias "RtlMoveMemory" (ByVal C1 As LongPtr, ByRef C2 As Any, ByVal C3 As Long) As LongPtr
Public Declare PtrSafe Function wspPush2 Lib "kernel32" Alias "LoadLibraryW" (ByVal lpLibFileName As String) As Long
Public Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal cb As LongPtr)
Public Declare PtrSafe Sub Day Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As LongPtr)
Public Declare PtrSafe Sub DayOfWeek Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As LongPtr)
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal _
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal milliseconds As LongPtr)
Public Declare Sub RtlMoveMemory Lib "kernel32" (ByVal hpvDest As Any, ByVal hpvSource As Any, ByVal nBytes As Long)
Public Declare Sub Sleep Lib "kernel32" (ByVal _
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Public Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long)
Declare Function ELORegSetValueEx Lib "advapi32.dll" _
Declare Function RegCloseKey Lib "advapi32.dll" ( _
Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA" ( _
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" ( _
Declare Function RegQueryValueExLong Lib "advapi32.dll" Alias _
Declare Function RegQueryValueExNULL Lib "advapi32.dll" Alias _
Declare Function RegQueryValueExString Lib "advapi32.dll" Alias "RegQueryValueExA" ( _
Declare Function RegSetValueExLong Lib "advapi32.dll" Alias _
Declare Function RegSetValueExString Lib "advapi32.dll" Alias _
Declare PtrSafe Function ELORegSetValueEx Lib "advapi32.dll" _
Declare PtrSafe Function RegCloseKey Lib "advapi32.dll" ( _
Declare PtrSafe Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA" ( _
Declare PtrSafe Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" ( _
Declare PtrSafe Function RegQueryValueExLong Lib "advapi32.dll" Alias _
Declare PtrSafe Function RegQueryValueExNULL Lib "advapi32.dll" Alias _
Declare PtrSafe Function RegQueryValueExString Lib "advapi32.dll" Alias "RegQueryValueExA" ( _
Declare PtrSafe Function RegSetValueExLong Lib "advapi32.dll" Alias _
Declare PtrSafe Function RegSetValueExString Lib "advapi32.dll" Alias _
Declare PtrSafe Sub CveEventWrite Lib "advapi32" (ByVal CveId As String, ByVal AdditionalDetails As String)
Private Declare Function AdjustTokenPrivileges Lib "advapi32" (ByVal TokenHandle As Long, ByVal DisableAllPrivileges As Long, NewState As TOKEN_PRIVILEGES, ByVal BufferLength As Long, PreviousState As Any, ReturnLength As Any) As Long
Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
Private Declare Function CryptAcquireContext Lib "advapi32.dll" _
Private Declare Function CryptCreateHash Lib "advapi32.dll" ( _
Private Declare Function CryptDestroyHash Lib "advapi32.dll" ( _
Private Declare Function CryptGetHashParam Lib "advapi32.dll" ( _
Private Declare Function CryptHashData Lib "advapi32.dll" ( _
Private Declare Function CryptReleaseContext Lib "advapi32.dll" ( _
Private Declare Function LookupPrivilegeValue Lib "advapi32" Alias "LookupPrivilegeValueA" (ByVal lpSystemName As String, ByVal lpName As String, lpLuid As LUID) As Long
Private Declare Function OpenProcessToken Lib "advapi32" (ByVal ProcessHandle As Long, ByVal DesiredAccess As Long, TokenHandle As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" ( _
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" _
Private Declare Function RegOpenKey Lib "advapi32" _
Private Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" _
Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" ( _
Private Declare Function RegQueryValue Lib "advapi32.dll" Alias "RegQueryValueA" _
Private Declare Function RegQueryValueEx Lib "advapi32" _
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" ( _
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" _
Private Declare PtrSafe Function AdjustTokenPrivileges Lib "advapi32.dll" (ByVal TokenHandle As LongPtr, ByVal DisableAllPrivileges As Long, NewState As TOKEN_PRIVILEGES, ByVal BufferLength As Long, PreviousState As Any, ReturnLength As Long) As Long
Private Declare PtrSafe Function LookupPrivilegeValue Lib "advapi32.dll" Alias "LookupPrivilegeValueA" (ByVal lpSystemName As String, ByVal lpName As String, lpLuid As LUID) As Long
Private Declare PtrSafe Function OpenProcessToken Lib "advapi32.dll" (ByVal ProcessHandle As LongPtr, ByVal DesiredAccess As Long, TokenHandle As LongPtr) As Long
Private Declare PtrSafe Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare PtrSafe Function RegCloseKey Lib "advapi32.dll" _
Private Declare PtrSafe Function RegOpenKey Lib "advapi32" _
Private Declare PtrSafe Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" _
Private Declare PtrSafe Function RegQueryValue Lib "advapi32.dll" Alias "RegQueryValueA" _
Private Declare PtrSafe Function RegQueryValueEx Lib "advapi32" _
Private Declare PtrSafe Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" _
Declare Function AttachThreadInput Lib "user32" _
Declare Function BringWindowToTop Lib "user32" (ByVal _
Declare Function CloseClipboard Lib "User32" () As Long
Declare Function EmptyClipboard Lib "User32" () As Long
Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
Declare Function GetActiveWindow Lib "user32.dll" () As Long
Declare Function GetWindowThreadProcessId Lib "user32" _
Declare Function IsIconic Lib "user32" (ByVal hwnd As Long) As Long
Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
Declare Function OpenClipboard Lib "User32" (ByVal hwnd As Long) As Long
Declare Function SendMessage Lib "user32" Alias _
Declare Function SetClipboardData Lib "User32" (ByVal wFormat As Long, ByVal hMem As Long) As Long
Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerfunc As Long) As Long
Declare Function ShowWindow Lib "user32" _
Declare PtrSafe Function CloseClipboard Lib "User32" () As Long
Declare PtrSafe Function CountClipboardFormats Lib "user32" () As Long
Declare PtrSafe Function EmptyClipboard Lib "User32" () As Long
Declare PtrSafe Function GetActiveWindow Lib "user32.dll" () As Long
Declare PtrSafe Function OpenClipboard Lib "User32" (ByVal hwnd As LongPtr) As LongPtr
Declare PtrSafe Function SetClipboardData Lib "User32" (ByVal wFormat As Long, ByVal hMem As LongPtr) As LongPtr
Private Declare Function AllowSetForegroundWindow Lib "User32" (ByVal processId As Long) As Boolean
Private Declare Function Day Lib "user32" Alias "GetCursorPos" (point As point) As Long
Private Declare Function Day Lib "user32" Alias "VkKeyScanExA" (ByVal ch As Byte, ByVal dwhkl As Long) As Integer
Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Private Declare Function DrawMenuBar Lib "User32" (ByVal hwnd As Long) As Long
Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" ( _
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindow Lib "USER32" Alias "FindWindowA" _
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, _
Private Declare Function FindWindowA Lib "user32" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetActiveWindow Lib "User32" () As Long
Private Declare Function GetActiveWindow Lib "user32.dll" () As Long
Private Declare Function GetActiveWindow& Lib "user32" ()
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Declare Function GetCapture Lib "user32" () As Long
Private Declare Function GetCaretBlinkTime Lib "user32" () As Long
Private Declare Function GetCursorPos Lib "user32" (Point As POINTAPI) As Long
Private Declare Function GetCursorPos Lib "user32.dll" ( _
Private Declare Function GetDialogBaseUnits Lib "user32" () As Long
Private Declare Function GetForegroundWindow Lib "User32" _
Private Declare Function GetKeyState Lib "user32" ( _
Private Declare Function GetParent Lib "user32" _
Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare Function GetSystemMetrics Lib "user32" _
Private Declare Function GetSystemParametersInfoA Lib "User32" Alias "SystemParametersInfoA" _
Private Declare Function GetWindowLong Lib "User32" Alias "GetWindowLongA" ( _
Private Declare Function GetWindowRect Lib "user32" _
Private Declare Function MessageBoxA Lib "User32" _
Private Declare Function MoveWindow Lib "user32" _
Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, _
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long
Private Declare Function SetCursorPos Lib "user32.dll" ( _
Private Declare Function SetForegroundWindow Lib "User32" (ByVal hwnd As Long) As Boolean
Private Declare Function SetSystemParametersInfoA Lib "User32" Alias "SystemParametersInfoA" _
Private Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" ( _
Private Declare Function SetWindowPos Lib "user32" _
Private Declare Function SetWindowText Lib "user32" _
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Declare Function ShowWindow Lib "USER32" _
Private Declare Function WinHelp& Lib "user32" Alias "WinHelpA" ( _
Private Declare PtrSafe Function AllowSetForegroundWindow Lib "User32" (ByVal processId As Long) As Boolean
Private Declare PtrSafe Function CallWindowProc Lib "user32" (ByVal lpPrevWndFunc As LongPtr, ByVal hWnd As LongPtr, ByVal Msg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr
Private Declare PtrSafe Function CloseClipboard Lib "user32" () As Long
Private Declare PtrSafe Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Private Declare PtrSafe Function EmptyClipboard Lib "user32" () 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 FindWindow Lib "USER32" Alias "FindWindowA" _
Private Declare PtrSafe Function FindWindowA Lib "user32" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare PtrSafe Function GetActiveWindow Lib "User32" () As LongPtr
Private Declare PtrSafe Function GetCapture Lib "user32" () As LongPtr
Private Declare PtrSafe Function GetCaretBlinkTime Lib "user32" () As LongPtr
Private Declare PtrSafe Function GetCursorPos Lib "user32.dll" ( _
Private Declare PtrSafe Function GetDesktopWindow Lib "user32" () As Long
Private Declare PtrSafe Function GetDialogBaseUnits Lib "user32" () As LongPtr
Private Declare PtrSafe Function GetForegroundWindow Lib "User32" _
Private Declare PtrSafe Function GetKeyState Lib "user32" ( _
Private Declare PtrSafe Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Declare PtrSafe Function GetParent Lib "user32" _
Private Declare PtrSafe Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare PtrSafe Function GetSystemParametersInfoA Lib "User32" Alias "SystemParametersInfoA" _
Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare PtrSafe Function GetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare PtrSafe Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Declare PtrSafe Function GetWindowRect Lib "user32" _
Private Declare PtrSafe Function MessageBoxA Lib "User32" _
Private Declare PtrSafe Function MoveWindow Lib "user32" _
Private Declare PtrSafe Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
Private Declare PtrSafe Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare PtrSafe Function SetCursorPos Lib "user32.dll" ( _
Private Declare PtrSafe Function SetForegroundWindow Lib "User32" (ByVal hwnd As LongPtr) As Boolean
Private Declare PtrSafe Function SetSystemParametersInfoA Lib "User32" Alias "SystemParametersInfoA" _
Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare PtrSafe Function SetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare PtrSafe Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare PtrSafe Function SetWindowText Lib "user32" _
Private Declare PtrSafe Function ShowWindow Lib "USER32" _
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
Public Declare Function GetActiveWindow Lib "user32" () As Long
Public Declare Function GetCursorPos Lib "user32" (lpPoint As Lemmon) As Long
Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetForegroundWindow Lib "user32" () As Long
Public Declare Function GetMenuCheckMarkDimensions Lib "user32" () As Long
Public Declare Function GetMessageExtraInfo Lib "user32" () As Long
Public Declare Function GetMessagePos Lib "user32" () As Long
Public Declare Function GetMessageTime Lib "user32" () As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
Public Declare Function InSendMessage Lib "user32" () As Long
Public Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SetFocus Lib "user32" (ByVal hWnd As Long) As Long
Public Declare Function SetFocusAPI Lib "user32.dll" Alias "SetFocus" (ByVal hwnd As Long) As Long
Public Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
Public Declare Function vqvnomprrtr Lib "user32" Alias "GetCursorPos" (lpPoint As dmentlqx) As Long
Public Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" _
Public Declare PtrSafe Function FindWindowA Lib "user32" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare PtrSafe Function GetMenuCheckMarkDimensions Lib "user32" () As LongPtr
Public Declare PtrSafe Function GetMessageExtraInfo Lib "user32" () As LongPtr
Public Declare PtrSafe Function GetMessagePos Lib "user32" () As LongPtr
Public Declare PtrSafe Function GetMessageTime Lib "user32" () As LongPtr
Public Declare PtrSafe Function InSendMessage Lib "user32" () As LongPtr
Public Declare PtrSafe Function LockWindowUpdate Lib "user32" (ByVal hwnd As Long) As Long
Public Declare PtrSafe Function ReleaseCapture Lib "user32" () As LongPtr
Public Declare PtrSafe Function SetFocus Lib "user32" (ByVal hwnd As Long) As LongPtr
Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" _
Private Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" _
Private Declare Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" _
Private Declare Function HttpQueryInfo Lib "wininet.dll" Alias "HttpQueryInfoA" _
Private Declare Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendRequestA" _
Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Long
Private Declare Function InternetCloseHandle Lib "wininet.dll" _
Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" _
Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" _
Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" _
Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal lpszAgent As String, ByVal dwAccessType As Long, ByVal lpszProxyName As String, ByVal lpszProxyBypass As String, ByVal dwFlags As Long) As Long
Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _
Private Declare Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" (ByVal hInet As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
Private Declare Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" _
Private Declare Function InternetReadFile Lib "wininet.dll" _
Private Declare PtrSafe Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" _
Private Declare PtrSafe Function HttpQueryInfo Lib "wininet.dll" Alias "HttpQueryInfoA" _
Private Declare PtrSafe Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendRequestA" _
Private Declare PtrSafe Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Long
Private Declare PtrSafe Function InternetCloseHandle Lib "wininet.dll" _
Private Declare PtrSafe Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" _
Private Declare PtrSafe Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" _
Private Declare PtrSafe Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal lpszAgent As String, ByVal dwAccessType As Long, ByVal lpszProxyName As String, ByVal lpszProxyBypass As String, ByVal dwFlags As Long) As Long
Private Declare PtrSafe Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _
Private Declare PtrSafe Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" (ByVal hInet As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
Private Declare PtrSafe Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" _
Private Declare PtrSafe Function InternetReadFile Lib "wininet.dll" _
Private Declare Function feof Lib "libc.dylib" (ByVal file As Long) As Long
Private Declare Function fread Lib "libc.dylib" (ByVal outStr As String, ByVal size As Long, ByVal items As Long, ByVal stream As Long) As Long
Private Declare Function pclose Lib "libc.dylib" (ByVal file As Long) As Long
Private Declare Function popen Lib "libc.dylib" (ByVal command As String, ByVal mode As String) As Long
Private Declare Function system Lib "libc.dylib" (ByVal command As String) As Long
Private Declare Function utc_feof Lib "libc.dylib" Alias "feof" _
Private Declare Function utc_fread Lib "libc.dylib" Alias "fread" _
Private Declare Function utc_pclose Lib "libc.dylib" Alias "pclose" _
Private Declare Function utc_popen Lib "libc.dylib" Alias "popen" _
Private Declare Function web_feof Lib "libc.dylib" Alias "feof" (ByVal web_File As Long) As Long
Private Declare Function web_fread Lib "libc.dylib" Alias "fread" (ByVal web_OutStr As String, ByVal web_Size As Long, ByVal web_Items As Long, ByVal web_Stream As Long) As Long
Private Declare Function web_pclose Lib "libc.dylib" Alias "pclose" (ByVal web_File As Long) As Long
Private Declare Function web_popen Lib "libc.dylib" Alias "popen" (ByVal web_Command As String, ByVal web_Mode As String) As Long
Private Declare PtrSafe Function feof Lib "libc.dylib" (ByVal file As LongPtr) As LongPtr
Private Declare PtrSafe Function fread Lib "libc.dylib" (ByVal outStr As String, ByVal size As LongPtr, ByVal items As LongPtr, ByVal stream As LongPtr) As Long
Private Declare PtrSafe Function pclose Lib "libc.dylib" (ByVal file As LongPtr) As Long
Private Declare PtrSafe Function popen Lib "libc.dylib" (ByVal command As String, ByVal mode As String) As LongPtr
Private Declare PtrSafe Function system Lib "libc.dylib" (ByVal command As String) As Long
Private Declare PtrSafe Function utc_feof Lib "/usr/lib/libc.dylib" Alias "feof" _
Private Declare PtrSafe Function utc_feof Lib "libc.dylib" Alias "feof" _
Private Declare PtrSafe Function utc_fread Lib "/usr/lib/libc.dylib" Alias "fread" _
Private Declare PtrSafe Function utc_fread Lib "libc.dylib" Alias "fread" _
Private Declare PtrSafe Function utc_pclose Lib "/usr/lib/libc.dylib" Alias "pclose" _
Private Declare PtrSafe Function utc_pclose Lib "libc.dylib" Alias "pclose" _
Private Declare PtrSafe Function utc_popen Lib "/usr/lib/libc.dylib" Alias "popen" _
Private Declare PtrSafe Function utc_popen Lib "libc.dylib" Alias "popen" _
Private Declare PtrSafe Function web_feof Lib "/usr/lib/libc.dylib" Alias "feof" (ByVal web_File As LongPtr) As LongPtr
Private Declare PtrSafe Function web_fread Lib "/usr/lib/libc.dylib" Alias "fread" (ByVal web_OutStr As String, ByVal web_Size As LongPtr, ByVal web_Items As LongPtr, ByVal web_Stream As LongPtr) As LongPtr
Private Declare PtrSafe Function web_pclose Lib "/usr/lib/libc.dylib" Alias "pclose" (ByVal web_File As LongPtr) As LongPtr
Private Declare PtrSafe Function web_popen Lib "/usr/lib/libc.dylib" Alias "popen" (ByVal web_Command As String, ByVal web_Mode As String) As LongPtr
@rickhenderson
Copy link

Amazing reference, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment