DONT_SAVE_VSGLOG_TO_TEMP
Collapse the table of content
Expand the table of content

DONT_SAVE_VSGLOG_TO_TEMP

 

Defines by its presence whether the graphics log file is saved to the user's temporary files directory.

#define DONT_SAVE_VSGLOG_TO_TEMP

A preprocessor symbol that by its presence or absence determines whether the graphics log file is saved to the user's temporary files directory. If this symbol is defined, then the file name defined by VSG_DEFAULT_RUN_FILENAME is relative to the current directory of the captured app, or is an absolute path; otherwise, the file name defined by VSG_DEFAULT_RUN_FILENAME is relative to the user's temporary files directory and can't be an absolute path.

Depending on the user's privileges, the graphics log file may not be able to be saved in an arbitrary location. We recommend that you prefer to save graphics logs to the user's temporary files directory, or another known-good location, if you are unsure whether the location you would choose can be written to by the user.

To prevent the graphics log file from being saved to the temporary files directory, you must defined DONT_SAVE_VSGLOG_TO_TEMP before you include vsgcapture.h.

Example

This example shows how to save the graphics log file to an absolute path on the host machine.

// Define DONT_SAVE_VSGLOG_TO_TEMP and VSG_DEFAULT_RUN_FILENAME before including vsgcapture.h
#define DONT_SAVE_VSGLOG_TO_TEMP
#define VSG_DEFAULT_RUN_FILENAME L"C:\\Graphics Diagnostics Captures\\default.vsglog"

#include <vsgcapture.h>

Show:
© 2016 Microsoft