Beispiel #1
0
        public static void SetDisplayTopology(DisplayTopology displayTopology)
        {
            switch (displayTopology)
            {
            case DisplayTopology.External:
                NativeMethods.SetDisplayConfig(0, null, 0, null, (SdcFlags.Apply | SdcFlags.TopologyExternal));
                break;

            case DisplayTopology.Internal:
                NativeMethods.SetDisplayConfig(0, null, 0, null, (SdcFlags.Apply | SdcFlags.TopologyInternal));
                break;

            case DisplayTopology.Extend:
                NativeMethods.SetDisplayConfig(0, null, 0, null, (SdcFlags.Apply | SdcFlags.TopologyExtend));
                break;

            case DisplayTopology.Clone:
                NativeMethods.SetDisplayConfig(0, null, 0, null, (SdcFlags.Apply | SdcFlags.TopologyClone));
                break;
            }
        }
Beispiel #2
0
 public static void SetDisplayTopology( DisplayTopology displayTopology )
 {
     switch( displayTopology ) {
         case DisplayTopology.External:
             NativeMethods.SetDisplayConfig( 0, null, 0, null, ( SdcFlags.Apply | SdcFlags.TopologyExternal ) );
             break;
         case DisplayTopology.Internal:
             NativeMethods.SetDisplayConfig( 0, null, 0, null, ( SdcFlags.Apply | SdcFlags.TopologyInternal ) );
             break;
         case DisplayTopology.Extend:
             NativeMethods.SetDisplayConfig( 0, null, 0, null, ( SdcFlags.Apply | SdcFlags.TopologyExtend ) );
             break;
         case DisplayTopology.Clone:
             NativeMethods.SetDisplayConfig( 0, null, 0, null, ( SdcFlags.Apply | SdcFlags.TopologyClone ) );
             break;
     }
 }