I'd like to request that PAGESIZE be added to the SysInfo plugin. I am not an official developer with you, but I made the changes to the 3.2.1 code I downloaded and compiled it, and it works. Basically I mimicked the OS_BITS part of the plugin, as it also pulls from the Windows SysInfo structure as well.
I'm not sure how you want to do this, so I'll put the code I added here. That should make it pretty easy for someone to add it to the latest code base. I guess I should get he Latest 3.3 code if I'm going to keep playing around, but my guess is, not that much has changed in this plugin. So, this should be close enough for this request.
SysInfo.cpp file, line 50, I added MEASURE_PAGESIZE above the MEASURE_OS_BITS line.
Code: Select all
MEASURE_OS_VERSION,
MEASURE_PAGESIZE,
MEASURE_OS_BITS,
SysInfo.cpp file, line 146, I added MEASURE_PAGESIZE above the MEASURE_OS_BITS as well.
Code: Select all
else if (_wcsicmp(L"OS_VERSION", type) == 0)
{
measure->type = MEASURE_OS_VERSION;
}
else if (_wcsicmp(L"PAGESIZE", type) == 0)
{
measure->type = MEASURE_PAGESIZE;
}
else if (_wcsicmp(L"OS_BITS", type) == 0)
{
measure->type = MEASURE_OS_BITS;
}
Finally, in SysInfo.cpp, line 503, I added the case MEASURE_PAGESIZE above MEASURE_OS_BITS here.
Code: Select all
case MEASURE_PAGESIZE:
{
SYSTEM_INFO si = { 0 };
GetNativeSystemInfo(&si);
return (si.dwPageSize);
}
case MEASURE_OS_BITS:
{
SYSTEM_INFO si = { 0 };
GetNativeSystemInfo(&si);
return (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64) ? 64.0 : 32.0;
}
Here is the skin code to make it work. And it shows 4096 as expected.
Code: Select all
[measurePageSize]
Measure=Plugin
Plugin=SysInfo
SysInfoType=PAGESIZE
UpdateDivider=-1
[meterPageSize]
Meter=String
MeterStyle=styleCenterText
MeasureName=measurePageSize
X=10
Y=60
W=190
H=14
Text=PageSize: %1
Hopefully this can be added to the next version. It shouldn't take but 5 or 10 minutes to add it in.
I know not too many people use this, but I have recently, and it would be nice to have it officially in the plugin. It's useful in calculating pagefile usage.
Let me know what you think.
Thanks.