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.

56 lines
1.3 KiB

  1. /*************************************************************************
  2. FileName : FileOpen.h
  3. Purpose : Declaration of CFileOpen
  4. Methods
  5. defined : OpenFileOpenDlg
  6. Properties
  7. defined :
  8. FileName
  9. Helper
  10. functions: GET_BSTR
  11. Author : Sudha Srinivasan (a-sudsi)
  12. *************************************************************************/
  13. #ifndef __FILEOPEN_H_
  14. #define __FILEOPEN_H_
  15. #include "resource.h" // main symbols
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CFileOpen
  18. class ATL_NO_VTABLE CFileOpen :
  19. public CComObjectRootEx<CComSingleThreadModel>,
  20. public CComCoClass<CFileOpen, &CLSID_FileOpen>,
  21. public IDispatchImpl<IFileOpen, &IID_IFileOpen, &LIBID_SAFRCFILEDLGLib>
  22. {
  23. public:
  24. CFileOpen()
  25. {
  26. }
  27. DECLARE_REGISTRY_RESOURCEID(IDR_FILEOPEN)
  28. DECLARE_PROTECT_FINAL_CONSTRUCT()
  29. BEGIN_COM_MAP(CFileOpen)
  30. COM_INTERFACE_ENTRY(IFileOpen)
  31. COM_INTERFACE_ENTRY(IDispatch)
  32. END_COM_MAP()
  33. public:
  34. void GET_BSTR (BSTR*& x, CComBSTR& y);
  35. // IFileOpen
  36. public:
  37. STDMETHOD(get_FileName)(/*[out, retval]*/ BSTR *pVal);
  38. STDMETHOD(put_FileName)(/*[in]*/ BSTR newVal);
  39. STDMETHOD(OpenFileOpenDlg)(/*[out, retval]*/ DWORD *pdwRetVal);
  40. STDMETHOD(get_FileSize)(/*[out, retval]*/ BSTR *pVal);
  41. };
  42. #endif //__FILEOPEN_H_