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.

39 lines
1.5 KiB

  1. #pragma once
  2. #ifdef DBG
  3. struct CommandTableEntry
  4. {
  5. int iCommandId; // Associated command ID
  6. bool fValidOnZero; // Is this option valid when 0 items selected?
  7. bool fValidOnWizardOnly; // Is this option valid when only wizard selected?
  8. bool fValidOnMultiple; // Is this option valid with > 1 selected?
  9. bool fCurrentlyValid; // Is this option currently valid in the menu?
  10. bool fNewState; // What's the new state? (work variable)
  11. };
  12. typedef CommandTableEntry COMMANDTABLEENTRY;
  13. typedef CommandTableEntry * PCOMMANDTABLEENTRY;
  14. extern COMMANDTABLEENTRY g_cteFolderCommands[];
  15. extern const DWORD g_nFolderCommandCount;
  16. struct CommandCheckEntry
  17. {
  18. int iCommandId; // Associated command ID
  19. bool fCurrentlyChecked; // Is this menu item already checked?
  20. bool fNewCheckState; // What's the new check state?
  21. };
  22. typedef CommandCheckEntry COMMANDCHECKENTRY;
  23. typedef CommandCheckEntry * PCOMMANDCHECKENTRY;
  24. extern COMMANDCHECKENTRY g_cceFolderCommands[];
  25. extern const DWORD g_nFolderCommandCheckCount;
  26. HRESULT HrBuildMenuOldWay(IN OUT HMENU hmenu, IN PCONFOLDPIDLVEC& cfpl, IN HWND hwndOwner, IN CMENU_TYPE cmt, IN UINT indexMenu, IN DWORD idCmdFirst, IN UINT idCmdLast, IN BOOL fVerbsOnly);
  27. HRESULT HrAssertIntegrityAgainstOldMatrix();
  28. HRESULT HrAssertAllLegacyMenusAgainstNew(HWND hwndOwner);
  29. void TraceMenu(HMENU hMenu);
  30. #endif