• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1108
  • Last Modified:

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

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
sixstringking
Asked:
sixstringking
2 Solutions
 
paulfazCommented:
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
 
sixstringkingAuthor Commented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now