Author: janderwald
Date: Fri Nov 14 13:57:22 2008
New Revision: 37364
URL:
http://svn.reactos.org/svn/reactos?rev=37364&view=rev
Log:
- Display Provider and Version in driver details dialog
Modified:
trunk/reactos/dll/win32/devmgr/advprop.c
trunk/reactos/dll/win32/devmgr/precomp.h
Modified: trunk/reactos/dll/win32/devmgr/advprop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/advprop.c…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] Fri Nov 14 13:57:22 2008
@@ -162,6 +162,26 @@
&DriverInfoData))
{
HSPFILEQ queueHandle;
+ DWORD HiVal, LoVal;
+ WCHAR szTime[25];
+
+ HiVal = (DriverInfoData.DriverVersion >> 32);
+ if (HiVal)
+ {
+ swprintf (szTime, L"%d.%d", HIWORD(HiVal), LOWORD(HiVal));
+ LoVal = (DriverInfoData.DriverVersion & 0xFFFFFFFF);
+ if (HIWORD(LoVal))
+ {
+ swprintf(&szTime[wcslen(szTime)], L".%d", HIWORD(LoVal));
+ if (LOWORD(LoVal))
+ {
+ swprintf(&szTime[wcslen(szTime)], L".%d",
LOWORD(LoVal));
+ }
+ }
+ SetDlgItemTextW(hwndDlg, IDC_FILEVERSION, szTime);
+ }
+ SetDlgItemText(hwndDlg, IDC_FILEPROVIDER, DriverInfoData.ProviderName);
+
queueHandle = SetupOpenFileQueue();
if (queueHandle != (HSPFILEQ)INVALID_HANDLE_VALUE)
Modified: trunk/reactos/dll/win32/devmgr/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/precomp.h…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/precomp.h [iso-8859-1] Fri Nov 14 13:57:22 2008
@@ -6,6 +6,7 @@
#include <setupapi.h>
#include <cfgmgr32.h>
#include <commctrl.h>
+#include <stdio.h>
#include <dll/devmgr/devmgr.h>
#include "resource.h"