📄 getpid.c
字号:
/***
*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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -