added wxGetProcessId()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-06-12 20:26:24 +00:00
parent f87dfa063a
commit c1cb41536a
4 changed files with 41 additions and 3 deletions

View File

@@ -40,6 +40,12 @@
#include "wx/msw/private.h" // includes <windows.h>
#ifdef __GNUWIN32_OLD__
// apparently we need to include winsock.h to get WSADATA and other stuff
// used in wxGetFullHostName() with the old mingw32 versions
#include <winsock.h>
#endif
#include "wx/timer.h"
#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__)
@@ -941,6 +947,15 @@ long wxGetFreeMemory()
#endif
}
unsigned long wxGetProcessId()
{
#ifdef __WIN32__
return ::GetCurrentProcessId();
#else
return 0;
#endif
}
// Emit a beeeeeep
void wxBell()
{