Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-Type -TypeDefinition @"
- using System;
- using System.Diagnosticd;
- using System.Runtime.InteropServices;
- public static class User32
- {
- {DllImport("user32.dll", CharSet=Charset.Auto)}
- public static extern bool MessageBox(
- IntPtr hWnd, ///Parent windows handle
- String text, /// Text message to
- String caption, /// sddasdadasdsadsad
- int options); /// dfdsfsfsfsdfsdf
- }
- "@
- [User32]::MessageBox(0,"testOK (:","Caption",0) |Out-Null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement