23 HBRUSH hBitmapBrush =
NULL;
60 nLinesToDraw = (CpuUsage + (CpuUsage / 10)) / 11;
62 rc.
top = 12 - nLinesToDraw;
106 static WCHAR szMsg[64] =
L"";
#define IDS_MSG_TRAYICONCPUUSAGE
ULONG PerfDataGetProcessorUsage(void)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW pnid)
static BOOL TrayIcon_Update(_In_ DWORD dwMessage)
BOOL TrayIcon_RemoveIcon(VOID)
BOOL TrayIcon_UpdateIcon(VOID)
BOOL TrayIcon_AddIcon(VOID)
static HICON TrayIcon_GetProcessorUsageIcon(_In_ ULONG CpuUsage)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HICON WINAPI CreateIconIndirect(_In_ PICONINFO)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HDC WINAPI GetDC(_In_opt_ HWND)
#define MAKEINTRESOURCEW(i)
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI DestroyIcon(_In_ HICON)