Solved

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

Posted on 2008-10-09
2
1,064 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
2 Comments
 
LVL 3

Assisted Solution

by:paulfaz
paulfaz earned 50 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

776 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