⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 methoda.h

📁 并口控制、调试工具
💻 H
字号:
#include "stdafx.h"
#include "GPIOCTL.h"
#include <winioctl.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
class Cmethoda : public CObject
{
      public:
	      int readbitfromchar(unsigned char *value, int bitcount);
	      HANDLE * htimer;
	      int bit;
	      int m_bitcounta;

    int powi(int a,int b);
	int twoTOten(int *a);
	void tenTotwo(int * a,int b);
	void not(int *bit);
	void bitTOchar(unsigned char *value, int bitcount,int bitvalue);
 

     GENPORT_WRITE_INPUT InputBuffer;

     BOOL    IoctlResult;
      ULONG   PortNumber;
    // The following parameters are used in the IOCTL call
    HANDLE              hndFile;        // Handle to device, obtain from CreateFile
       // Input buffer for DeviceIoControl
    LONG                IoctlCode;
    
    ULONG               DataLength;
    ULONG               ReturnedLength;
    union   {
        ULONG   LongData;
        USHORT  ShortData;
        UCHAR   CharData;
    }   DataBuffer;             // Buffer received from driver (Data).
};

⌨️ 快捷键说明

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