the dll exported function signature takes a const char *
while I am passing a string
my golang call signature
Open(lazyP*syscall.LazyProc, filter string, layer uint32, priority
int16, flags uint64) error
which I use to make this call
r1, r2, lastError :=
lazyP.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(filter))),
uintptr(layer),
uintptr(priority),
uintptr(flags),
)
and my dll exported func signature is
HANDLE Open(const char *filter,DIVERT_LAYER layer,
INT16 priority, UINT64 flags)
-SIGTERM
amit
Humanity's first sin was faith, Its first virtue doubt