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.

64 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 - 2001 Microsoft Corporation
  3. Module Name:
  4. ### ### ## ## ##### ## ## ##### ### ##### ## ##
  5. ## # ### ## ## ## ## ## ## ## ### ## ## ## ##
  6. ### ## ## #### ## #### ## ## ## ## ## ## ## ##
  7. ### ## ## ### ##### #### ## ## ## ## ## ## #######
  8. ### ####### #### ## ## ##### ####### ## ## ## ##
  9. # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  10. ### ## ## ## ## ##### ## ## ## ## ##### ## ## ##
  11. Abstract:
  12. This header file contains the class definition for
  13. the ISaKeypad interface class.
  14. Author:
  15. Wesley Witt (wesw) 1-Oct-2001
  16. Environment:
  17. User mode only.
  18. Notes:
  19. --*/
  20. #ifndef __SAKEYPAD_H_
  21. #define __SAKEYPAD_H_
  22. class ATL_NO_VTABLE CSaKeypad :
  23. public CComObjectRootEx<CComMultiThreadModel>,
  24. public CComCoClass<CSaKeypad, &CLSID_SaKeypad>,
  25. public IDispatchImpl<ISaKeypad, &IID_ISaKeypad, &LIBID_SACOMLib>
  26. {
  27. public:
  28. CSaKeypad();
  29. ~CSaKeypad();
  30. DECLARE_REGISTRY_RESOURCEID(IDR_SAKEYPAD)
  31. DECLARE_PROTECT_FINAL_CONSTRUCT()
  32. BEGIN_COM_MAP(CSaKeypad)
  33. COM_INTERFACE_ENTRY(ISaKeypad)
  34. COM_INTERFACE_ENTRY(IDispatch)
  35. END_COM_MAP()
  36. public:
  37. STDMETHOD(get_InterfaceVersion)(/*[out, retval]*/ long *pVal);
  38. STDMETHOD(get_Key)(/*[out, retval]*/ SAKEY *pVal);
  39. private:
  40. HANDLE m_hFile;
  41. ULONG m_InterfaceVersion;
  42. UCHAR m_Keypress;
  43. };
  44. #endif //__SAKEYPAD_H_