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.

52 lines
1.8 KiB

  1. /*
  2. * INSOBJ.H
  3. *
  4. * Internal definitions, structures, and function prototypes for the
  5. * OLE 2.0 UI Insert Object dialog.
  6. *
  7. * Copyright (c)1993 Microsoft Corporation, All Rights Reserved
  8. */
  9. #ifndef _INSOBJ_H_
  10. #define _INSOBJ_H_
  11. //Internally used structure
  12. typedef struct tagINSERTOBJECT
  13. {
  14. LPOLEUIINSERTOBJECT lpOIO; //Original structure passed.
  15. /*
  16. * What we store extra in this structure besides the original caller's
  17. * pointer are those fields that we need to modify during the life of
  18. * the dialog but that we don't want to change in the original structure
  19. * until the user presses OK.
  20. */
  21. DWORD dwFlags;
  22. CLSID clsid;
  23. TCHAR szFile[OLEUI_CCHPATHMAX];
  24. BOOL fFileSelected; //Enables Display As Icon for links
  25. BOOL fAsIconNew;
  26. BOOL fAsIconFile;
  27. BOOL fFileDirty;
  28. BOOL fFileValid;
  29. UINT nErrCode;
  30. HGLOBAL hMetaPictFile;
  31. UINT nBrowseHelpID; // Help ID callback for Browse dlg
  32. } INSERTOBJECT, *PINSERTOBJECT, FAR *LPINSERTOBJECT;
  33. //Internal function prototypes
  34. //INSOBJ.C
  35. BOOL CALLBACK EXPORT InsertObjectDialogProc(HWND, UINT, WPARAM, LPARAM);
  36. BOOL FInsertObjectInit(HWND, WPARAM, LPARAM);
  37. UINT UFillClassList(HWND, UINT, LPCLSID, BOOL);
  38. BOOL FToggleObjectSource(HWND, LPINSERTOBJECT, DWORD);
  39. void UpdateClassIcon(HWND, LPINSERTOBJECT, HWND);
  40. void UpdateClassType(HWND, LPINSERTOBJECT, BOOL);
  41. void SetInsertObjectResults(HWND, LPINSERTOBJECT);
  42. BOOL FValidateInsertFile(HWND, BOOL, UINT FAR*);
  43. void InsertObjectCleanup(HWND);
  44. #endif //_INSOBJ_H_
  45.