A-A+

诚信网维工作室 基于 zwfgdlc 的源代码编译的显示器一键恢复出厂设置程序 下载

2018年08月16日 软件分享 暂无评论 阅读 554 次

诚信网维工作室今天基于网吧显示器颜色统一调整设置工具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;
}


下载:

显示器恢复出厂工具(成品 源码).rar

万豪棋牌手机版技术交流群

给我留言

<meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name= <meta name=

Copyright © 万豪棋牌手机版 保留所有权利.   联系站长 万豪棋牌手机版技术交流群 托管于阿里云 冀ICP备12002422号-3

用户登录

分享到: