Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ProcessorAffinityCore
IntPtr
System.Diagnostics.Process.ProcessorAffinityCore
get
set
private
Definition at line
797
of file
Process.cs
.
798
{
799
get
800
{
801
using
SafeProcessHandle
handle
=
GetProcessHandle
(1024);
802
if
(!global::Interop.Kernel32.GetProcessAffinityMask(
handle
,
out
var
processMask
,
out
var
_
))
803
{
804
throw
new
Win32Exception
();
805
}
806
return
processMask
;
807
}
808
set
809
{
810
using
SafeProcessHandle
handle
=
GetProcessHandle
(512);
811
if
(!global::Interop.Kernel32.SetProcessAffinityMask(
handle
,
value
))
812
{
813
throw
new
Win32Exception
();
814
}
815
}
816
}
Microsoft.Win32.SafeHandles.SafeProcessHandle
Definition
SafeProcessHandle.cs:6
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Diagnostics.Process.GetProcessHandle
SafeProcessHandle GetProcessHandle()
Definition
Process.cs:1690
Win32Exception
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.ExceptionArgument.handle
@ handle
System
Diagnostics
Process
Generated by
1.10.0