星期日, 一月 27, 2008

Google Gadget: My IP enhanced

Win32_NetworkAdapter Class
http://msdn2.microsoft.com/en-us/library/aa394216%28VS.85%29.aspx
To find the media connection infomation, then get the index

Win32_NetworkAdapterConfiguration Class
http://msdn2.microsoft.com/en-us/library/aa394217(VS.85).aspx
To find the IP address according to the index


Example in VB
http://msdn2.microsoft.com/en-us/library/aa394595(VS.85).aspx

strComputer = "."
Set objWMIService = GetObject( _
"winmgmts:\\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery _
("Select IPAddress from Win32_NetworkAdapterConfiguration" _
& " where IPEnabled=TRUE")

For Each IPConfig in IPConfigSet
If Not IsNull(IPConfig.IPAddress) Then
For i=LBound(IPConfig.IPAddress) _
to UBound(IPConfig.IPAddress)
WScript.Echo IPConfig.IPAddress(i)
Next
End If
Next

我在Google Desktop Developer Group的topic 连接:here














flip a image:
http://www.javaworld.com/javaworld/javatips/jw-javatip32.html

draw image
http://today.java.net/pub/a/today/2004/04/22/images.html


text to image:
http://www.knowsky.com/343948.html


media disconnect可剔除 wireless
IPEnable可选中wireless和VPN和LAN
connect可选LAN

VPN没有
string Status;
uint16 StatusInfo;
uint16 NetConnectionStatus;
unit availability


所以,无论VPN是否联通,都会出现在最后的结果中。


Google Gadget的options pane,在“Gadget-》add option Pane”之后,还要在options.xml的“script”页下,手动把options.js关联到options.xml


submit gadget之后,google会发mail给你,说明google developer正在review,在数周后会update,而且还在google gadget developer group那里,开了
个discussion(topic),专门for你的gadget。

没有评论: