Ian Barber

Does anyone if it is possible to create a bandwith monitor sidebar gadget and if so has anyone got any examples I could look at.

Regards

Ian



Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

Anything is possible! So long as you're willing to get into coding ActiveX COM DLL's.

We've tried getting acccess to this sort of information before via WMI and ran into security issues, likewise the sysmon.ocx ActiveX COM can't access it unless you're running as Administrator. SNMP is an option, I don't know if you'll run into security issues with that. You'll need to either code your own ActiveX COM or file a freeware one.

For some strange reason, Microsoft restricted access to performance stats to Administrators only. So you've got a problem from the start!




Re: Sidebar Gadget Development Bandwidth Monitor

Tom from cener.co.uk

best way is to call it form the WMI check gallery.live.com i think there is already one out there

http://gallery.live.com/liveItemDetail.aspx li=06a12595-25f3-4a14-9725-0bc6cd5d9872&l=1




Re: Sidebar Gadget Development Bandwidth Monitor

whirl

Hi

I looed at the one from http://gallery.live.com/liveItemDetail.aspx li=06a12595-25f3-4a14-9725-0bc6cd5d9872&l=1 but it doesnt see my NIC card and looking at some of the reviews, I am not the only one.

Looks as though this is not going to be as easy as I first thought.

May have to re think the project through

Ian





Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

Run Sidebar as Administrator, and you'll probably find it works. ie Exit Sidebar, right click on Sidebar in the Start Menu and select Run as Administrator




Re: Sidebar Gadget Development Bandwidth Monitor

Toby Broom

I found this on MSDN

http://msdn2.microsoft.com/en-us/library/aa826699.aspx

I tried changing the permission in DCOM & WMI to allow everyone everything but still can't read all the WMI data.

There must be someway to "Trust" yourself to read the Perf Data





Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

Does it work if you're running it as Administrator If not, there's another issue.




Re: Sidebar Gadget Development Bandwidth Monitor

Toby Broom

I was just trying to get it to work as non-admin by changing the permissions for WMI, doesn't seem to work though

Admin is fine.





Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

For some unknown reason, MS locked it down. God alone knows why! I don't think your problem is getting access to WMI static data, but NIC information.

Install WMI Tools and run WMI CMI Studio, see if you can get access to the WMI entries as the current user (click on the Binoculars icon to search for it). I suspect you can't.

Read this, see if it helps. The main WMI documentation is here, which mentions Vista - you've probably already read it though.






Re: Sidebar Gadget Development Bandwidth Monitor

whirl

Hi

Running the sidebar as Administrator does make the monitor work but after a reboot you have to exit the sidebar and run it again as an Administrator. Is there a way to make the sidebar run as Administrato on boot up.

What's confusing me is that I only have 1 account setup on the PC which is supposed to be st to Administrator.

Am I missing something

Ian





Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

Yes, you are missing something! LOL

An Administrator on Vista isn't an Administrator - it's a standard user. You can change that in the users section under the control panel I believe.

If that doesn't work, you can log on as the actual Administrator by doing the following (this worked in beta2, I've not tried it on RTM):

1. From the Start menu, go to "All Programs", "Accessories"
2. Right-click on "Command Prompt" and choose "Run as Administrator"
3. In the resulting Command window, run "regedit"
4. Create the following value, type DWORD (32 bit), value 1
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\Administrator
5. From the command prompt enter: "net user Administrator /Active:yes"
6. Reboot, and now you can logon to the Administrator account




Re: Sidebar Gadget Development Bandwidth Monitor

nogblaze

Can you come and help develop on www.customizevista.net We are in need of developers to get this modding community started.




Re: Sidebar Gadget Development Bandwidth Monitor

Jonathan Abbott

Thanks for the invite, but I'm already on three sites - which is more that enough to keep track of!




Re: Sidebar Gadget Development Bandwidth Monitor

Stanley007

i think there is already one coming out at ideas.live.com tool's session... but i am still figuring out how to add it to the sidebar... vista is not supporting the setup file for me....