Productivity Tools

Tools written by an IT business manager, a passionate developer.

Unmanaged Display Wrapper

Library wraps P/Invoke (platform invoke) unmanaged methods in c# class. It allows to manage the external and internal display. Currently it exposes methods to position screen on the right and left.

The main object of the library is the Displays it inherit from List<Display> and exposes 5 methods:

    public interface IDisplays     {         void LoadData();         void MoveExternalDisplayToRight();         void MoveExternalDisplayToLeft();         void MoveMainDisplayToLeft();         void MoveMainDisplayToRight();     }

All Move* methods before doing their thing are invoking the LoadData internally.

After calling LoadData details about display can be retrieved from the object.

DisplayDetails

Move* methods don’t return any information.