📄 global.h
字号:
extern HANDLE g_hIocpRing;
extern ULONG_PTR g_dwComKeyRing;
extern PDEVICE_INFO *g_pDeviceInfo;
extern HANDLE g_hInstance;
extern HLINEAPP g_LineAppHandle;
extern HANDLE g_HeapHandle;
extern DWORD g_dwLines;
extern HANDLE g_hCallbackIocp;
extern HANDLE g_hWorkerThread;
// MemInitializeMacro is a macro to get the handle to the heap
#define MemInitializeMacro(hHeap) (g_HeapHandle = hHeap)
// MemAllocMacro is a macro to allocate dwBytes bytes of memory from the heap
//#define MemAllocMacro(dwBytes) (HeapAlloc(g_HeapHandle, HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY, dwBytes))
#define MemAllocMacro(dwBytes) (HeapAlloc(g_HeapHandle, HEAP_ZERO_MEMORY, dwBytes))
// MemReAllocMacro is a macro to reallocate dwBytes bytes of memory from the heap
//#define MemReAllocMacro(lpMem, dwBytes) (HeapReAlloc(g_HeapHandle, HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY, lpMem, dwBytes))
#define MemReAllocMacro(lpMem, dwBytes) (HeapReAlloc(g_HeapHandle, HEAP_ZERO_MEMORY, lpMem, dwBytes))
// MemFreeMacro is a macro to free a memory block allocated from the heap
#define MemFreeMacro(lpMem) (HeapFree(g_HeapHandle, 0, lpMem))
DWORD WINAPI WorkerThread(LPVOID lpParam);
BOOL PostJobStatus(HANDLE CompletionPort, ULONG_PTR CompletionKey,DWORD dwPageCount, DWORD StatusId, DWORD ErrorCode);
unsigned short GetTiffPages(LPCTSTR lpszFileName);
BOOL PostJobStatus2(PDEVICE_INFO pd,DWORD ErrorCode);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -