WinIo.h
资源名称:winio源码.zip [点击查看]
上传用户:ason123
上传日期:2010-03-31
资源大小:177k
文件大小:1k
源码类别:
并口编程
开发平台:
C++ Builder
- #ifndef WINIO_H
- #define WINIO_H
- #ifdef WINIO_DLL
- #define WINIO_API _declspec(dllexport)
- #else
- #define WINIO_API _declspec(dllimport)
- #endif
- extern "C"
- {
- WINIO_API bool _stdcall InitializeWinIo();
- WINIO_API void _stdcall ShutdownWinIo();
- WINIO_API PBYTE _stdcall MapPhysToLin(PBYTE pbPhysAddr, DWORD dwPhysSize, HANDLE *pPhysicalMemoryHandle);
- WINIO_API bool _stdcall UnmapPhysicalMemory(HANDLE PhysicalMemoryHandle, PBYTE pbLinAddr);
- WINIO_API bool _stdcall GetPhysLong(PBYTE pbPhysAddr, PDWORD pdwPhysVal);
- WINIO_API bool _stdcall SetPhysLong(PBYTE pbPhysAddr, DWORD dwPhysVal);
- WINIO_API bool _stdcall GetPortVal(WORD wPortAddr, PDWORD pdwPortVal, BYTE bSize);
- WINIO_API bool _stdcall SetPortVal(WORD wPortAddr, DWORD dwPortVal, BYTE bSize);
- WINIO_API bool _stdcall InstallWinIoDriver(PSTR pszWinIoDriverPath, bool IsDemandLoaded = false);
- WINIO_API bool _stdcall RemoveWinIoDriver();
- }
- extern bool IsNT;
- extern HANDLE hDriver;
- extern bool IsWinIoInitialized;
- bool _stdcall StartWinIoDriver();
- bool _stdcall StopWinIoDriver();
- #endif