forked from devcat-studio/VSCodeLuaDebug
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMessageBox.cs
More file actions
27 lines (24 loc) · 688 Bytes
/
Copy pathMessageBox.cs
File metadata and controls
27 lines (24 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace VSCodeDebug
{
public static class MessageBox
{
public static void OK(string text)
{
User32.MessageBox(IntPtr.Zero, text, "VSCode.LuaDebug", 0);
}
public static void WTF(string text)
{
User32.MessageBox(IntPtr.Zero, text, "VSCode.LuaDebug.WTF", 0);
}
}
public static class User32
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern uint MessageBox(IntPtr hWnd, String text, String caption, int options);
}
}