A-A+
诚信网维工作室 基于 zwfgdlc 的源代码编译的显示器一键恢复出厂设置程序 下载
诚信网维工作室今天基于网吧显示器颜色统一调整设置工具V2.0和网吧显示器自动恢复出厂设置程序 下载这个帖子里的作者提供的源代码,也重新编译了一个显示器恢复出厂设置的程序。
感谢zwfgdlc老大的辛苦付出。
今天在这里再上传一下诚信网维工作室编译的程序和源代码:
// test.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "test.h" #include <PhysicalMonitorEnumerationAPI.h> #include <HighLevelMonitorConfigurationAPI.h> #pragma comment(lib, "dxva2.lib") int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { HMONITOR hMonitor = NULL; DWORD cPhysicalMonitors; LPPHYSICAL_MONITOR pPhysicalMonitors = NULL; // Get the monitor handle. hMonitor = MonitorFromWindow(GetDesktopWindow(), MONITOR_DEFAULTTOPRIMARY); // Get the number of physical monitors. BOOL bSuccess = GetNumberOfPhysicalMonitorsFromHMONITOR( hMonitor, &cPhysicalMonitors ); if (bSuccess) { // Allocate the array of PHYSICAL_MONITOR structures. pPhysicalMonitors = (LPPHYSICAL_MONITOR)malloc( cPhysicalMonitors* sizeof(PHYSICAL_MONITOR)); if (pPhysicalMonitors != NULL) { // Get the array. bSuccess = GetPhysicalMonitorsFromHMONITOR( hMonitor, cPhysicalMonitors, pPhysicalMonitors); // Use the monitor handles (not shown). RestoreMonitorFactoryDefaults(pPhysicalMonitors->hPhysicalMonitor); // Close the monitor handles. bSuccess = DestroyPhysicalMonitors( cPhysicalMonitors, pPhysicalMonitors); // Free the array. free(pPhysicalMonitors); } } return 0; }
下载:
下载:https://wws.lanzoui.com/igLEoiqgrxa 密码:50sj
链接:https://pan.baidu.com/s/1ucAIFFoY3gN9EouDzW7E0A 提取码:80lf
复制这段内容后打开百度网盘手机App,操作更方便哦--来自百度网盘超级会员V1的分享