Page 1 of 2

WinApi, DllCalls & AHK

Posted: 24 Oct 2013, 07:52
by jNizM
AutoHotkey, WinAPI & DllCall's

[>>> GitHub AHK, DllCall's & WinAPI <<<]

Clipboard Functions
- CloseClipboard
- EmptyClipboard
- OpenClipboard

Cursor Functions
- GetCursorInfo
- GetCursorPos
- GetPhysicalCursorPos
- SetCursorPos
- SetPhysicalCursorPos

Directory Management Functions
- CreateDirectory
- RemoveDirectory
- SetCurrentDirectory

Disk Management Functions
- GetDiskFreeSpace
- GetDiskFreeSpaceEx

Error Handling Functions
- Beep
- FormatMessage
- GetLastError

File Management Functions
- CopyFile
- DeleteFile
- GetFileAttributes
- GetFileSize
- GetFileSizeEx
- GetTempPath
- MoveFile
- MoveFileEx

IP Helper Functions
- GetIpStatistics
- GetIpStatisticsEx
- GetTcpStatistics
- GetTcpStatisticsEx
- GetUdpStatistics
- GetUdpStatisticsEx

Keyboard Input Functions
- BlockInput
- GetKBCodePage
- GetKeyboardLayout

Memory Management Functions
- GetPhysicallyInstalledSystemMemory
- GlobalMemoryStatusEx

Mouse Input Functions
- ClipCursor
- GetCapture
- GetDoubleClickTime
- ReleaseCapture
- SetDoubleClickTime
- SwapMouseButton

Multimedia Functions
- timeGetTime

National Language Support Functions
- GetDurationFormat

Process and Thread Functions
- GetActiveProcessorCount
- GetActiveProcessorGroupCount
- GetCommandLine
- GetCurrentProcess
- GetCurrentProcessId
- GetCurrentProcessorNumber
- GetCurrentThread
- GetCurrentThreadId
- GetMaximumProcessorCount
- GetMaximumProcessorGroupCount
- GetProcessVersion
- Sleep
- SleepEx

PSAPI Functions
- GetModuleFileNameEx
- GetProcessMemoryInfo

String Functions
- CharLower
- CharLowerBuff
- CharUpper
- CharUpperBuff

System Information Functions
- GetComputerName
- GetProductInfo
- GetSystemDirectory
- GetSystemRegistryQuota
- GetSystemWindowsDirectory
- GetSystemWow64Directory
- GetUserName
- GetUserNameEx
- GetVersion
- GetVersionEx
- GetWindowsDirectory
- QueryPerformanceCounter
- QueryPerformanceFrequency

System Shutdown Functions
- LockWorkStation

Time Functions
- GetLocalTime
- GetSystemTime
- GetTickCount
- GetTickCount64
- SetLocalTime
- SetSystemTime

Volume Management Functions
- GetDriveType

Others
- ZwDelayExecution

AutoHotkey-Doc Links
- DllCall() | Script Compatibility
- VarSetCapacity() | Script Compatibility
- NumPut() | NumGet() | Script Compatibility
- Script Compatibility - Pointer Size

MSDN Links:
- Windows API Index
- Windows Data Types
- Data Type Ranges

Useful Links:
- WinApi_List_of_Functions (by HotKeyIt)
- Windows_Data_Types (translated by just me)
- Tutorial - Low-Level Programmierung (Windows-API) (in german by Bentschi)

- Accessing Windows API (by maul-esel)
- Structures (by maul-esel)
- Windows 8 DLL File Information
- Windows 7 DLL File Information
- Windows XP DLL File Information
- ...tba

Useful Tools:
- PeStudio
- DLL Export Viewer by NirSoft
- GDIView by NirSoft (View GDI handles/resources list and detect GDI leaks)
- DLL UnInjector by novirusthanks
- Handle Tracer by novirusthanks
- Kernel Mode Drivers Manager by novirusthanks
- NPE File Analyzer by novirusthanks
- Ring3 API Hook Scanner by novirusthanks
- WriteProcessMemory Monitor by novirusthanks
- ...tba

Re: WinApi, DllCalls & AHK

Posted: 28 Oct 2013, 02:36
by nnnik
Is this a place to collect many WinAPI functions like the Com obj documentation?

Re: WinApi, DllCalls & AHK

Posted: 26 Nov 2013, 10:12
by jNizM
update:
- now on github
- new links

Re: WinApi, DllCalls & AHK

Posted: 26 Nov 2013, 11:14
by nnnik
I'll add the following types of Memory Managment Functions:
  1. Heap
  2. Vitual
  3. Local
  4. Global

Re: WinApi, DllCalls & AHK

Posted: 27 Nov 2013, 02:58
by jNizM
update:
Add Memory Management Functions \ GlobalMemoryStatusEx
Add System Information Functions \ GetVersion
Add System Information Functions \ GetVersionEx

Re: WinApi, DllCalls & AHK

Posted: 28 Nov 2013, 09:00
by jNizM
update:
Add IP Helper Functions \ GetIpStatistics
Add IP Helper Functions \ GetIpStatisticsEx
Add IP Helper Functions \ GetTcpStatistics
Add IP Helper Functions \ GetTcpStatisticsEx
Add IP Helper Functions \ GetUdpStatistics
Add IP Helper Functions \ GetUdpStatisticsEx

Re: WinApi, DllCalls & AHK

Posted: 28 Nov 2013, 09:58
by nnnik
I pulled a request.

Re: WinApi, DllCalls & AHK

Posted: 01 Dec 2013, 20:41
by joedf
Also, add this into the Tools list: http://www.winitor.com/
the Excellent, absolutely free, PeStudio :)

