|
|
|
2009年07月04日 10:08
#include <iostream.h>
#include <windows.h>
BOOL CALLBACK EnumWindowsProc(
HWND hwnd, // handle to parent window
LPARAM lParam // application-defined value
);
void main()
{
::EnumWindows(EnumWindowsProc,NULL);
}
BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam)
{
char text[128];
::GetWindowText(hwnd,text,128);
if (strlen(text)!=0)
cout< |
2009年07月02日 15:49
2009年06月23日 16:44
#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>
void main()
{
PROCESSENTRY32 pe32;
pe32.dwSize=sizeof(pe32);
HANDLE hProcessSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
BOOL bMore=Process32First(hProcessSnap,&pe32);//The first Snap
printf("Input the Process Name to terminate\n");
char name[MAX_PATH];
scanf("%s",name);
while(bMore)
{
if(strcmp(p |
2009年06月23日 16:04
#include <stdio.h>
#include <windows.h>
#include <tlhelp32.h>
void main()
{
PROCESSENTRY32 pe32; //PROCESSENTRY32的结构,用来保存进程信息
pe32.dwSize=sizeof(pe32);//使用这个结构之前首先要设置它的大小
HANDLE hProcessSnap=::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
//TH32CS_SNAPPROCESS:枚举系统内的进程
//TH32CS_SNAPTHREAD:枚举系统内的线程
//TH32CS_SNAPHEAPLIST:枚举指定PID进程的堆
// |
2009年06月21日 10:26
2009年6月20日英语四级试题A卷参考答案
Free Admission To Museums
Recently, museums in mounting numbers become admission-free to the public both home abroad. The purpose of this practice is to offer more opportunities for citizens to explore and get easy access to the world of history, culture and knowledge.
Although free admission to museums enjoys distinct advantages, it also brings harmful effects. In the first place, these valuable cultural relics displayed may be |
|
|
|