2025-05-19 21:56:34 +02:00
|
|
|
import winim
|
2025-05-28 10:39:30 +02:00
|
|
|
import ../../server/types
|
|
|
|
|
export Task, TaskCommand, TaskResult, TaskStatus
|
2025-05-21 14:06:04 +02:00
|
|
|
|
|
|
|
|
type
|
|
|
|
|
ProductType* = enum
|
|
|
|
|
UNKNOWN = 0
|
|
|
|
|
WORKSTATION = 1
|
|
|
|
|
DC = 2
|
|
|
|
|
SERVER = 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# API Structs
|
|
|
|
|
type OSVersionInfoExW* {.importc: "OSVERSIONINFOEXW", header: "<windows.h>".} = object
|
|
|
|
|
dwOSVersionInfoSize*: ULONG
|
|
|
|
|
dwMajorVersion*: ULONG
|
|
|
|
|
dwMinorVersion*: ULONG
|
|
|
|
|
dwBuildNumber*: ULONG
|
|
|
|
|
dwPlatformId*: ULONG
|
|
|
|
|
szCSDVersion*: array[128, WCHAR]
|
|
|
|
|
wServicePackMajor*: USHORT
|
|
|
|
|
wServicePackMinor*: USHORT
|
|
|
|
|
wSuiteMask*: USHORT
|
|
|
|
|
wProductType*: UCHAR
|
|
|
|
|
wReserved*: UCHAR
|
|
|
|
|
|
2025-05-24 13:56:26 +02:00
|
|
|
type
|
2025-05-28 10:39:30 +02:00
|
|
|
AgentConfig* = ref object
|
2025-05-24 13:56:26 +02:00
|
|
|
listener*: string
|
|
|
|
|
ip*: string
|
|
|
|
|
port*: int
|
|
|
|
|
sleep*: int
|