/// <summary>
 /// Initializes static members of the <see cref="WindowsNativeMethods"/> class.
 /// </summary>
 static WindowsNativeMethods()
 {
     Instance = new WindowsNativeMethods();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes static members of the <see cref="WindowsNativeMethods"/> class.
 /// </summary>
 static WindowsNativeMethods()
 {
     Parallelism = (int)Math.Max(1, Environment.ProcessorCount * 0.8);
     Instance    = new WindowsNativeMethods();
 }