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

//
// Microsoft Windows Media Technologies
// Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
//
//
// ProgressHelper.h : Declaration of the CProgressHelper
//
#ifndef __PROGRESSHELPER_H_
#define __PROGRESSHELPER_H_
#include "progRC.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
//
// CProgressHelper
//
class ATL_NO_VTABLE CProgressHelper :
public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<CProgressHelper, &CLSID_ProgressHelper>,
public IWMDMProgress,
public IWMDMProgressHelper
{
HWND m_hwnd;
UINT m_uMsg;
PROGRESSNOTIFY m_progressnotify;
BOOL m_fCancelled;
public:
CProgressHelper();
~CProgressHelper();
DECLARE_REGISTRY_RESOURCEID(IDR_WMDMPROGRESSHELPER)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CProgressHelper)
COM_INTERFACE_ENTRY(IWMDMProgressHelper)
COM_INTERFACE_ENTRY(IWMDMProgress)
END_COM_MAP()
public:
// IWMDMProgress
STDMETHOD (Begin)( DWORD dwEstimatedTicks );
STDMETHOD (Progress)( DWORD dwTranspiredTicks );
STDMETHOD (End)();
// IWMDMProgressHelper
STDMETHOD (SetNotification)( HWND hwnd, UINT uMsg );
STDMETHOD (Cancel)( VOID );
};
#endif //__PROGRESSHELPER_H_