key.h

来自「扬创yc2440-t2-dm9000 ce 5.0 bsp」· C头文件 代码 · 共 46 行

H
46
字号

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the KEY_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// KEY_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef KEY_EXPORTS
#define KEY_API __declspec(dllexport)
#else
#define KEY_API __declspec(dllimport)
#endif

#include "C:\WINCE500\PLATFORM\smdk2440\INC\s2440.h"


// This class is exported from the KEY.dll
class KEY_API CKEY {
public:
	CKEY(void);
	// TODO: add your methods here.
};

extern KEY_API int nKEY;

KEY_API int fnKEY(void);

KEY_API DWORD KEY_Init(DWORD dwContext);
KEY_API BOOL KEY_Deinit(DWORD hDeviceContext);
KEY_API DWORD KEY_Open(DWORD hDeviceContext,DWORD AccessCode,DWORD ShareMode);
KEY_API BOOL KEY_Close(DWORD hOpenContext);
KEY_API BOOL KEY_IOControl(DWORD hOpenContext,
				   DWORD dwCode,
				   PBYTE pBufIn,
				   DWORD dwLenIn,
				   PBYTE pBufOut,
				   DWORD dwLenOut,
				   PDWORD pdwActualOut
				   );
KEY_API void KEY_PowerDown(DWORD hDeviceContext);
KEY_API void KEY_PowerUp(DWORD hDeviceContext);
KEY_API DWORD KEY_Read(DWORD hOpenContext,LPVOID pBuffer,DWORD Count);
KEY_API DWORD KEY_Seek(DWORD hOpenContext,long Amount,DWORD Type);
KEY_API DWORD KEY_Write(DWORD hOpenContext,LPCVOID pSourceBytes,DWORD NumberOfBytes);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?