https://github.com/synodriver/lua-win32
https://github.com/synodriver/lua-win32
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/synodriver/lua-win32
- Owner: synodriver
- Created: 2024-07-04T14:16:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T01:55:51.000Z (over 1 year ago)
- Last Synced: 2025-02-14T00:23:47.498Z (over 1 year ago)
- Language: C
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# lua-win32
```lua
local win32 = require("win32")
print(win32.get_current_process_id())
for process in win32.iter_process(0) do
print("name: "..process.szExeFile.." id: "..tostring( process.th32ProcessID))
end
for module in win32.iter_module(0) do
print("name: "..module.szModule.." path: "..module.szExePath)
end
for thread in win32.iter_thread(0) do
print("threadid: "..thread.th32ThreadID.." pid: "..thread.th32OwnerProcessID)
end
win32.lock_workstation()
```