wxMemorySize wxGetFreeMemory()
{
void* pMemptr = NULL;
- ULONG lSize;
+ LONG lSize;
ULONG lMemFlags;
APIRET rc;
lMemFlags = PAG_FREE;
- rc = ::DosQueryMem(pMemptr, &lSize, &lMemFlags);
+ rc = ::DosQueryMem(pMemptr, (PULONG)&lSize, &lMemFlags);
if (rc != 0)
lSize = -1L;
return (wxMemorySize)lSize;
}
+// Get Process ID
+unsigned long wxGetProcessId()
+{
+ return (unsigned long)getpid();
+}
+
// ----------------------------------------------------------------------------
// env vars
// ----------------------------------------------------------------------------