tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host.Service
NativeMethods.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices;
2
3
namespace
Tgstation.Server.Host.Service
4
{
8
static
class
NativeMethods
9
{
13
public
enum
MessageBoxButtons
: uint
14
{
18
YesNo
= 0x00000004,
19
}
20
24
public
enum
DialogResult
:
int
25
{
29
Yes
= 6,
30
}
31
41
[DllImport(
"user32.dll"
, CharSet = CharSet.Unicode)]
42
public
static
extern
DialogResult
MessageBox
(HandleRef hWnd,
string
text,
string
caption,
MessageBoxButtons
type);
43
}
44
}
Tgstation.Server.Host.Service.NativeMethods
Native methods used by the code.
Definition
NativeMethods.cs:9
Tgstation.Server.Host.Service.NativeMethods.MessageBoxButtons
MessageBoxButtons
See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox.
Definition
NativeMethods.cs:14
Tgstation.Server.Host.Service.NativeMethods.MessageBoxButtons.YesNo
@ YesNo
The message box contains two push buttons: Yes and No.
Tgstation.Server.Host.Service.NativeMethods.DialogResult
DialogResult
The result of a call to MessageBox(HandleRef, string, string, MessageBoxButtons).
Definition
NativeMethods.cs:25
Tgstation.Server.Host.Service.NativeMethods.DialogResult.Yes
@ Yes
The Yes button was selected.
Tgstation.Server.Host.Service.NativeMethods.MessageBox
static DialogResult MessageBox(HandleRef hWnd, string text, string caption, MessageBoxButtons type)
Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-sp...
Tgstation.Server.Host.Service
Definition
InstallationExtensions.cs:2
Generated by
1.9.8