59 if (
wcsstr(pFullPath,
L"\\DRIVERS\\"))
117 DriverInfoData.
cbSize =
sizeof(DriverInfoData);
121 DriverInfoData.
cbSize =
sizeof(DriverInfoData);
174 InfoData.
cbSize =
sizeof(InfoData);
214 IDirect3D9 * ppObj =
NULL;
244 szText[(
sizeof(szText)/
sizeof(
WCHAR))-1] =
L'\0';
265 if (dwMemory > (1048576))
272 szFormat[(
sizeof(szFormat)/
sizeof(
WCHAR))-1] =
L'\0';
283 szFormat[(
sizeof(szFormat)/
sizeof(
WCHAR))-1] =
L'\0';
346 szDisplay[0] =
L'\0';
348 szDisplay[(
sizeof(szDisplay)/
sizeof(
WCHAR))-1] =
L'\0';
350 wsprintfW (szText,
L"%s %u", szDisplay, pContext->NumDisplayAdapter + 1);
353 hDlgs[pContext->NumDisplayAdapter] = hwndDlg;
354 pContext->NumDisplayAdapter++;
static void DisplayPageSetDeviceDetails(HWND *hDlgCtrls, LPCGUID classGUID, LPGUID *deviceGUID)
VOID EnumerateDrivers(PVOID Context, HDEVINFO hList, PSP_DEVINFO_DATA pInfoData)
static BOOL InitializeDialog(HWND hwndDlg, PDISPLAY_DEVICEW pDispDevice)
INT_PTR CALLBACK DisplayPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
static UINT WINAPI DriverFilesCallback(IN PVOID Context, IN UINT Notification, IN UINT_PTR Param1, IN UINT_PTR Param2)
void InitializeDisplayAdapters(PDXDIAG_CONTEXT pContext)
BOOL GetFileModifyTime(LPCWSTR pFullPath, WCHAR *szTime, int szTimeSize)
BOOL GetFileVersion(LPCWSTR szAppName, WCHAR *szVer, DWORD szVerSize)
struct DXDIAG_CONTEXT * PDXDIAG_CONTEXT
BOOL GetRegValue(HKEY hBaseKey, LPWSTR SubKey, LPWSTR ValueName, DWORD Type, LPWSTR Result, DWORD Size)
#define IDS_FORMAT_ADAPTER_MEM
#define IDC_STATIC_ADAPTER_ID
#define IDC_STATIC_ADAPTER_CHIP
#define IDD_DISPLAY_DIALOG
#define IDC_STATIC_ADAPTER_MODE
#define IDC_STATIC_ADAPTER_DATE
#define IDS_FORMAT_ADAPTER_MODE
#define IDC_STATIC_ADAPTER_MONITOR
#define IDC_STATIC_ADAPTER_VERSION
#define IDC_BUTTON_TEST3D
#define IDC_BUTTON_TESTDD
#define IDC_STATIC_ADAPTER_DAC
#define IDS_DISPLAY_DIALOG
#define IDS_NOT_APPLICABLE
#define IDC_STATIC_ADAPTER_DRIVER
#define IDC_STATIC_ADAPTER_VENDOR
#define IDC_STATIC_ADAPTER_MEM
#define IDC_STATIC_ADAPTER_LOGO
#define IDirect3D9_GetAdapterIdentifier(p, a, b, c)
#define IDirect3D9_Release(p)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define INVALID_HANDLE_VALUE
#define ERROR_NO_MORE_ITEMS
#define HeapFree(x, y, z)
BOOL WINAPI GetFileTime(IN HANDLE hFile, OUT LPFILETIME lpCreationTime OPTIONAL, OUT LPFILETIME lpLastAccessTime OPTIONAL, OUT LPFILETIME lpLastWriteTime OPTIONAL)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI SystemTimeToTzSpecificLocalTime(CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation, CONST SYSTEMTIME *lpUniversalTime, LPSYSTEMTIME lpLocalTime)
BOOL WINAPI SetupDiSetDeviceInstallParamsW(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN PSP_DEVINSTALL_PARAMS_W DeviceInstallParams)
BOOL WINAPI SetupDiEnumDeviceInfo(HDEVINFO devinfo, DWORD index, PSP_DEVINFO_DATA info)
BOOL WINAPI SetupDiGetDeviceInstallParamsW(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, OUT PSP_DEVINSTALL_PARAMS_W DeviceInstallParams)
BOOL WINAPI SetupDiCallClassInstaller(DI_FUNCTION InstallFunction, HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData)
BOOL WINAPI SetupDiGetDeviceRegistryPropertyW(HDEVINFO DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DWORD Property, PDWORD PropertyRegDataType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD RequiredSize)
HDEVINFO WINAPI SetupDiGetClassDevsW(CONST GUID *class, LPCWSTR enumstr, HWND parent, DWORD flags)
BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
BOOL WINAPI SetupDiSetSelectedDriverW(IN HDEVINFO DeviceInfoSet, IN OUT PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN OUT PSP_DRVINFO_DATA_W DriverInfoData OPTIONAL)
BOOL WINAPI SetupDiBuildDriverInfoList(IN HDEVINFO DeviceInfoSet, IN OUT PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN DWORD DriverType)
BOOL WINAPI SetupDiEnumDriverInfoW(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN DWORD DriverType, IN DWORD MemberIndex, OUT PSP_DRVINFO_DATA_W DriverInfoData)
BOOL WINAPI SetupScanFileQueueW(HSPFILEQ handle, DWORD flags, HWND window, PSP_FILE_CALLBACK_W handler, PVOID context, PDWORD result)
BOOL EnableDialogTheme(HWND hwnd)
VOID InsertTabCtrlItem(HWND hDlgCtrl, INT Position, LPWSTR uId)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
unsigned __int3264 UINT_PTR
#define LOCALE_USER_DEFAULT
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ DWORD _In_ DWORD dwOffset
#define SetupOpenFileQueue
#define SetupCloseFileQueue
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define D3DADAPTER_DEFAULT
#define SPQ_SCAN_USE_CALLBACK
#define SPDIT_CLASSDRIVER
#define DIF_INSTALLDEVICEFILES
#define SetupDiSetDeviceInstallParams
#define DI_FLAGSEX_ALLOWEXCLUDEDDRVS
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
BOOL WINAPI EnumDisplayDevicesW(LPCWSTR lpDevice, DWORD iDevNum, PDISPLAY_DEVICEW lpDisplayDevice, DWORD dwFlags)
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
DWORD WINAPI GetLastError(void)
#define DISPLAY_DEVICE_MIRRORING_DRIVER
struct _DISPLAY_DEVICEW DISPLAY_DEVICEW
struct _devicemodeW DEVMODEW
#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
#define TIME_FORCE24HOURFORMAT
#define HKEY_LOCAL_MACHINE
HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ENUM_CURRENT_SETTINGS
#define SWP_NOOWNERZORDER
#define MAKEINTRESOURCEW(i)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO