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

Posted on 2008-10-09
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.
Question by:sixstringking
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

Assisted Solution

paulfaz earned 50 total points
ID: 22688237
According to MSDN its in windows.h

  __in  HANDLE Process

The requirements section defines where it is declared and what to include.


Accepted Solution

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.

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

696 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