Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

ProSysLib: Dissecting the Process

, 22 Nov 2010 CPOL
Access detailed information about the current process the easiest way.
ProcessInfo32_bin.zip
ProcessInfo.exe
ProSysLib.dll
Interop.ProSysLib.dll
ProcessInfo64_bin.zip
Interop.ProSysLib.dll
ProcessInfo.exe
ProSysLib.dll
ProcessInfo_bin.zip
PSL64v0.9.dll
Interop.ProSysLib.dll
ProcessInfo.exe
PSL32v0.9.dll
ProSysLib_v0.9.zip
ProSysLib_v0.9
Bin
PSL32v0.9.dll
PSL64v0.9.dll
Help
Samples
C#2008
ProcessInfo
Properties
Settings.settings
ProcessViewer
Properties
Settings.settings
VB6
CPUInfo.exe
CPUInfo.frm
CPUInfo.frx
CPUInfo.vbp
CPUInfo.vbw
VC2008
Deployment
Src
mssccprj.scc
ProSysLib.def
ProSysLib.rgs
ProSysLib.vcproj.vspscc
ProSysLib.vssscc
PSLSystem.rgs
PSLv0.5Setup.zip
PSLv0.5Setup.exe
PSLv0.7Setup.zip
PSLv0.7Setup.exe
#pragma once

typedef unsigned __int3264 ABIG;
typedef unsigned __int64 BIG64;

class CPSLUtilities
{
public:

	//////////////////////////////////////////////////
	// Method GetVariantBig;
	//
	// Attempts extraction of ABIG from a Variant,
	// optionally indicating whether there was an error
	// during extraction;
	static ABIG GetVariantBig(LPVARIANT pVar, bool * pError = NULL);


	//////////////////////////////////////////////////
	// Method SetVariantBig;
	//
	// Sets a 64-bit long value into the variant when
	// in 64-bit mode, and 32-bit when in 32-bit mode;
	static void SetVariantBig(LPVARIANT pVar, ABIG Value);


	///////////////////////////////////////////////////
	// Method SetVariant64Bit;
	//
	// Sets 64-bit long value into the variant when the
	// current OS is not Windows 2000, or 32-bit when it
	// is Windows 2000.
	//
	// This method handles the automation problem that
	// variant types VT_I8 and VT_UI8 are not supported
	// on Windows 2000;
	static void SetVariant64Bit(LPVARIANT pVar, BIG64 Value);


	//////////////////////////////////////////////////
	// Method GetLongFilePathDetails;
	//
	// Takes a full file path, presumably in the short
	// form, converts it into the long form and then
	// extracts three parameters from it: full path,
	// directory and the file name;
	static void GetLongFilePathDetails(LPCTSTR sPath, _bstr_t & filePath, _bstr_t & fileDir, _bstr_t & fileName);


	/////////////////////////////////////////////////
	// Method FixSysPath;
	//
	static void FixSysPath(tstring & path);

private:

	static tstring s_SystemFolder;
};

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)

Share

About the Author

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

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 22 Nov 2010
Article Copyright 2008 by Vitaly Tomilov
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid