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

📄 common.h

📁 这是一本学习 window编程的很好的参考教材
💻 H
字号:
/******************************************************************************\ 
*       This is a part of the Microsoft Source Code Samples.  
*  Copyright (C) 1994-1998 Microsoft Corporation. 
*       All rights reserved.  
*       This source code is only intended as a supplement to  
*       Microsoft Development Tools and/or WinHelp documentation. 
*       See these sources for detailed information regarding the  
*       Microsoft samples programs. 
\******************************************************************************/ 
 
#define TITLE_SIZE          64 
#define PROCESS_SIZE        MAX_PATH 
#include <tchar.h> 
 
// 
// task list structure 
// 
typedef struct _TASK_LIST { 
    DWORD       dwProcessId; 
    DWORD       dwInheritedFromProcessId; 
    BOOL        flags; 
    HANDLE      hwnd; 
    TCHAR        ProcessName[PROCESS_SIZE]; 
    TCHAR        WindowTitle[TITLE_SIZE]; 
} TASK_LIST, *PTASK_LIST; 
 
typedef struct _TASK_LIST_ENUM { 
    PTASK_LIST  tlist; 
    DWORD       numtasks; 
} TASK_LIST_ENUM, *PTASK_LIST_ENUM; 
 
 
// 
// Function pointer types for accessing platform-specific functions 
// 
typedef DWORD (*LPGetTaskList)(PTASK_LIST, DWORD); 
typedef BOOL  (*LPEnableDebugPriv)(VOID); 
 
 
// 
// Function prototypes 
// 
DWORD 
GetTaskList95( 
    PTASK_LIST  pTask, 
    DWORD       dwNumTasks 
    ); 
 
DWORD 
GetTaskListNT( 
    PTASK_LIST  pTask, 
    DWORD       dwNumTasks 
    ); 
 
 
BOOL 
EnableDebugPriv95( 
    VOID 
    ); 
 
BOOL 
EnableDebugPrivNT( 
    VOID 
    ); 
 
BOOL 
KillProcess( 
    PTASK_LIST tlist, 
    BOOL       fForce 
    ); 
 
VOID 
GetWindowTitles( 
    PTASK_LIST_ENUM te 
    ); 
 
BOOL 
MatchPattern( 
    LPTSTR String, 
    LPTSTR Pattern 
    ); 

⌨️ 快捷键说明

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