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.

63 lines
2.2 KiB

  1. /*
  2. * CONVERT.H
  3. *
  4. * Internal definitions, structures, and function prototypes for the
  5. * OLE 2.0 UI Convert dialog.
  6. *
  7. * Copyright (c)1992 Microsoft Corporation, All Right Reserved
  8. */
  9. #ifndef _CONVERT_H_
  10. #define _CONVERT_H_
  11. //Internally used structure
  12. typedef struct tagCONVERT
  13. {
  14. //Keep this item first as the Standard* functions depend on it here.
  15. LPOLEUICONVERT lpOCV; //Original structure passed.
  16. /*
  17. * What we store extra in this structure besides the original caller's
  18. * pointer are those fields that we need to modify during the life of
  19. * the dialog but that we don't want to change in the original structure
  20. * until the user presses OK.
  21. */
  22. DWORD dwFlags; // Flags passed in
  23. HWND hListVisible; // listbox that is currently visible
  24. HWND hListInvisible; // listbox that is currently hidden
  25. CLSID clsid; // Class ID sent in to dialog: IN only
  26. DWORD dvAspect;
  27. BOOL fCustomIcon;
  28. UINT IconIndex; // index (in exe) of current icon
  29. LPTSTR lpszIconSource; // path to current icon source
  30. LPTSTR lpszCurrentObject;
  31. LPTSTR lpszConvertDefault;
  32. LPTSTR lpszActivateDefault;
  33. } CONVERT, *PCONVERT, FAR *LPCONVERT;
  34. //Internal function prototypes in CONVERT.C
  35. BOOL CALLBACK EXPORT ConvertDialogProc(HWND, UINT, WPARAM, LPARAM);
  36. BOOL FConvertInit(HWND hDlg, WPARAM, LPARAM);
  37. UINT FPopulateListbox(HWND hListbox, CLSID cID);
  38. BOOL IsValidClassID(CLSID cID);
  39. void SetConvertResults(HWND, LPCONVERT);
  40. UINT FillClassList(
  41. CLSID clsid,
  42. HWND hList,
  43. HWND hListInvisible,
  44. LPTSTR FAR *lplpszCurrentClass,
  45. BOOL fIsLinkedObject,
  46. WORD wFormat,
  47. UINT cClsidExclude,
  48. LPCLSID lpClsidExclude);
  49. BOOL FormatIncluded(LPTSTR szStringToSearch, WORD wFormat);
  50. void UpdateCVClassIcon(HWND hDlg, LPCONVERT lpCV, HWND hList);
  51. void SwapWindows(HWND, HWND, HWND);
  52. void ConvertCleanup(HWND hDlg, LPCONVERT lpCV);
  53. #endif // _CONVERT_H_
  54.