- Create a new directory and copy following file from winim.
winim/com.nim
winim/clr.nim
examples/clr/simple_gui.nim
- Create keyword.txt.
IID_IObject
| import wNim, tables | |
| const | |
| colorTable = { | |
| "wAquamarine": wAquamarine, | |
| "wBlack": wBlack, | |
| "wBlue": wBlue, | |
| "wBlueViolet": wBlueViolet, | |
| "wBrown": wBrown, | |
| "wCadetBlue": wCadetBlue, |
winim/com.nim
winim/clr.nim
examples/clr/simple_gui.nim
IID_IObject
| #[ | |
| Author: Ward | |
| Example of EnumDeviceDrivers. | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/psapi/enumerating-all-device-drivers-in-the-system | |
| ]# | |
| import winim/lean |
| #[ | |
| Author: Ward | |
| Example of EnumProcesses. | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/psapi/enumerating-all-processes | |
| ]# | |
| import winim/lean |
| #[ | |
| Author: Ward | |
| Example of GetLogicalDrives and GetLogicalDriveStrings. | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getlogicaldrives | |
| https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getlogicaldrivestringsw | |
| ]# |
| #[ | |
| Author: Ward | |
| Example of GetSystemInfo | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsysteminfo | |
| ]# | |
| import winim/lean |
| #[ | |
| Author: Ward | |
| Example of CreateFileMapping | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory | |
| ]# | |
| # This program may need to run as admin. |
| #[ | |
| Author: Ward | |
| Example of CreateFileMapping | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory | |
| ]# | |
| # This program may need to run as admin. |
| #[ | |
| Author: Ward | |
| Example of NtAllocateVirtualMemory, NtReadVirtualMemory, NtFreeVirtualMemory | |
| References: | |
| https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntallocatevirtualmemory | |
| ]# | |
| import winim/lean |
| #[ | |
| Author: Ward | |
| Example of FindWindow | |
| References: | |
| https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowa | |
| ]# | |
| import winim/lean |