getpid.c
来自「C语言库函数的原型,有用的拿去」· C语言 代码 · 共 38 行
C
38 行
/***
*getpid.c - get current process id
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines _getpid() - get current process id
*
*******************************************************************************/
#include <cruntime.h>
#include <oscalls.h>
/***
*int _getpid() - get current process id
*
*Purpose:
* Returns the current process id for the calling process.
*
*Entry:
* None.
*
*Exit:
* Returns the current process id.
*
*Uses:
*
*Exceptions:
*
*******************************************************************************/
int __cdecl _getpid (
void
)
{
return GetCurrentProcessId();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?