Re: WinApi, DllCalls & AHK

Posted: 02 Dec 2013, 03:48
by jNizM
update:
Update Others \ ZwDelayExecution
Add Clipboard Functions \ CloseClipboard
Add Clipboard Functions \ EmptyClipboard
Add Clipboard Functions \ OpenClipboard
Add Cursor Functions \ GetCursorInfo
Add Cursor Functions \ GetCursorPos
Add Cursor Functions \ GetPhysicalCursorPos
Add Cursor Functions \ SetCursorPos
Add Cursor Functions \ SetPhysicalCursorPos
Add Process and Thread Functions \ GetCurrentThreadId

@nnnik:
in the next few days

@joedf:
thx and added

Re: WinApi, DllCalls & AHK

Posted: 02 Dec 2013, 08:54
by jNizM
update:
Add Time Functions \ GetLocalTime
Add Time Functions \ GetSystemTime
Add Time Functions \ SetLocalTime
Add Time Functions \ SetSystemTime

Re: WinApi, DllCalls & AHK

Posted: 03 Dec 2013, 02:36
by jNizM
update:
Add Process and Thread Functions \ GetActiveProcessorCount
Add Process and Thread Functions \ GetActiveProcessorGroupCount
Add Process and Thread Functions \ GetCommandLine
Add Process and Thread Functions \ GetCurrentProcess
Add Process and Thread Functions \ GetCurrentProcessorNumber
Add Process and Thread Functions \ GetCurrentThread
Add Process and Thread Functions \ GetMaximumProcessorCount
Add Process and Thread Functions \ GetMaximumProcessorGroupCount
Add Process and Thread Functions \ GetProcessVersion
Add PSAPI Functions \ GetProcessMemoryInfo

Re: WinApi, DllCalls & AHK

Posted: 03 Dec 2013, 08:46
by jNizM
update:
Add Error Handling Functions \ Beep
Add File Management Functions \ CopyFile
Add File Management Functions \ MoveFile
Add File Management Functions \ MoveFileEx

Re: WinApi, DllCalls & AHK

Posted: 03 Dec 2013, 08:59
by SKAN
jNizM wrote:update:
Add Error Handling Functions \ Beep
You need to fix the following link
https://github.com/jNizM/AHK_DllCall_Wi ... /src/Error%20Handling%20Functions/Beep.ahk
BTW, that would not work in desired manner in OS greater than Win XP.

Re: WinApi, DllCalls & AHK

Posted: 04 Dec 2013, 02:11
by jNizM
Link fixed.. thx SKAN
I know. Windows7 used the sound card for beep.

Re: WinApi, DllCalls & AHK

Posted: 04 Dec 2013, 04:23
by SKAN
jNizM wrote:I know. Windows7 used the sound card for beep.
Thought so. :)

BTW, I replaced "C:\Windows\System32\drivers\beep.sys" Win7 x86 with a borrowed beep.sys from WinXP-SP3 x86 and I am
*Beeping* happy now!
Ofcourse, Win 7 would not let me replace any driver unless I Take Ownership of it.

Re: WinApi, DllCalls & AHK

Posted: 04 Dec 2013, 05:09
by jNizM
And for Windows 7 x64?

Re: WinApi, DllCalls & AHK

Posted: 04 Dec 2013, 05:19
by SKAN
jNizM wrote:And for Windows 7 x64?
It is the same procedure except the beep.sys has to be from XP-SP3 x64 and the driver location will be different, I believe.

Re: WinApi, DllCalls & AHK

Posted: 09 Dec 2013, 03:37
by jNizM
update:
Add Keyboard Input Functions \ BlockInput
Add Keyboard Input Functions \ GetKBCodePage
Add Keyboard Input Functions \ GetKeyboardLayout
Add Mouse Input Functions \ GetCapture
Add Mouse Input Functions \ GetDoubleClickTime
Add Mouse Input Functions \ ReleaseCapture
Add Mouse Input Functions \ SetDoubleClickTime
Add Mouse Input Functions \ SwapMouseButton

Re: WinApi, DllCalls & AHK

Posted: 03 Jan 2014, 00:25
by Flow Snake
I love it jNizM :D

Re: WinApi, DllCalls & AHK

Posted: 03 Jan 2014, 02:14
by joedf
Nice signature haha