* show version in About

* write OS version info to text file headers
* include math.h in basesup.c

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3393 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-07-19 00:58:14 +00:00
parent 98574d5848
commit 01e0c4f1cd
6 changed files with 32 additions and 2 deletions
+2 -2
View File
@@ -590,8 +590,8 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,197,142,50,14
ICON IDI_PROCESSHACKER,IDC_STATIC,16,15,20,20
LTEXT "Process Hacker",IDC_ABOUT_NAME,45,14,50,8
LTEXT "Licensed under the GNU GPL, v3.",IDC_STATIC,45,27,107,8
LTEXT "Process Hacker",IDC_ABOUT_NAME,45,14,192,8
LTEXT "Licensed under the GNU GPL, v3.",IDC_STATIC,45,27,193,8
GROUPBOX "Credits",IDC_STATIC,7,42,240,95
LTEXT "wj32 - Project Manager",IDC_STATIC,15,53,76,8
PUSHBUTTON "Diagnostics",IDC_DIAGNOSTICS,7,142,50,14
+15
View File
@@ -31,6 +31,21 @@ static INT_PTR CALLBACK PhpAboutDlgProc(
{
switch (uMsg)
{
case WM_INITDIALOG:
{
PPH_STRING versionString;
if (versionString = PhGetPhVersion())
{
PPH_STRING appName;
appName = PhConcatStrings2(L"Process Hacker ", versionString->Buffer);
SetDlgItemText(hwndDlg, IDC_ABOUT_NAME, appName->Buffer);
PhDereferenceObject(appName);
PhDereferenceObject(versionString);
}
}
break;
case WM_COMMAND:
{
switch (LOWORD(wParam))
+11
View File
@@ -748,6 +748,17 @@ VOID PhWritePhTextHeader(
PhDereferenceObject(version);
}
PhFileStreamWriteStringFormat(FileStream, L"\r\nWindows NT %u.%u", PhOsVersion.dwMajorVersion, PhOsVersion.dwMinorVersion);
if (PhOsVersion.szCSDVersion[0] != 0)
PhFileStreamWriteStringFormat(FileStream, L" %s", PhOsVersion.szCSDVersion);
#ifdef _M_IX86
PhFileStreamWriteStringAsAnsi2(FileStream, L" (32-bit)");
#else
PhFileStreamWriteStringAsAnsi2(FileStream, L" (64-bit)");
#endif
PhQuerySystemTime(&time);
PhLargeIntegerToLocalSystemTime(&systemTime, &time);
+1
View File
@@ -22,6 +22,7 @@
#define BASESUP_PRIVATE
#include <phbase.h>
#include <math.h>
typedef struct _PHP_BASE_THREAD_CONTEXT
{
+2
View File
@@ -41,6 +41,7 @@ HFONT PhIconTitleFont;
HINSTANCE PhInstanceHandle;
HANDLE PhKphHandle = NULL;
ULONG PhKphFeatures;
RTL_OSVERSIONINFOEXW PhOsVersion;
SYSTEM_BASIC_INFORMATION PhSystemBasicInformation;
ULONG WindowsVersion;
@@ -174,6 +175,7 @@ static VOID PhInitializeWindowsVersion()
return;
}
memcpy(&PhOsVersion, &versionInfo, sizeof(RTL_OSVERSIONINFOEXW));
majorVersion = versionInfo.dwMajorVersion;
minorVersion = versionInfo.dwMinorVersion;
+1
View File
@@ -52,6 +52,7 @@ extern __userSet HFONT PhIconTitleFont;
extern HINSTANCE PhInstanceHandle;
extern __userSet HANDLE PhKphHandle;
extern __userSet ULONG PhKphFeatures;
extern RTL_OSVERSIONINFOEXW PhOsVersion;
extern SYSTEM_BASIC_INFORMATION PhSystemBasicInformation;
extern ULONG WindowsVersion;