2 #pragma comment(lib,"VsGraphicsHelper.lib") 
    9 #if defined(__ID3D11DeviceContext2_INTERFACE_DEFINED__) 
   10 #error Programmatic graphics capture does not support Direct3D 11.2 APIs. 
   13 #ifndef VSG_DEFAULT_RUN_FILENAME 
   14 #define VSG_DEFAULT_RUN_FILENAME L"default.vsglog" 
   18 extern "C" void __stdcall 
VsgDbgInitDelayed(std::function<
void (
int len, 
wchar_t * pszBuffer)>);
 
   35 #ifndef DONT_SAVE_VSGLOG_TO_TEMP     
   37 #if WINAPI_FAMILY == 2 
   38             Init([=] (
int len, 
wchar_t * pszBuffer) {
 
   40                 const wchar_t * tempPath = Platform::String::Concat(Platform::String::Concat(Windows::Storage::ApplicationData::Current->TemporaryFolder->Path, L
"\\"), 
VSG_DEFAULT_RUN_FILENAME)->Data();
 
   41                 wcscpy_s(pszBuffer, len, tempPath);
 
   44             Init([=] (
int len, 
wchar_t * pszBuffer) {
 
   46                 wchar_t tempDir[MAX_PATH];
 
   47                 wchar_t filePath[MAX_PATH];
 
   49                 if(GetTempPath(MAX_PATH, tempDir) == 0)
 
   56                 wcscpy_s(pszBuffer, len, filePath);
 
   61             Init([=] (
int len, 
wchar_t * pszBuffer) { 
 
   73     void Init(std::function<
void (
int len, 
wchar_t * pszBuffer)> vsgLogGetter)
 
  115 #ifndef VSG_NODEFAULT_INSTANCE 
  120         if(g_pVsgDbg != 
NULL)
 
  132     #pragma section(".CRT$XCT",long,read) 
void __stdcall VsgDbgInitDelayed(std::function< void(int len, wchar_t *pszBuffer)>)
 
#define NULL
Definition: vcruntime.h:236
 
void ToggleHUD()
Definition: vsgcapture.h:84
 
void Init(std::function< void(int len, wchar_t *pszBuffer)> vsgLogGetter)
Definition: vsgcapture.h:73
 
void UnInitVsPix()
Definition: vsgcapture.h:118
 
void __stdcall VsgDbgEndCapture()
 
void CaptureCurrentFrame()
Definition: vsgcapture.h:99
 
void UnInit()
Definition: vsgcapture.h:79
 
_declspec(selectany) VsgDbg *g_pVsgDbg
 
~VsgDbg()
Definition: vsgcapture.h:68
 
void __stdcall VsgDbgAddHUDMessage(_In_z_ wchar_t const *szMessage)
 
#define _In_z_
Definition: sal.h:310
 
void __stdcall VsgDbgUnInit()
 
__declspec(allocate(".CRT$XCT")) _declspec(selectany) _declspec(dllexport) void(*pInitFunc)()
 
void __stdcall VsgDbgCaptureCurrentFrame()
 
void BeginCapture()
Definition: vsgcapture.h:89
 
void InitVsPix()
Definition: vsgcapture.h:126
 
void EndCapture()
Definition: vsgcapture.h:94
 
Definition: vsgcapture.h:28
 
void __stdcall VsgDbgBeginCapture()
 
#define VSG_DEFAULT_RUN_FILENAME
Definition: vsgcapture.h:14
 
void __stdcall VsgDbgCopy(_In_z_ wchar_t const *szNewVSGLog)
 
void AddMessage(_In_z_ wchar_t const *szMessage)
Definition: vsgcapture.h:109
 
void Copy(_In_z_ wchar_t const *szNewVSGLog)
Definition: vsgcapture.h:104
 
VsgDbg(bool bDefaultInit)
Definition: vsgcapture.h:31
 
void __stdcall VsgDbgToggleHUD()
 
void __stdcall VsgDbgInit(_In_z_ wchar_t const *szVSGLog)