mmhelper.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef _MMHELPER_H_
  2. #define _MMHELPER_H_
  3. /* This file contains the declarations of MultiMonitor helper functions used
  4.    inside the shell, they are implemented in shelllibmmhelper.cpp */
  5. #ifdef __cplusplus
  6. extern "C" {            /* Assume C declarations for C++ */
  7. #endif  /* __cplusplus */
  8. HMONITOR GetPrimaryMonitor();
  9. BOOL GetMonitorRects(HMONITOR hMon, LPRECT prc, BOOL bWork);
  10. #define GetMonitorRect(hMon, prc) 
  11.         GetMonitorRects((hMon), (prc), FALSE)
  12. #define GetMonitorWorkArea(hMon, prc) 
  13.         GetMonitorRects((hMon), (prc), TRUE)
  14. #define IsMonitorValid(hMon) 
  15.         GetMonitorRects((hMon), NULL, TRUE)
  16. #define GetNumberOfMonitors() 
  17.         GetSystemMetrics(SM_CMONITORS)
  18. #ifdef __cplusplus
  19. }
  20. #endif /* __cplusplus */
  21. #endif /* _MMHELPER_H_ */