Click here to Skip to main content
15,897,518 members
Articles / Containers / Virtual Machine

Enumerating processes on NT/Win9x

Rate me:
Please Sign up or sign in to vote.
4.94/5 (14 votes)
9 Sep 20024 min read 228K   3.5K   49  
A simple class encapsulating tlhelp32 and PSAPI
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by EnumProcessTest.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ENUMPROCESSTEST_DIALOG      102
#define IDR_MAINFRAME                   128
#define IDI_PROCESS                     129
#define IDI_MODULE                      130
#define IDI_WMODULE                     131
#define IDI_PROCESS16                   132
#define IDC_ENUMERATEPROCESSES          1000
#define IDC_PSAPI                       1001
#define IDC_TOOLHELP                    1002
#define IDC_MODULE                      1004
#define IDC_MAINLIST                    1005
#define IDC_ENUM16                      1006

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        133
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1007
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Sweden Sweden
Been interested in computers since he got his hands on an ABC 80, and finally managed to get it to play a simple tune (the ABC 80 didn't have a soundchip, just some "prerecorded" sounds you could address with assembler. It did, however, create some sweet?? music when reading a program from tape).

Mostly selftaught in Visual Studio, he is currently working as a freelance programmer.

Comments and Discussions