Is there a way to get the process id of my application in C ++? I use Carbon wireframe but not Cocoa ...
Can you use the getpid () function found in unistd.h?
osx link
GetProcessPID is what you need. This takes a ProcessSerialNumber, which you can get from GetCurrentProcess.
, GetCurrentProcess, kCurrentProcess.
( getpid , PID .)
Source: https://habr.com/ru/post/1696654/More articles:Saving Windows Environment Keys for Perl Windows UPCASES - perlHow to close parent form from child form in Windows Forms 2.0? - c #Как преобразовать StreamReader в объект XMLReader в .Net 2.0/С# - c#Unit testing in Xcode 3.1 - unit-testingWorking with Common / Utility Libraries - c #Using MySQL in Visual Studio 2008 - mysqlHow to copy the contents of an FTP directory to a shared network path? - ftpSimple effects in Flex - flexIE6 and caching - cachingHow do you prefer to create your forms in MVC? - model-view-controllerAll Articles