2015-11-06 11:55:21 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdtypes.h"
|
|
|
|
|
|
|
|
class pjutil
|
|
|
|
{
|
|
|
|
public:
|
2016-01-17 18:48:19 +00:00
|
|
|
typedef void * DynLibHandle;
|
|
|
|
|
|
|
|
static DynLibHandle DynLibOpen(const char *pccLibraryPath, bool ShowErrors = true);
|
|
|
|
static void * DynLibGetProc(DynLibHandle LibHandle, const char * ProcedureName);
|
|
|
|
static void DynLibClose(DynLibHandle LibHandle);
|
|
|
|
#ifdef _WIN32
|
|
|
|
static void DynLibCallDllMain(void);
|
|
|
|
#endif
|
2015-11-06 11:55:21 +00:00
|
|
|
static void Sleep(uint32_t timeout);
|
|
|
|
static bool TerminatedExistingExe();
|
|
|
|
|
|
|
|
private:
|
|
|
|
pjutil(void); // Disable default constructor
|
|
|
|
pjutil(const pjutil&); // Disable copy constructor
|
|
|
|
pjutil& operator=(const pjutil&); // Disable assignment
|
|
|
|
};
|