Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Add-Type -TypeDefinition @"
  2. using System;
  3. using System.Diagnosticd;
  4. using System.Runtime.InteropServices;
  5.  
  6. public static class User32
  7. {
  8.  
  9.  
  10. {DllImport("user32.dll", CharSet=Charset.Auto)}
  11. public static extern bool MessageBox(
  12. IntPtr hWnd, ///Parent windows handle
  13. String text, /// Text message to
  14. String caption, /// sddasdadasdsadsad
  15. int options); /// dfdsfsfsfsdfsdf
  16.  
  17. }
  18. "@
  19.  
  20.  
  21. [User32]::MessageBox(0,"testOK (:","Caption",0) |Out-Null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement