C, Microsoft Windows

Get current process id in C

GetCurrentProcessId function

#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
 
int main(void)
{
    printf("%lu", GetCurrentProcessId());
    return EXIT_SUCCESS;
}

Get current process id with C in Linux.