mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Remove some unused stuff from pnUtMisc.
This commit is contained in:
@ -51,16 +51,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "Pch.h"
|
||||
#include "pnUtArray.h"
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Constants
|
||||
*
|
||||
***/
|
||||
|
||||
const wchar_t UNICODE_BOM = 0xfeff; // Unicode byte-order mark
|
||||
const char UTF8_BOM[] = "\xef\xbb\xbf";
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Module instance functions
|
||||
@ -80,14 +70,6 @@ void * ModuleGetInstance ();
|
||||
const wchar_t * AppGetCommandLine ();
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* System info functions
|
||||
*
|
||||
***/
|
||||
void MachineGetName (wchar_t * computerName, unsigned length = 32);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Misc types
|
||||
@ -101,46 +83,12 @@ typedef void (CDECL * FStateDump)(
|
||||
...
|
||||
);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Dll initialization
|
||||
*
|
||||
***/
|
||||
|
||||
#if HS_BUILD_FOR_WIN32
|
||||
#define SRV_MODULE_PRE_INIT() \
|
||||
extern BOOL WINAPI PreDllMain (HANDLE handle, DWORD reason, LPVOID); \
|
||||
extern "C" BOOL (WINAPI *_pRawDllMain)(HANDLE, DWORD, LPVOID) = PreDllMain
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* System status
|
||||
*
|
||||
***/
|
||||
|
||||
struct MemoryStatus {
|
||||
unsigned totalPhysMB; // total physical memory
|
||||
unsigned availPhysMB; // free physical memory
|
||||
unsigned totalPageFileMB; // total page file size
|
||||
unsigned availPageFileMB; // free page file size
|
||||
unsigned totalVirtualMB; // total virtual address space for calling process
|
||||
unsigned availVirtualMB; // available virtual address space for calling process
|
||||
unsigned memoryLoad; // 0..100
|
||||
};
|
||||
void MemoryGetStatus (MemoryStatus * status);
|
||||
|
||||
struct DiskStatus {
|
||||
wchar_t name[16];
|
||||
unsigned totalSpaceMB;
|
||||
unsigned freeSpaceMB;
|
||||
};
|
||||
|
||||
void DiskGetStatus (ARRAY(DiskStatus) * disks);
|
||||
|
||||
|
||||
void CpuGetInfo (
|
||||
uint16_t * cpuCaps,
|
||||
uint32_t * cpuVendor,
|
||||
|
Reference in New Issue
Block a user