Querying and Updating the WMI Repository
You can use Windows Management Instrumentation (WMI) to view and update a running application's configuration data when you use the Manageable Configuration Source to expose your Enterprise Library configuration. The Manageable Configuration Source reads information from the configuration file, applies any applicable Group Policy overrides, and exposes the configuration information to applications as a series of configuration class instances in the same way as the other Enterprise Library configuration sources.
However, the Manageable Configuration Source also exposes the configuration information through the .NET WMI 2.0 API and to the WMI Repository as a set of WMI classes that you can query and view. This allows administrators and users to examine configuration information using standard Windows-based management tools or code.
In addition, administrators and users can update the values of the WMI objects using standard Windows-based management tools or code. These changes update the configuration information exposed to the application by the Manageable Configuration Source, which also raises a ConfigurationChanged event that allows the application to react to the changes and reload the new configuration values.
Note:
You must have the relevant Windows permissions to update WMI objects. In addition, as changes pass back to the Manageable Configuration Source, it reapplies any relevant Group Policy overrides. If the change conflicts with a Group Policy setting, the Manageable Configuration Source will ignore the change and continue to expose the Group Policy-applied value.
Changes you make to the configuration exposed by the WMI objects are exposed by the Manageable Configuration Source and are visible in the application. However, they do not change the contents of the original configuration file. When the application restarts, or if you make changes to the configuration file contents, any updates made through WMI are lost.
The following table lists the ways you can query and update values in the WMI Repository.
Posted in: .Net Programming| Tags: Application Configuration Enterprise Library Group Manageable Policy Query Repository Source Update WMI file information managementTips on converting video to SWF format
A few days ago one of my friends asked me how to convert his videos to SWF format so he can upload them to his website to broadcast his company. Actually it is simple what we need is a video to Flash converter. It is easy to say but find the best one is difficult as there are so many similar applications on the market. Here I recommend Moyea Flash Video MX Pro. This software can support imputing nearly any video format and export .flv file, .swf file and .html file. You can use the .html file as a webpage directly.
This article will tell you how to convert video to SWF directly.
After you install and launch the program, you can see this interface.
Step1. Import video
Let’s take an MP4 file for example. Import the video and you can see it in the preview panel.
Here you can edit your video like trimming and cropping, adding watermark on your video, setting brightness and contrast, even capture a snapshot of your video. Now I will teach you how to add a logo on your video. This software allows you to add an image watermark or a text watermark. Choose Watermark section, press add button, and you can choose add an image or a text watermark.
After you add the watermark, you can see the effect like this:
Step2. Output settings
In this section, you can choose the output folder and output formats. Here are three choices for you to choose "Generate Flash video (FLV)", "Embed the video in SWF and play in timeline", and "Generate HTML file".
If you want to convert your video to SWF file only please select Embed the video in SWF and play in timeline or do not select Generate Flash video (FLV). As a default this software can generate a FLV file, a SWF file and a HTML file, if you want to upload your video on your website please put all these three files in the same folder and the HTML file can be used directly as a web page.
Step3. Add player and preloader
As you see in above picture, you can add a player skin and preloader on your video and with beautiful special effects.
Step4. Convert
In the final interface, just press the Start button you can get your SWF file in a few minutes.
How to embed SWF into HTML page You can code the page as follows:
Well, have you noticed the christmas_1.flv in blue? This can be modified to the absolute path of the .flv file. For example: (can support HTTP and RTMP)
The above only support IE, if you want it to support Firefox, please follow this: Modify
Posted in: Webmaster-SEO Internet Topic| Tags: HTML Convert Flash FLV Format Player SWF quot video file watermark step