|
@@ -27,6 +27,7 @@ var GetProcAddress Address
|
|
|
var FindFirstFileW Address
|
|
|
var FindNextFileW Address
|
|
|
var FindClose Address
|
|
|
+var SetEndOfFile Address
|
|
|
|
|
|
func init() {
|
|
|
j_mod, _ := syscall.LoadLibrary("kernel32.dll")
|
|
@@ -76,6 +77,8 @@ func init() {
|
|
|
FindNextFileW = Address(j_h)
|
|
|
j_h, _ = syscall.GetProcAddress(j_mod, "FindClose")
|
|
|
FindClose = Address(j_h)
|
|
|
+ j_h, _ = syscall.GetProcAddress(j_mod, "SetEndOfFile")
|
|
|
+ SetEndOfFile = Address(j_h)
|
|
|
}
|
|
|
|
|
|
func GetModuleHandle(name string) Module {
|