api_windows_x64.go 502 B

1234567891011121314151617181920212223
  1. //go:build windows && (amd64 || arm64 || ppc64 || ppc64le || s390x || mips64 || mips64le)
  2. package yu_hpsocket
  3. import (
  4. _ "embed"
  5. yu_deflate "gogs.qqck.cn/s/tools/deflate"
  6. yu_file "gogs.qqck.cn/s/tools/file"
  7. "os"
  8. )
  9. // dll下载地址:https://github.com/ldcsaa/HP-Socket/
  10. // Releases v5.9.3
  11. // HPSocket4C.dll
  12. //go:embed api_windows_x64.dll.en
  13. var dll_raw []byte
  14. func init() {
  15. j_path := os.TempDir() + "hpsocketx64.dll"
  16. yu_file.Write(j_path, yu_deflate.DeflateDe(dll_raw))
  17. loadDLL(j_path)
  18. }