ntdll.go 225 B

12345678910111213
  1. //go:build windows
  2. package yu_win
  3. import "syscall"
  4. var RtlRandomEx Address
  5. func init() {
  6. j_mod, _ := syscall.LoadLibrary("ntdll.dll")
  7. j_h, _ := syscall.GetProcAddress(j_mod, "RtlRandomEx")
  8. RtlRandomEx = Address(j_h)
  9. }