mirror of
https://github.com/reactos/reactos.git
synced 2025-06-24 23:19:45 +00:00
17 lines
306 B
C++
17 lines
306 B
C++
![]() |
//
|
||
|
// getpid.cpp
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//
|
||
|
// The _getpid() function, which gets the current process identifier.
|
||
|
//
|
||
|
#include <corecrt_internal.h>
|
||
|
|
||
|
|
||
|
|
||
|
// Gets the current process identifier.
|
||
|
extern "C" int __cdecl _getpid()
|
||
|
{
|
||
|
return GetCurrentProcessId();
|
||
|
}
|