这是一本学习 window编程的很好的参考教材

源代码在线查看: common.h

软件大小: 5535 K
上传用户: ok34090512
关键词: window 编程 教材
下载地址: 免注册下载 普通下载 VIP

相关代码

				/******************************************************************************\ 
				*       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  
				 
				// 
				// 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 
				    ); 
							

相关资源