NewTOAPIA.Drawing.GDI.GDIContext.CreateForAllAttachedMonitors C# (CSharp) Метод

CreateForAllAttachedMonitors() публичный статический Метод

public static CreateForAllAttachedMonitors ( ) : GDIContext
Результат GDIContext
        public static GDIContext CreateForAllAttachedMonitors()
        {
            IntPtr hdc = IntPtr.Zero;

            hdc = GDI32.CreateDC("DISPLAY", null, null, IntPtr.Zero);
            GDIContext newContext = new GDIContext(hdc, true);

            // public static IntPtr CreateDC(string lpszDriver, string lpszDevice, IntPtr lpInitData);

            return newContext;
        }