1234567891011121314151617181920212223 |
- //go:build windows && (386 || arm || mips || mipsle)
- package yu_hpsocket
- import (
- _ "embed"
- yu_deflate "gogs.qqck.cn/s/tools/deflate"
- yu_file "gogs.qqck.cn/s/tools/file"
- "os"
- )
- // dll下载地址:https://github.com/ldcsaa/HP-Socket/
- // Releases v5.9.3
- // HPSocket4C.dll
- //go:embed api_windows_x32.dll.en
- var dll_raw []byte
- func init() {
- j_path := os.TempDir() + "hpsocketx32.dll"
- yu_file.Write(j_path, yu_deflate.DeflateDe(dll_raw))
- loadDLL(j_path)
- }
|