home *** CD-ROM | disk | FTP | other *** search
Wrap
// NetCap.h : main header file for the NETCAP application // //{{AFX_INCLUDES() #include "..\..\..\..\include\l_ocx40.h" #include "..\..\..\..\include\ltcapocx.h" #include "..\..\..\..\include\ltnetocx.h" #include "leadcap.h" #include "leadnet.h" //}}AFX_INCLUDES #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CNetCapApp: // See NetCap.cpp for the implementation of this class // class CNetCapApp : public CWinApp { public: CNetCapApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNetCapApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CNetCapApp) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // CNetCapDlg dialog class CConnection; class CCapture; class CNetCapDlg : public CDialog { // Construction public: CNetCapDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CNetCapDlg) enum { IDD = IDD_NETCAP_DIALOG }; CButton m_SendSound; CButton m_SendBitmap; CButton m_PlaySound; CEdit m_BytesIn; CEdit m_BytesOut; CEdit m_BytesSpeed; CEdit m_ImagesIn; CEdit m_ImagesSpeed; CEdit m_ImagesOut; CEdit m_Time; CEdit m_Message; CButton m_VideoSource; CButton m_VideoFormat; CButton m_VideoCompression; CButton m_AudioFormat; CTreeCtrl m_Node; CEdit m_Computer; CButton m_Disconnect; CButton m_Server; CButton m_Connect; CLeadCap m_LeadCap; CLeadNet m_LeadNet; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNetCapDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation public: void Disconnect(short iComputer); protected: HICON m_hIcon; short m_nServer; HTREEITEM m_hServerNode; HTREEITEM m_hClientNode; long m_hSound; int m_nStatus; long m_nWaveFormatTag; long m_nWaveChannels; long m_nWaveSamplesPerSec; long m_nWaveAvgBytesPerSec; long m_nWaveBlockAlign; long m_nWaveBitsPerSample; long m_nWaveExtraSize; void ExpandTree(HTREEITEM hItem); void AppendConnection(short nComputer, int nMode); void DeleteConnection(short nComputer); void DeleteAllConnections(); int GetServerConnections(); int GetClientConnections(); void CountConnections(); CConnection *FindConnection(short nComputer); short FindConnectionIP(short nComputer); CConnection *GetCurrentConnection(); void ShowCurrentConnection(); void OpenCapture(); void CloseCapture(); void CloseSoundPlay(); void OpenSoundSend(); void CloseSoundSend(); void DisplayMessage(short iComputer, char *szMessage); void GetHostName(short nComputer, char *szHostName); void GetHostIP(short nComputer, char *szHostIP); void TestQueue(); // Generated message map functions //{{AFX_MSG(CNetCapDlg) virtual BOOL OnInitDialog(); afx_msg void OnConnect(); afx_msg void OnServer(); afx_msg void OnDisconnect(); afx_msg void OnSelchangedNode(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDisconnectAll(); afx_msg void OnClose(); afx_msg void OnAudioFormat(); afx_msg void OnVideoCompression(); afx_msg void OnVideoFormat(); afx_msg void OnVideoSource(); afx_msg void OnSendSound(); afx_msg void OnPlaySound(); afx_msg void OnInetReceiveBitmap(short iComputer, long hBitmap); afx_msg void OnInetReceiveData(short iComputer, const VARIANT FAR& pData, long lSize, short iType); afx_msg void OnInetConnected(short iComputer); afx_msg void OnInetDisconnected(short iComputer); afx_msg void OnInetAccept(short iServer); afx_msg void OnInetError(short iComputer, short iMessage, short iError); afx_msg void OnInetReceiveStart(short iComputer, long lSize); afx_msg void OnInetReceiving(short iComputer, long lSize); afx_msg void OnInetDataSent(short iComputer, long lSize); afx_msg void OnInetSending(short iComputer, long lSize); afx_msg void OnInetReceiveSound(short iComputer, short iFormatTag, short nChannels, long lSamplesPerSec, long lAvgBytesPerSec, short iBlockAlign, short iBitsPerSample, short iExtraDataSize, const VARIANT FAR& pExtraData, const VARIANT FAR& pData, long lDataSize); afx_msg void OnCapDriver(short iDriver, LPCTSTR pszName); afx_msg void OnCapVideoData(long hDib, long lTime); afx_msg void OnCapAudioData(const VARIANT FAR& pData, long lBytesRecorded, short iIndex); afx_msg void OnTimer(UINT nIDEvent); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /////////////////////////////////////////////////////////////////////////////