1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 WHEELDPC_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // SYNCFPDDPC_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifndef USSUBSYSTEMDPC_EXPORTS
- #ifdef WIN_64BIT
- #ifdef _DEBUG
- #pragma comment(lib, "USSubSystemDPCX64D.lib")
- #else
- #pragma comment(lib, "USSubSystemDPCX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "USSubSystemDPCD.lib")
- #else
- #pragma comment(lib, "USSubSystemDPC.lib")
- #endif
- #endif
- #endif
- #ifdef USSUBSYSTEMDPC_EXPORTS
- #define USSUBSYSTEM_API __declspec(dllexport)
- #else
- #define USSUBSYSTEM_API __declspec(dllimport)
- #endif
- #include "DPC.h"
- extern "C" USSUBSYSTEM_API DPC* GetDPC();
- extern "C" USSUBSYSTEM_API void ReleaseDPC(DPC *p);
- class USSUBSYSTEM_API USSubSystemDPC : public DPC
- {
- std::string *m_pWorkpath;
- public:
- USSubSystemDPC(void);
- virtual ~USSubSystemDPC(void);
- virtual bool DpcEntry(ResDataObject &Configuration);
- virtual ResDataObject GetConnectionType();
- virtual bool Connect(ResDataObject &Connection);
- virtual bool Probe(ResDataObject &HardwareInfo);
- virtual bool SetWorkPath(const char *pWorkPath);
- virtual PVOID LoadLogicDevices();
- virtual void UnloadLogicDevices(PVOID p);
- virtual bool DisConnect();
- };
|