Skip to content

Commit

Permalink
reset rep structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 3, 2024
1 parent 8f4d098 commit b873104
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
23 changes: 22 additions & 1 deletion sdk/libhyperdbg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions sdk/util.go
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
package sdk

import (
"github.com/stretchr/testify/assert"
"os"
"path/filepath"
"strings"
"syscall"
"testing"
"unsafe"

"github.com/stretchr/testify/assert"

"github.com/ddkwork/app/ms/hardwareIndo"
"github.com/ddkwork/golibrary/mylog"
"github.com/ddkwork/golibrary/stream/bitfield"
)

func SetDllDirectory(path string) {
kernel32 := syscall.NewLazyDLL("kernel32.dll")
setDllDirectory := kernel32.NewProc("SetDllDirectoryW")
utf16Ptr := mylog.Check2(syscall.UTF16PtrFromString(path))
mylog.Check3(setDllDirectory.Call(uintptr(unsafe.Pointer(utf16Ptr))))
}
func LOWORD(l uint32) uint16 { return uint16(l) }
func LOBYTE(l uint32) uint8 { return byte(l) }
func HIWORD(l uint32) uint16 { return uint16(l >> 16) }
Expand Down

0 comments on commit b873104

Please sign in to comment.