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]
# 1
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");

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 2
I'm certain there are ways to accomplish what you want; the details of the implementation depend on your requirements. Could you give us some more information about how you're planning to use this shared memory?
BruceWilliams at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 3
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.

target at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 4
When I tried to write to registry for the first time where the registry key does not exist yet I think writing to registry failed. Only after I created an entry manually it is successful. Is there a way to make sure that if it does not exist you can create the key?
HT4N at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...