#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
#include <setupapi.h>
#include <powrprof.h>
#include <strsafe.h>
#include "resource.h"
Go to the source code of this file.
|
| INT_PTR CALLBACK | ProcessorDlgProc (HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam) |
| |
| BOOL APIENTRY | DllMain (HANDLE hInstance, DWORD dwReason, LPVOID lpReserved) |
| |
| BOOL APIENTRY | PropSheetExtProc (PSP_PROPSHEETPAGE_REQUEST PropPageRequest, LPFNADDPROPSHEETPAGE fAddFunc, LPARAM lParam) |
| |
| void | AddFeature (WCHAR *szFeatures, size_t cbDest, WCHAR *Feature, BOOL *bFirst) |
| |
◆ _INC_WINDOWS
◆ COM_NO_WINDOWS_H
◆ WIN32_NO_STATUS
◆ AddFeature()
Definition at line 77 of file processor.c.
78{
79 if (!*bFirst)
83}
_In_ ULONG const _In_ FEATURE_NUMBER const Feature
STRSAFEAPI StringCbCatW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Referenced by ProcessorDlgProc().
◆ DllMain()
Definition at line 29 of file processor.c.
30{
32 {
37 break;
38 }
39
42}
#define DLL_THREAD_DETACH
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define DLL_THREAD_ATTACH
◆ ProcessorDlgProc()
Definition at line 87 of file processor.c.
88{
89 switch (uMessage) {
91 {
96 WCHAR szCurrentMhz[10];
100
102 {
104 }
105
107 AddFeature(szFeatures,
sizeof(szFeatures),
L"MMX", &bFirst);
109 AddFeature(szFeatures,
sizeof(szFeatures),
L"SSE", &bFirst);
111 AddFeature(szFeatures,
sizeof(szFeatures),
L"SSE2", &bFirst);
112
113
115 AddFeature(szFeatures,
sizeof(szFeatures),
L"3DNOW", &bFirst);
116
118
120
123
126
130
132 }
133 }
135}
void AddFeature(WCHAR *szFeatures, size_t cbDest, WCHAR *Feature, BOOL *bFirst)
VOID WINAPI GetSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
BOOL WINAPI IsProcessorFeaturePresent(IN DWORD ProcessorFeature)
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL InformationLevel, PVOID lpInputBuffer, ULONG nInputBufferSize, PVOID lpOutputBuffer, ULONG nOutputBufferSize)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define PF_3DNOW_INSTRUCTIONS_AVAILABLE
#define PF_MMX_INSTRUCTIONS_AVAILABLE
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE
#define PF_XMMI_INSTRUCTIONS_AVAILABLE
Referenced by PropSheetExtProc().
◆ PropSheetExtProc()
Definition at line 47 of file processor.c.
48{
51
54
57
63
65 if(!hPropSheetPage)
67
68 if(!(fAddFunc)(hPropSheetPage,
lParam)) {
71 }
72
74}
INT_PTR CALLBACK ProcessorDlgProc(HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam)
#define DLG_PROCESSORINFO
BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage)
struct _PSP * HPROPSHEETPAGE
#define MAKEINTRESOURCE(i)
#define CreatePropertySheetPage
#define SPPSR_ENUM_ADV_DEVICE_PROPERTIES
PSP_DEVINFO_DATA DeviceInfoData
◆ g_hInstance