msdn seminar november 2006 developing vista and live gadgets · windows vista treats gadgets very...

15
Suthep Sangvirotjanaphat Microsoft MVP GreatFriends.Biz Instructor Web: http://GreatFriends.Biz E-mail/MSN: [email protected] MSDN Seminar November 2006 Developing Vista and Live Gadgets

Upload: others

Post on 30-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Suthep SangvirotjanaphatMicrosoft MVP

GreatFriends.Biz InstructorWeb: http://GreatFriends.Biz E-mail/MSN: [email protected]

MSDN Seminar

November 2006

Developing Vista and Live Gadgets

Page 2: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Agenda

Vista Gadget

Demo: Building the Gadget

The Got Gadget contest

Developer Resources

Page 3: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

What’s the Gadgets?

Gadgets are customizable

mini-program that display continuously updated information and allow you to perform common tasks without opening a window.

Windows Sidebar is located on

the desktop and host gadgets.

Page 4: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Gadget Characteristics

•Installed locally, run locally.

•Multiple instances, separate settings.

•User interaction:More than running in tray, but less than full window app style.

Page 5: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Gadget Categories

•Fun and Games

•Tools and Utilities

•Music, Movies, TV

•Search tools

•News and feeds

•Miscellaneous

•Mail and Contacts

•Safety and Security

•Lifestyle

•Techy, geeky, cool

•IM and Spaces

Page 6: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

© GreatFriends.Biz VBBIZ-1105Visual Basic 2005 for Business

Gadgets gallery

Calendar

Clock

Contacts

CPU Meter

Currency

Feed Headlines

Notes

Picture Puzzle

Slide Show

Stocks

Weather

Page 7: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

© GreatFriends.Biz VBBIZ-1106Visual Basic 2005 for Business

Gadget Files

Gadget Manifest –XML file defining the gadget properties.

HTML files –defines the core code for the gadget.

HTML setting files –user settings.

Others files - Images, Script(.js), and Style Sheets (.css), Icon.

Page 8: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

How to build a gadget

•Create a folder.%userprofile%\AppData\Local\Microsoft\Windows Sidebar\Gadgets

•Create the Gadget manifest.

•Create an HTML page.

•Test gadget from Sidebar

Page 9: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Gadget Manifest sample

Page 10: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

HTML page sample

Page 11: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Got a gadget

Page 12: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Security Issues

Windows Vista treats gadgets very similar to executable programs.

Gadgets are written using HTML likes Web apps but run from the local computer.

Gadgets can be signed using Signtool.exe which included with VS 2005

Page 13: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Security Issues

MSHTML runtime is configured for gadgets similarly to HTA or Local Machine Zone security configuration

Allow to create installed ActiveX objects.

Allow to access data sources across domain.

But not allow to download and install new ActiveX controls.

Page 14: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

Security Issues

Sidebar Gadgets will not display the UAC elevation prompts.

Administrator can set group policy:

Turn off Windows Sidebar

Disable unpacking and installation of gadgets that are not digitally signed.

Page 15: MSDN Seminar November 2006 Developing Vista and Live Gadgets · Windows Vista treats gadgets very similar to executable programs. Gadgets are written using HTML likes Web apps but

More resources…

http://gallery.live.com

http://microsoftgadgets.com

http://blogs.msdn.com/sidebar

http://www.microsoft.com/thailand/msdn/gotgadget/

For slides, demos, and further questions.

Please visit http://GreatFriends.BizThe Thailand .NET community and training