Advertisement
Guest User

Untitled

a guest
May 25th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.37 KB | None | 0 0
  1. import (
  2.     "syscall"
  3.     "unsafe"
  4. )
  5.  
  6. var (
  7.     kernel32DLL     = syscall.NewLazyDLL("kernel32.dll")
  8.     procCreateEvent = kernel32DLL.NewProc("CreateEvent")
  9. )
  10.  
  11. func createEvent() Handle {
  12.     var securityAttrib SecurityAttributes
  13.     securityAttrib.InheritHandle = 1
  14.     securityAttrib.SecurityDescriptor = 0
  15.     securityAttrib.Length = unsafe.Sizeof(securityAttrib)
  16. }
  17.  
  18. func main() {
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement