?
Solved

What do I have to #include to use GetProcessID()?

Posted on 2008-10-09
2
Medium Priority
?
1,096 Views
Last Modified: 2012-05-05
I've tried Windows.h, process.h, winbase.h...
The internet is full of example code snippets but no one mentions where I find this function.
0
Comment
Question by:sixstringking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Assisted Solution

by:paulfaz
paulfaz earned 200 total points
ID: 22688237
Hi,
According to MSDN its in windows.h

 DWORD WINAPI GetProcessId(
  __in  HANDLE Process
);

The requirements section defines where it is declared and what to include.
http://msdn.microsoft.com/en-us/library/ms683215(VS.85).aspx

Ta
Paul
0
 

Accepted Solution

by:
sixstringking earned 0 total points
ID: 22787997
That isn't working in my project for whatever reason.

But in the time it took to get a resonse I found another way to accomplish my end goal.  Thanks.
0

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question