Ignore:
Timestamp:
Jul 29, 2006, 6:43:07 AM (19 years ago)
Author:
bird
Message:

Two classes (CPMScreen and CPMKeyState) + the hook dll left (and debugging of course).

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/synergy/lib/platform/CPMScreenSaver.h

    r2751 r2752  
    22 * synergy -- mouse and keyboard sharing utility
    33 * Copyright (C) 2002 Chris Schoeneman
     4 * Copyright (C) 2006 Knut St Osmundsen
    45 *
    56 * This package is free software; you can redistribute it and/or
     
    1314 */
    1415
    15 #ifndef CMSWINDOWSSCREENSAVER_H
    16 #define CMSWINDOWSSCREENSAVER_H
     16#ifndef CPMSCREENSAVER_H
     17#define CPMSCREENSAVER_H
    1718
    1819#include "IScreenSaver.h"
    1920#include "CString.h"
    20 #define WIN32_LEAN_AND_MEAN
    21 #include <windows.h>
     21#define INCL_ERRORS
     22#define INCL_BASE
     23#define INCL_PM
     24#include <os2.h>
    2225
    2326class CThread;
    2427
    25 //! Microsoft windows screen saver implementation
    26 class CMSWindowsScreenSaver : public IScreenSaver {
     28//! PM screen saver implementation (stub)
     29class CPMScreenSaver : public IScreenSaver {
    2730public:
    28         CMSWindowsScreenSaver();
    29         virtual ~CMSWindowsScreenSaver();
    30 
    31         //! @name manipulators
    32         //@{
    33 
    34         //! Check if screen saver started
    35         /*!
    36         Check if the screen saver really started.  Returns false if it
    37         hasn't, true otherwise.  When the screen saver stops, \c msg will
    38         be posted to the current thread's message queue with the given
    39         parameters.
    40         */
    41         bool                            checkStarted(UINT msg, WPARAM, LPARAM);
    42 
    43         //@}
     31        CPMScreenSaver();
     32        virtual ~CPMScreenSaver();
    4433
    4534        // IScreenSaver overrides
     
    5140
    5241private:
    53         class CFindScreenSaverInfo {
    54         public:
    55                 HDESK                   m_desktop;
    56                 HWND                    m_window;
    57         };
    58 
    59         static BOOL CALLBACK    findScreenSaverFunc(HWND hwnd, LPARAM lParam);
    60         static BOOL CALLBACK    killScreenSaverFunc(HWND hwnd, LPARAM lParam);
    61 
    62         DWORD                           findScreenSaver();
    63         void                            watchDesktop();
    64         void                            watchProcess(HANDLE process);
    65         void                            unwatchProcess();
    66         void                            watchDesktopThread(void*);
    67         void                            watchProcessThread(void*);
    68 
    69         void                            setSecure(bool secure, bool saveSecureAsInt);
    70         bool                            isSecure(bool* wasSecureAnInt) const;
    71 
    72 private:
    73         bool                            m_is95Family;
    74         bool                            m_is95;
    75         bool                            m_isNT;
    76         BOOL                            m_wasEnabled;
    77         bool                            m_wasSecure;
    78         bool                            m_wasSecureAnInt;
    79 
    80         HANDLE                          m_process;
    81         CThread*                        m_watch;
    82         DWORD                           m_threadID;
    83         UINT                            m_msg;
    84         WPARAM                          m_wParam;
    85         LPARAM                          m_lParam;
    86 
    87         // checkActive state.  true if the screen saver is being watched
    88         // for deactivation (and is therefore active).
    89         bool                            m_active;
    9042};
    9143
Note: See TracChangeset for help on using the changeset viewer.