Click here to Skip to main content
15,884,986 members
Articles / Desktop Programming / MFC

Get Process Info with NtQueryInformationProcess

Rate me:
Please Sign up or sign in to vote.
4.70/5 (13 votes)
21 Jul 2007CPOL6 min read 188.3K   13.2K   71  
Get process parent ID, command-line, etc.
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GetNtProcessInfo", "GetNtProcessInfo.vcproj", "{1F09EFE7-BE51-450F-95A5-CB164C106104}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Debug Unicode = Debug Unicode
		Release = Release
		Release Unicode = Release Unicode
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Debug.ActiveCfg = Debug|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Debug.Build.0 = Debug|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Debug Unicode.ActiveCfg = Debug Unicode|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Debug Unicode.Build.0 = Debug Unicode|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Release.ActiveCfg = Release|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Release.Build.0 = Release|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Release Unicode.ActiveCfg = Release Unicode|Win32
		{1F09EFE7-BE51-450F-95A5-CB164C106104}.Release Unicode.Build.0 = Release Unicode|Win32
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

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
United States United States
Steven Moore is a self-taught programmer on and off over the last 20+ years. He programmed in BASIC, Microsoft Visual Basic for Applications (VBA), Wang COBOL, a little Wang ASM, JavaScript, a little in C++ with inline ASM and Python 3.x. First article was GetNtProcessInfo on this site.

Comments and Discussions