Click here to Skip to main content
15,895,142 members
Articles / Programming Languages / VBScript

ProSysLib: Dissecting the Process

Rate me:
Please Sign up or sign in to vote.
4.84/5 (69 votes)
22 Nov 2010CPOL12 min read 129.2K   2.6K   174  
Access detailed information about the current process the easiest way.
#pragma once

/////////////////////////////////////////////////////////////////
// ProSysLib supports Windows 2000 or later in 32-bit mode,
// and Windows XP or later in 64-bit mode;
//
// Only 32-bit version of ProSysLib can be used on Windows 2000
// 64-bit OS, because Windows 2000 doesn't support 64-bit 
// Automation extensions at all (variant types VT_I8 and VT_UI8),
// making it impossible to properly exchange data between a
// client application and an Automation Server.
/////////////////////////////////////////////////////////////////

#ifdef _WIN64

	#ifndef WINVER
	#define WINVER 0x0501           // Windows XP or later;
	#endif

	#ifndef _WIN32_WINNT
	#define _WIN32_WINNT 0x0501     // Windows XP or later;
	#endif

	#ifndef _WIN32_WINDOWS
	#define _WIN32_WINDOWS 0x0501	// Windows XP or later;
	#endif

	#ifndef _WIN32_IE       
	#define _WIN32_IE 0x0501		// IE 5.01 or later
	#endif

#else

	#ifndef WINVER
	#define WINVER 0x0500           // Windows 2000 or later;
	#endif

	#ifndef _WIN32_WINNT
	#define _WIN32_WINNT 0x0500     // Windows 2000 or later;
	#endif

	#ifndef _WIN32_WINDOWS
	#define _WIN32_WINDOWS 0x0500	// Windows 2000 or later;
	#endif

	#ifndef _WIN32_IE       
	#define _WIN32_IE 0x0500		// IE 5.0 or later
	#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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Sibedge IT
Ireland Ireland
My online CV: cv.vitalytomilov.com

Comments and Discussions