From: Stefan Neis Date: Mon, 28 Mar 2005 18:00:45 +0000 (+0000) Subject: Added new function wxGetProcessId. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/264f00e7d963802202f56e8eb19663d8d73f73fb Added new function wxGetProcessId. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index 1ee5362ef4..f29aafc86b 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -231,6 +231,12 @@ wxMemorySize wxGetFreeMemory() return (wxMemorySize)lSize; } +// Get Process ID +unsigned long wxGetProcessId() +{ + return (unsigned long)getpid(); +} + // ---------------------------------------------------------------------------- // env vars // ----------------------------------------------------------------------------