methoda.h

来自「并口控制、调试工具」· C头文件 代码 · 共 41 行

H
41
字号
#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 + =
减小字号Ctrl + -
显示快捷键?