📄 charsampleapp.h
字号:
//
// CharSampleApp.h
//
// Generated by C DriverWizard 3.1.0 (Build 1722)
// Requires DDK Only
// File created on 1/23/2009
//
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
#include <commctrl.h>
#include <tchar.h>
#include <setupapi.h>
#include <initguid.h>
#include <winioctl.h>
#include <process.h>
#include <assert.h>
#include <dbt.h>
#include "resource.h"
#include "..\intrface.h"
#define MAX_STRING_LENGTH 500
typedef VOID (*CHARSAMPLE_IO_CALLBACK)(PVOID Context);
// Structure used to store I/O information for delayed
// processing of overlapped requests
typedef struct _CHARSAMPLE_LIST_ITEM
{
struct _CHARSAMPLE_LIST_ITEM* Next;
struct _CHARSAMPLE_LIST_ITEM* Previous;
OVERLAPPED IoOverlapped;
PCHAR InBuffer;
PCHAR OutBuffer;
ULONG InSize;
ULONG OutSize;
ULONG ReturnLength;
ULONG Error;
CHARSAMPLE_IO_CALLBACK Callback;
} CHARSAMPLE_LIST_ITEM, *PCHARSAMPLE_LIST_ITEM;
extern HANDLE g_hDevice;
extern CHARSAMPLE_LIST_ITEM g_IoList;
extern CRITICAL_SECTION g_IoListLock;
ULONG CharSampleExecuteIo(HWND hDlg);
UINT __stdcall CharSampleIoCompletionThread(PVOID Context);
VOID CharSampleOutputText(LPCTSTR Format, ...);
VOID CharSampleOutputBuffer(PVOID Buffer, ULONG Size);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -