Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
829 B

  1. /*++
  2. Copyright (c) 2001, Microsoft Corporation
  3. Module Name:
  4. modebias.h
  5. Abstract:
  6. This file defines the CModeBias Interface Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _MODEBIAS_H_
  12. #define _MODEBIAS_H_
  13. typedef struct tagModeBiasMap {
  14. const GUID* m_guid;
  15. LPARAM m_mode;
  16. } MODE_BIAS_MAP;
  17. extern MODE_BIAS_MAP g_ModeBiasMap[];
  18. class CModeBias
  19. {
  20. public:
  21. CModeBias()
  22. {
  23. m_guidModeBias = GUID_MODEBIAS_NONE;
  24. }
  25. GUID GetModeBias()
  26. {
  27. return m_guidModeBias;
  28. }
  29. void SetModeBias(GUID guid)
  30. {
  31. m_guidModeBias = guid;
  32. }
  33. LPARAM ConvertModeBias(GUID guid);
  34. GUID ConvertModeBias(LPARAM mode);
  35. private:
  36. GUID m_guidModeBias;
  37. };
  38. #endif // _MODEBIAS_H_