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.

53 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. MNEUMONIC.H
  5. History:
  6. --*/
  7. #ifndef MNEMONIC_H
  8. #define MNEMONIC_H
  9. extern const IID IID_ILocMnemonics;
  10. DECLARE_INTERFACE_(ILocMnemonics, IUnknown)
  11. {
  12. //
  13. // IUnknown standard interface.
  14. //
  15. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR*ppvObj) PURE;
  16. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  17. STDMETHOD_(ULONG, Release)(THIS) PURE;
  18. //
  19. // Standard Debugging interface.
  20. //
  21. STDMETHOD_(void, AssertValidInterface)(THIS) CONST_METHOD PURE;
  22. //Gets the mnemonics (aka hotkeys) in the resource array of locitems.
  23. //Inputs:
  24. // - A pointer to a CLocItemPtrArray object containing the CLocItem objects of
  25. // a resource (like a dialog or a menu).
  26. // - An array index to the root item of the resource.
  27. // - An array index to the selected item of the resource.
  28. // - The resource's language id.
  29. // - A pointer to a reporter object where all error messages are sent.
  30. //Outputs:
  31. // - A 'CHotkeysMap' map containing the mnemonics.
  32. //Return:
  33. // TRUE if the mnemonics could be retrieved successfully. FALSE, otherwise.
  34. STDMETHOD_(BOOL, GetMnemonics)
  35. (THIS_ CLocItemPtrArray &, int, int, LangId, CReporter * pReporter,
  36. CMnemonicsMap &) PURE;
  37. };
  38. #endif // MNEMONIC_H