-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCommon.h
More file actions
23 lines (18 loc) · 675 Bytes
/
Common.h
File metadata and controls
23 lines (18 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include <string>
using namespace std;
extern bool gEnableLogOutput;
wstring getAppNameW();
wstring getAppPath();
string getModuleNameA(HMODULE hModule);
string getAppNameA();
string getAppPathA();
string getFileName(const string &filePath);
string formatString(const char *format, ...);
string toHexString(const char *data, int size);
string getLogString();
int writeDataToFile(const char *fileName, void *buffer, int size);
int readDataFromFile(const char *fileName, void *buffer, int size);
int appendDataToFile(const char *fileName, void *buffer, int size);
int logOutput(const char *text);
int logOutput(const string &text);