Advertisement
James1337

Test

Mar 28th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.41 KB | None | 0 0
  1. ; Example #1
  2. A = DllStructCreate("ptr B")
  3. B = DllStructCreate("int C")
  4. A.B = DllStructGetPtr(B)
  5. A.B.C = 42
  6. print(A.B & @CRLF) ; the pointer to B
  7. print(A.B.C & @CRLF) ; also the pointer to B
  8.  
  9. ; Example #2
  10. A = DllStructCreate("struct B; int C; endstruct;")
  11. A.B.C = 42
  12. print(A.B.C & @LF) ; 0
  13.  
  14. ; Example #3
  15. Console = DllStructCreate("ptr Write")
  16. Console.Write = ConsoleWrite
  17. Console.Write("Hello World!" & @CRLF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement