Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
version.cpp File Reference
#include <Windows.h>
#include <tlhelp32.h>
#include <cstdio>
#include <filesystem>
#include <fstream>
#include <json.hpp>
#include "Core/Private/Ark/ArkBaseApi.h"
#include "Core/Private/Atlas/AtlasBaseApi.h"
#include "Core/Public/Logger/Logger.h"
#include "Core/Public/Tools.h"
+ Include dependency graph for version.cpp:

Go to the source code of this file.

Functions

DWORD GetParentProcessId ()
 
bool AttachToParent ()
 
void OpenConsole ()
 
std::time_t GetFileWriteTime (const std::filesystem::path &filename)
 
void PruneOldLogs ()
 
std::string DetectGame ()
 
void Init ()
 
BOOL WINAPI DllMain (HINSTANCE hinst_dll, DWORD fdw_reason, LPVOID)
 
void GetFileVersionInfoA_wrapper ()
 
void GetFileVersionInfoByHandle_wrapper ()
 
void GetFileVersionInfoExA_wrapper ()
 
void GetFileVersionInfoExW_wrapper ()
 
void GetFileVersionInfoSizeA_wrapper ()
 
void GetFileVersionInfoSizeExA_wrapper ()
 
void GetFileVersionInfoSizeExW_wrapper ()
 
void GetFileVersionInfoSizeW_wrapper ()
 
void GetFileVersionInfoW_wrapper ()
 
void VerFindFileA_wrapper ()
 
void VerFindFileW_wrapper ()
 
void VerInstallFileA_wrapper ()
 
void VerInstallFileW_wrapper ()
 
void VerLanguageNameA_wrapper ()
 
void VerLanguageNameW_wrapper ()
 
void VerQueryValueA_wrapper ()
 
void VerQueryValueW_wrapper ()
 

Variables

HINSTANCE m_hinst_dll = nullptr
 
UINT_PTR mProcs [17] { 0 }
 
LPCSTR import_names []
 

Function Documentation

◆ AttachToParent()

bool AttachToParent ( )

Definition at line 52 of file version.cpp.

+ Here is the caller graph for this function:

◆ DetectGame()

std::string DetectGame ( )

Definition at line 124 of file version.cpp.

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE hinst_dll,
DWORD fdw_reason,
LPVOID  )

Definition at line 178 of file version.cpp.

+ Here is the call graph for this function:

◆ GetFileVersionInfoA_wrapper()

void GetFileVersionInfoA_wrapper ( )

◆ GetFileVersionInfoByHandle_wrapper()

void GetFileVersionInfoByHandle_wrapper ( )

◆ GetFileVersionInfoExA_wrapper()

void GetFileVersionInfoExA_wrapper ( )

◆ GetFileVersionInfoExW_wrapper()

void GetFileVersionInfoExW_wrapper ( )

◆ GetFileVersionInfoSizeA_wrapper()

void GetFileVersionInfoSizeA_wrapper ( )

◆ GetFileVersionInfoSizeExA_wrapper()

void GetFileVersionInfoSizeExA_wrapper ( )

◆ GetFileVersionInfoSizeExW_wrapper()

void GetFileVersionInfoSizeExW_wrapper ( )

◆ GetFileVersionInfoSizeW_wrapper()

void GetFileVersionInfoSizeW_wrapper ( )

◆ GetFileVersionInfoW_wrapper()

void GetFileVersionInfoW_wrapper ( )

◆ GetFileWriteTime()

std::time_t GetFileWriteTime ( const std::filesystem::path & filename)

Definition at line 80 of file version.cpp.

◆ GetParentProcessId()

DWORD GetParentProcessId ( )

Definition at line 25 of file version.cpp.

+ Here is the caller graph for this function:

◆ Init()

void Init ( )

Definition at line 150 of file version.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenConsole()

void OpenConsole ( )

Definition at line 66 of file version.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PruneOldLogs()

void PruneOldLogs ( )

Definition at line 90 of file version.cpp.

+ Here is the caller graph for this function:

◆ VerFindFileA_wrapper()

void VerFindFileA_wrapper ( )

◆ VerFindFileW_wrapper()

void VerFindFileW_wrapper ( )

◆ VerInstallFileA_wrapper()

void VerInstallFileA_wrapper ( )

◆ VerInstallFileW_wrapper()

void VerInstallFileW_wrapper ( )

◆ VerLanguageNameA_wrapper()

void VerLanguageNameA_wrapper ( )

◆ VerLanguageNameW_wrapper()

void VerLanguageNameW_wrapper ( )

◆ VerQueryValueA_wrapper()

void VerQueryValueA_wrapper ( )

◆ VerQueryValueW_wrapper()

void VerQueryValueW_wrapper ( )

Variable Documentation

◆ import_names

LPCSTR import_names[]
Initial value:
= {
"GetFileVersionInfoA", "GetFileVersionInfoByHandle", "GetFileVersionInfoExA", "GetFileVersionInfoExW",
"GetFileVersionInfoSizeA", "GetFileVersionInfoSizeExA", "GetFileVersionInfoSizeExW", "GetFileVersionInfoSizeW",
"GetFileVersionInfoW", "VerFindFileA", "VerFindFileW", "VerInstallFileA", "VerInstallFileW", "VerLanguageNameA",
"VerLanguageNameW", "VerQueryValueA", "VerQueryValueW"
}

Definition at line 18 of file version.cpp.

◆ m_hinst_dll

HINSTANCE m_hinst_dll = nullptr

Definition at line 15 of file version.cpp.

◆ mProcs

UINT_PTR mProcs[17] { 0 }

Definition at line 16 of file version.cpp.