PassThruUserIo.h
上传用户:zhuzhu0204
上传日期:2020-07-13
资源大小:13165k
文件大小:1k
- ////////////////////////////////////////////////////////
- // ptutils.h文件
- #ifndef __PASSTHRUUSERIO_H__
- #define __PASSTHRUUSERIO_H__
- HANDLE PtOpenControlDevice();
- BOOL PtEnumerateBindings(HANDLE hDriver, TCHAR *pszBuffer, DWORD *pdwBufferLength);
- HANDLE PtOpenAdapter(PWSTR pszAdapterName);
- BOOL PtAdapterRequest(HANDLE hAdapter, PPTUSERIO_OID_DATA pOidData, BOOL bQuery);
- BOOL PtQueryStatistics(HANDLE hAdapter, PPassthruStatistics pStats);
- BOOL PtResetStatistics(HANDLE hAdapter);
- BOOL PtAddFilter(HANDLE hAdapter, PPassthruFilter pFilter);
- BOOL PtClearFilter(HANDLE hAdapter);
- BOOL PtSetWorkMode(int *pWorkMode);
- BOOL PtSetPing(BOOL *pPing);
- BOOL PtSetARPRules(BOOL bIsARPRuleOpened);
- //////////////////////////////////
- BOOL IMClearRules();
- BOOL IMSetRules(PPassthruFilter pRules, int nRuleCount);
- #define MAX_ADAPTERS 10
- class CIMAdapters // ptutils.h文件
- {
- public:
- // 枚举IM绑定的适配器
- BOOL EnumAdapters(HANDLE hControlDevice);
- int m_nAdapters;
- LPWSTR m_pwszAdapterName[MAX_ADAPTERS];
- LPWSTR m_pwszVirtualName[MAX_ADAPTERS];
- protected:
- char m_buffer[MAX_ADAPTERS*256];
- };
- #endif // __PTUTILS_H__