Solved

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

Posted on 2008-10-09
2
1,086 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 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

733 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