You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.5 KiB
46 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: KernelIO.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of KernelIO.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef WINIO_H
|
|
#define WINIO_H
|
|
|
|
#ifdef WINIO_DLL
|
|
//#define WINIO_API _declspec(dllexport)
|
|
#else
|
|
//#define WINIO_API _declspec(dllimport)
|
|
#endif
|
|
|
|
#define WINIO_API
|
|
|
|
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
|