ServerDlg.h
上传用户:weiliangfb
上传日期:2007-01-23
资源大小:142k
文件大小:2k
- // ServerDlg.h : header file
- //
- #if !defined(AFX_SERVERDLG_H__1C4F2C47_8F65_4206_9828_5DAEFB9A62D3__INCLUDED_)
- #define AFX_SERVERDLG_H__1C4F2C47_8F65_4206_9828_5DAEFB9A62D3__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CServerDlg dialog
- #include "DPServer.h"
- class CServerDlg : public CDialog
- , public MediaMessageReqEvent
- {
- struct ComEnvironment
- {
- ComEnvironment()
- {
- // CoInitializeEx(NULL, COINIT_MULTITHREADED);
- CoInitialize(NULL);
- }
- ~ComEnvironment()
- {
- CoUninitialize();
- }
- }_ComEnvironment;
- // Construction
- CDPServer *m_DPServer;
- HANDLE m_hMediaFile;
- LONGLONG m_llMediaLen;
- public:
- HRESULT OnNeedData(LONGLONG llDataPos,DWORD dwSize,DWORD * pdwGotSize,LPBYTE lpBuffer);
- HRESULT OnNeedLength(LONGLONG * llMediaLenght);
- CServerDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CServerDlg)
- enum { IDD = IDD_SERVER_DIALOG };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CServerDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnBtnOpen();
- afx_msg void OnBtnStart();
- afx_msg void OnDestroy();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SERVERDLG_H__1C4F2C47_8F65_4206_9828_5DAEFB9A62D3__INCLUDED_)