Skip to content

Instantly share code, notes, and snippets.

LONG GetCurrentTopology(DISPLAYCONFIG_TOPOLOGY_ID& currentTopology)
{
LONG lRet = ERROR_SUCCESS;
UINT32 numPathInfoArrayElements = 0;
UINT32 numModeInfoArrayElements = 0;
DISPLAYCONFIG_PATH_INFO emptyPathInfo = { 0 };
DISPLAYCONFIG_MODE_INFO emptyModeInfo = { 0 };
std::vector<DISPLAYCONFIG_PATH_INFO> vecDisplayConfigPathInfo;
std::vector<DISPLAYCONFIG_MODE_INFO> vecDisplayConfigModeInfo;
currentTopology = DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32;
// Game start
var __beginTime = new Date().getTime();
var __dump = new Array(15).fill(0);
var __stopper = function (id) {
var elapsed = new Date().getTime() - __beginTime;
__dump[id] ++;
return elapsed < 0;
};