Shared memory reading by gadget
Hi All,
Is it possible to access to shared memory by gadget?
Do you know any implementation/sample gadget/projects that uses shared
memory (storing some data by process for example, and reading and
displaying this info by the gadget).
Thanks
[251 byte] By [
target] at [2008-2-27]
No, but there are two workaround:
1. Write to a file in the Gadget directory and monitor it
2. Write to the registry
Personally, I'd go with option 2 as it's neater. eg
var oShell = new ActiveXObject("WScript.Shell");
oShell.RegRead("HKCU\\Software\\My Company\\My Gadget Name\\My Value Name");
oShell.RegWrite(HKCU\\Software\\My Company\\My Gadget Name\\My Value Name\\","My Value", "REG_SZ");
There is some program that monitors 5 or 6 parameters of computer -
voltage, temperature, rpm of coolers. This program stores information
in shared memory by structure:
struct MyArea {
float temps[10];
float volts[7];
int fans[4];
}
I need to read and display this info on sidebar gadget in numeric and maybe in graphical format.