20#define ID_SYSUPTIME_UPDATE_TIMER 1
92 GetObject(hLogo,
sizeof(logoBitmap), &logoBitmap);
93 GetObject(hMask,
sizeof(maskBitmap), &maskBitmap);
95 if (logoBitmap.bmHeight != maskBitmap.bmHeight || logoBitmap.bmWidth != maskBitmap.bmWidth)
126 *pBits++ =
b | (
g << 8) | (
r << 16) | (
alpha << 24);
159 NONCLIENTMETRICS ncm;
161 TCHAR szCredits[2048];
174 if (hCreditsDC ==
NULL || hLogoDC ==
NULL)
177 SetRect(&rcCredits, 0, 0, 0, 0);
179 ncm.cbSize =
sizeof(NONCLIENTMETRICS);
190 iDevsHeight = rcCredits.
bottom - rcCredits.
top;
217 AlphaBlend(hCreditsDC, 0, 0,
pImgInfo->
cxSource,
pImgInfo->
cySource, hLogoDC, 0, 0,
pImgInfo->
cxSource,
pImgInfo->
cySource,
BlendFunc);
218 AlphaBlend(hCreditsDC, 0,
offset,
pImgInfo->
cxSource,
pImgInfo->
cySource, hLogoDC, 0, 0,
pImgInfo->
cxSource,
pImgInfo->
cySource,
BlendFunc);
243 if (hCreditsBitmap !=
NULL)
266 if (hCreditsBitmap !=
NULL)
299 AlphaBlend(
hdc,
left,
PS.rcPaint.top,
pImgInfo->
cxSource,
pImgInfo->
cySource,
hdcMem, 0, 0,
pImgInfo->
cxSource,
pImgInfo->
cySource,
BlendFunc);
366 if (szLastSpace == 0)
372 LastSpace = (szLastSpace - szBuf);
373 szBuf[LastSpace] = 0;
399 TCHAR szDecimalSeparator[4];
408 uIntegral = (
UINT)*dFloatValue;
409 uDecimals = (
UCHAR)((
UINT)(*dFloatValue * 100) - uIntegral * 100);
411 wsprintf(szOutput,
_T(
"%u%s%02u %s"), uIntegral, szDecimalSeparator, uDecimals, szAppend);
417 TCHAR szBuf[64], szHz[16];
459 TCHAR SysKey[] =
_T(
"HARDWARE\\DESCRIPTION\\System");
460 TCHAR ProcKey[] =
_T(
"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
461 MEMORYSTATUSEX MemStat;
463 WCHAR SMBiosName[96];
498 PrevMachineLine = CurMachineLine;
501 _T(
"ProcessorNameString"),
505 if (CurMachineLine == PrevMachineLine)
523 MemStat.dwLength =
sizeof(MemStat);
530 if (MemStat.ullTotalPhys > 1024 * 1024 * 1024)
536 MemStat.ullTotalPhys /= 1024 * 1024;
538 if (MemStat.ullTotalPhys > 1024 * 1024)
541 MemStat.ullTotalPhys /= 1024;
544 if (MemStat.ullTotalPhys > 1024 * 1024)
547 MemStat.ullTotalPhys /= 1024;
550 dTotalPhys = (
double)MemStat.ullTotalPhys / 1024;
554 dTotalPhys = (
double)MemStat.ullTotalPhys / 1024;
559 dTotalPhys = (
double)MemStat.ullTotalPhys / 1024;
569 wsprintf(Buf,
_T(
"%u %s"), (
UINT)MemStat.ullTotalPhys / 1024 / 1024, szStr);
579 SIZE_T lenStr, lenVersion;
583 lenVersion =
wcslen(pwszVersion);
595 lenStr += lenVersion + 1;
648 cSeconds = cMilliseconds / 1000;
650 cSeconds / (60*60*24),
651 (cSeconds / (60*60)) % 24,
652 (cSeconds / 60) % 60,
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
#define RegCloseKey(hKey)
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
ULONGLONG(WINAPI * PFGETTICKCOUNT64)(VOID)
static VOID MakeFloatValueString(DOUBLE *dFloatValue, LPTSTR szOutput, LPTSTR szAppend)
static HMODULE hKernel32Vista
#define ID_SYSUPTIME_UPDATE_TIMER
static VOID GetSystemUptime(HWND hwndDlg)
static const BLENDFUNCTION BlendFunc
static VOID SetRegTextData(HWND hwnd, HKEY hKey, LPTSTR Value, UINT uID)
static PFGETTICKCOUNT64 pGetTickCount64
static VOID GetSystemInformation(HWND hwnd)
static INT SetProcNameString(HWND hwnd, HKEY hKey, LPTSTR Value, UINT uID1, UINT uID2)
LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static ULONGLONG GetTickCountQPC(VOID)
An equivalent of GetTickCount64, implemented using QueryPerformanceCounter.
VOID ShowLastWin32Error(HWND hWndOwner)
static VOID GetSystemVersion(HWND hwnd)
static VOID InitSystemUptime(HWND hwndDlg)
static VOID InitLogo(HWND hwndDlg)
static WCHAR szUptimeFormat[64]
struct _IMGINFO * PIMGINFO
static BOOL SetProcSpeed(HWND hwnd, HKEY hKey, LPTSTR Value, UINT uID)
INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf)
#define IDC_ROSHOMEPAGE_LINK
#define IDS_UPTIME_FORMAT
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
BOOL WINAPI QueryPerformanceFrequency(OUT PLARGE_INTEGER lpFrequency)
BOOL WINAPI QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
static const WCHAR Cleanup[]
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
GLclampf GLclampf GLclampf alpha
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble top
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
HLOCAL NTAPI LocalFree(HLOCAL hMem)
BOOL NTAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
#define LOCALE_USER_DEFAULT
#define UNREFERENCED_PARAMETER(P)
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL InformationLevel, PVOID lpInputBuffer, ULONG nInputBufferSize, PVOID lpOutputBuffer, ULONG nOutputBufferSize)
struct tagNMLINK * PNMLINK
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
STRSAFEAPI StringCchCatW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
BITMAPINFOHEADER bmiHeader
WCHAR szUrl[L_MAX_URL_LENGTH]
static LARGE_INTEGER Frequency
static LARGE_INTEGER Counter
#define LANG_USER_DEFAULT
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
struct tagBITMAPINFO BITMAPINFO
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
#define CreateFontIndirect
#define HKEY_LOCAL_MACHINE
struct tagDRAWITEMSTRUCT * LPDRAWITEMSTRUCT
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetWindowTextLengthW(_In_ HWND)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SystemParametersInfo
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)