Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
UserInteractive
unsafe
bool
System.Environment.UserInteractive
static
get
Definition at line
367
of file
Environment.cs
.
368
{
369
get
370
{
371
IntPtr
processWindowStation =
Interop
.
User32
.
GetProcessWindowStation
();
372
if
(processWindowStation !=
IntPtr
.Zero)
373
{
374
Interop.User32.USEROBJECTFLAGS
uSEROBJECTFLAGS =
default
(
Interop
.
User32
.
USEROBJECTFLAGS
);
375
uint lpnLengthNeeded = 0u;
376
if
(
Interop
.
User32
.
GetUserObjectInformationW
(processWindowStation, 1, &uSEROBJECTFLAGS, (uint)
sizeof
(
Interop
.
User32
.
USEROBJECTFLAGS
), ref lpnLengthNeeded))
377
{
378
return
(uSEROBJECTFLAGS.
dwFlags
& 1) != 0;
379
}
380
}
381
return
true
;
382
}
383
}
Interop.User32.GetProcessWindowStation
static IntPtr GetProcessWindowStation()
Interop.User32.GetUserObjectInformationW
static unsafe bool GetUserObjectInformationW(IntPtr hObj, int nIndex, void *pvBuffer, uint nLength, ref uint lpnLengthNeeded)
Interop.User32
Definition
Interop.cs:268
Interop
Definition
Interop.cs:6
System.Reflection.Metadata.PrimitiveTypeCode.IntPtr
@ IntPtr
Interop.User32.USEROBJECTFLAGS.dwFlags
int dwFlags
Definition
Interop.cs:1824
Interop.User32.USEROBJECTFLAGS
Definition
Interop.cs:1819
System
Environment
Generated by
1.10.0