packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/PowerManagement/MessageManager.cs
/// <summary>
/// Ensures that the hidden window is initialized and 
/// listening for messages.
/// </summary>
Ensures that the hidden window is initialized and
listening for messages.
Ensures that the hidden window is initialized and listening for messages .
private static void EnsureInitialized()
        {
            lock (lockObject)
            {
                if (window == null)
                {
                    window = new PowerRegWindow();
                }
            }
        }
private static void EnsureInitialized ( ) { lock ( lockObject ) { if ( window == null ) { window = new PowerRegWindow ( ) ; } } }
Ensures that the hidden window is initialized and
listening for messages.
Ensures that the hidden window is initialized and listening for messages .
// Create a new hidden window to listen // for power management related window messages.