91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 29.27 KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2024-10-16
  • 語言: 其他
  • 標簽: nVidia??控制面板??API??

資源簡介

通過 nvcpl.dll 提供的 API 獲取或者設置分辨率,屏幕移動等

資源截圖

代碼片段和文件信息

//?hello_nvAPI.cpp?:?定義控制臺應用程序的入口點。
//

#include?“stdafx.h“
#include?“Windows.h“
#include?“Winbase.h“

#include?????
#include?
#include?

#include?“NvPanelApi.h“


#pragma???warning(disable:4996)

//---------------------------------------------------------------------
//?Defines
//---------------------------------------------------------------------
#define?CMPERINCH?2.54f?//?Number?of?centimeters?per?inch
#ifndef?EDS_RAWMODE
#define?EDS_RAWMODE?0x00000002?//?Enumerate?graphics?card?display?modes?not?supported?by?monitor
#endif//EDS_RAWMODE

void?GetDisplayInfo1(HINSTANCE);
void?InitInfo(HINSTANCE);???
void?DesktopConfiguration(HINSTANCE);???
void?GPUConfiguration(HINSTANCE);

typedef?BOOL?(WINAPI*?fEnumDisplayDevicesA)(LPCSTR?lpDevice?DWORD?iDevNumPDISPLAY_DEVICE?lpDisplayDevice?DWORD?dwFlags);

void?GetDisplayInfo2(int?argc?char*?argv[]HINSTANCE);
int?PerformRefreshConnectedDevices(DWORDHINSTANCE);
int?PerformNvGetDisplayInfo(int?argc?char*?argv[]HINSTANCE);
int?PerformNvEnumDisplaySettings(int?argc?char*?argv[]HINSTANCE);
int?PerformEnumConnectedDevices(int?argc?char*?argv[]HINSTANCE);
BOOL?IsEnumDisplayDevicesSupported();

void?main()
{
HINSTANCE?hCpl?=?NULL;
hCpl?=?LoadLibrary(?“nvcpl.dll“?);
if(?hCpl?==?NULL?)
{
return;
}

char?lpszCmdLine[50];
fdtcfgex?pGetdtcfgex?=?(fdtcfgex)GetProcAddress(?hCpl“dtcfgex“?);

//獲取指定顯示的數(shù)字振動水平
strcpy(lpszCmdLine?“getdvcvalue?0“);?
pGetdtcfgex(lpszCmdLine);
printf(“dvc:%s\n“l(fā)pszCmdLine);

//獲取指定顯示的對比度值
strcpy(lpszCmdLine?“getcontrastvalue?0?all“);??//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“contrast:%s\n“l(fā)pszCmdLine);

//獲取指定顯示的對比度值標準化值
strcpy(lpszCmdLine?“get_normalize_contrastvalue?0?all“);??
pGetdtcfgex(lpszCmdLine);
printf(“normalize_contrast:%s\n“l(fā)pszCmdLine);

//獲取的DVI支持的高清晰度格式的列表該功能與顯示配置有關
strcpy(lpszCmdLine?“getdvihdformat?0“);??
pGetdtcfgex(lpszCmdLine);
printf(“dvihdformat:%s\n“l(fā)pszCmdLine);

//獲取亮度
strcpy(lpszCmdLine?“getbrightnessvalue?0?all“);//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“brightness:%s\n“l(fā)pszCmdLine);

//獲取亮度標準化值
strcpy(lpszCmdLine?“get_normalize_brightnessvalue?0?all“);//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“normalize_brightness:%s\n“l(fā)pszCmdLine);


//獲取指定的顯示器的gamma值
strcpy(lpszCmdLine?“getgammavalue?0?all“);//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“gamma:%s\n“l(fā)pszCmdLine);

//獲取指定的顯示器的銳度值
strcpy(lpszCmdLine?“getsharpnessvalue?0“);//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“sharpness:%s\n“l(fā)pszCmdLine);

//獲取指定的顯示器的銳度值標準化值
strcpy(lpszCmdLine?“get_normalize_sharpnessvalue?0“);//red?blue?green?all
pGetdtcfgex(lpszCmdLine);
printf(“normalize_sharpness:%s\n“l(fā)pszCmdLine);

//獲取錯誤號
fGetdtcfgLastError?pGetdtcfgLastError?=?(fGetdtcfgLastError)GetProcAddress(?hCpl“GetdtcfgLastError“?);
DWORD?errorNum?=?pGetdtcfgLastError();

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

????..A..H.?????18432??2012-01-04?09:59??nVidia面板API\hello_nvAPI.suo

?????文件????????908??2012-01-04?10:01??nVidia面板API\hello_nvCPLAPI.sln

????..A..H.?????10240??2012-01-06?15:05??nVidia面板API\hello_nvCPLAPI.suo

?????文件??????51872??2012-01-04?09:59??nVidia面板API\hello_nvCPLAPI\hello_nvAPI.cpp

?????文件???????4638??2012-01-06?15:05??nVidia面板API\hello_nvCPLAPI\hello_nvCPLAPI.vcproj

?????文件???????3474??2011-12-31?14:02??nVidia面板API\hello_nvCPLAPI\NvApiError.h

?????文件??????41236??2011-12-31?14:09??nVidia面板API\hello_nvCPLAPI\NvPanelApi.h

?????文件???????1207??2011-12-29?16:10??nVidia面板API\hello_nvCPLAPI\ReadMe.txt

?????文件????????218??2011-12-30?10:46??nVidia面板API\hello_nvCPLAPI\stdafx.cpp

?????文件????????233??2011-12-29?16:10??nVidia面板API\hello_nvCPLAPI\stdafx.h

?????文件????????498??2011-12-29?16:10??nVidia面板API\hello_nvCPLAPI\targetver.h

?????目錄??????????0??2012-01-06?15:04??nVidia面板API\hello_nvCPLAPI

?????目錄??????????0??2012-01-06?15:04??nVidia面板API

-----------?---------??----------?-----??----

???????????????132956????????????????????13


評論

共有 條評論