BlockTheSpot/src/BlockTheSpot.cpp
2019-08-22 07:10:10 +07:00

68 lines
No EOL
1.8 KiB
C++

// BlockTheSpot.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
bool AddDllToBlacklist (const wchar_t* dll_name) { return true; }
void ClearReportsBetween_ExportThunk (time_t begin, time_t end) {}
int CrashForException_ExportThunk (EXCEPTION_POINTERS* info) {
return EXCEPTION_CONTINUE_SEARCH;
}
void DisableHook () {}
uint32_t DrainLog (uint8_t* buffer,
uint32_t buffer_size,
uint32_t* log_remaining) {
return 0;
}
bool DumpHungProcessWithPtype_ExportThunk (HANDLE process_handle,
const char* ptype) {
return false;
}
void DumpProcessWithoutCrash (void* task_port) {}
int32_t GetApplyHookResult () { return 0; }
uint32_t GetBlockedModulesCount () { return 0; }
size_t GetCrashReports_ExportThunk (void* reports,
size_t reports_size) {
return 0;
}
const wchar_t* GetCrashpadDatabasePath_ExportThunk () {
return nullptr;
}
void* GetHandleVerifier () {
return NULL;
}
uint32_t GetInstallDetailsPayload () { return 0; }
uint32_t GetUniqueBlockedModulesCount () { return 0; }
bool GetUserDataDirectoryThunk (wchar_t* user_data_dir,
size_t user_data_dir_length,
wchar_t* invalid_user_data_dir,
size_t invalid_user_data_dir_length) {
return true;
}
HANDLE InjectDumpForHungInput_ExportThunk (HANDLE process) {
return nullptr;
}
bool IsBlacklistInitialized () {
return false;
}
bool IsCrashReportingEnabledImpl () {
return false;
}
bool RegisterLogNotification (HANDLE event_handle) {
return false;
}
void RequestSingleCrashUpload_ExportThunk (const char* local_id) {}
void SetCrashKeyValueImpl () {}
void SetMetricsClientId (const char* client_id) {}
void SetUploadConsent_ExportThunk (bool consent) {}
void SignalChromeElf () {}
void SignalInitializeCrashReporting () {}
void SuccessfullyBlocked (const wchar_t** blocked_dlls, int* size) {}