我想知道如何使用golang加载dll库的指南。例如,如何从RtlAdjustPrivilege(int Privilege, bool bEnablePrivilege, bool IsThreadPrivilege, out bool PreviousValue)中加载ntdll.dll
所以我知道
c := syscall.MustLoadDLL("ntdll.dll").MustFindProc("RtlAdjustPrivilege")
_, _, err = c.Call()发布于 2019-02-16 18:18:22
关于这个题目有不少指南。
Github上的Golang 对将Windows导入到Go程序中有一个相当不错的介绍,请查看它:https://github.com/golang/go/wiki/WindowsDLLs
以指向cgo文档的链接结束,在这里您将学习如何使用C从Go程序导入Windows:https://github.com/golang/go/wiki/cgo
祝好运!
https://stackoverflow.com/questions/54725394
复制相似问题