WMI012-WMI學習筆記(十二)——Win32_Desktop(桌面)類

原文地址鏈接:

http://msdn.microsoft.com/en-us/library/aa394121(v=vs.85).aspx

測試代碼:

http://blog.csdn.net/eyuanatqqdotcom/article/details/7463217

Win32_Desktop class

Applies to: desktop apps only

僅用於桌面應用程序。

The Win32_Desktop WMI class represents the common characteristics of a user's desktop. The properties of this class can be modified by the user to customize the desktop.

WMI類Win32_Desktop 代表了用戶桌面的通用特性。

該類的屬性可以被用戶修改以達到自定義桌面的目的。

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class Win32_Desktop : CIM_Setting
{
  uint32  BorderWidth;
  string  Caption;
  boolean CoolSwitch;
  uint32  CursorBlinkRate;
  string  Description;
  boolean DragFullWindows;
  uint32  GridGranularity;
  uint32  IconSpacing;
  string  IconTitleFaceName;
  uint32  IconTitleSize;
  boolean IconTitleWrap;
  string  Name;
  string  Pattern;
  boolean ScreenSaverActive;
  string  ScreenSaverExecutable;
  boolean ScreenSaverSecure;
  uint32  ScreenSaverTimeout;
  string  SettingID;
  string  Wallpaper;
  boolean WallpaperStretched;
  boolean WallpaperTiled;
};

Members

The Win32_Desktop class has these types of members:

Properties

The Win32_Desktop class has these properties.

BorderWidth
邊框寬度
Data type: uint32
Access type: Read-only
只讀

Width of the borders around all windows with adjustable borders.

所有窗口的邊框(包括可以調節的邊框)寬度。

Example: 3

Caption
標題
Data type: string
Access type: Read-only

Short description of the CIM_Setting object.

CoolSwitch
切換
Data type: boolean
Access type: Read-only

Fast task switching is turned on. Fast task switching allows the user to switch between windows using the ALT+TAB keyboard combination.

快速任務切換是否被打開。

快速任務切換允許用戶使用ALT+TAB組合鍵來快速切換窗口。

CursorBlinkRate
光標閃爍率
Data type: uint32
Access type: Read-only
Qualifiers: Units (Milliseconds)

Length of time between successive cursor blinks.

光標連續閃爍的時間長度。

Example: 530

Description
描述
Data type: string
Access type: Read-only

Description of the CIM_Setting object.

DragFullWindows
拖動窗口
Data type: boolean
Access type: Read-only

Contents of a window are shown when a user moves the window.

當用戶移動窗口時,窗口的內容是否顯示。

GridGranularity
網格間隔
Data type: uint32
Access type: Read-only
Qualifiers: Units (8 Pixels)

Spacing of the grid that windows are bound to on the desktop. This makes organizing windows easier. The spacing is usually fine enough that the user does not notice it.

窗口停靠在桌面上時網格的間距。

該屬性使得管理窗口更方便。

一般來說,間距是固定好的,用戶不需要關注這一點。

Example: 1

IconSpacing
圖標間隔
Data type: uint32
Access type: Read-only
Qualifiers: Units (Pixels)

Spacing between icons.

圖標間的間隔

Example: 75

IconTitleFaceName
圖標標題皮膚名稱
Data type: string
Access type: Read-only

Font used for the names of the icons.

圖標名稱的字體

Example: "MS San Serif"

IconTitleSize
圖標標題大小
Data type: uint32
Access type: Read-only
Qualifiers: Units (Point)

Icon font size.

圖標字體大小

Example: 9

IconTitleWrap
圖標標題換行
Data type: boolean
Access type: Read-only

Icon's title text wraps to the next line.

圖標標題文本是否可以換行。

Name
名稱
Data type: string
Access type: Read-only
Qualifiers: Key

Name that identifies the current desktop profile.

標識當前桌面屬性的名稱。

Example: "MainProf"

Pattern
圖案
Data type: string
Access type: Read-only

Name of the pattern used as the background for the desktop.

用於桌面背景的圖案名稱。

ScreenSaverActive
屏幕保護是否激活
Data type: boolean
Access type: Read-only

Screen saver is active.

屏保是否處於激活狀態(是否處於屏保狀態)

ScreenSaverExecutable
Data type: string
Access type: Read-only

Name of the current screen saver executable file.

當前屏保可執行文件的名稱

Example: "LOGON.SCR"

ScreenSaverSecure
Data type: boolean
Access type: Read-only

Password is enabled for the screen saver.

屏保的密碼是否有效。

ScreenSaverTimeout
Data type: uint32
Access type: Read-only
Qualifiers: Units (Seconds)

Amount of time that passes before the screen saver starts.

多久未操作後開始執行屏保程序。

SettingID
Data type: string
Access type: Read-only

Identifier by which the CIM_Setting object is known.

Wallpaper
Data type: string
Access type: Read-only

File name for the wallpaper design on the background of the desktop.

桌面背景的壁紙文件名稱。

Example: "WINNT.BMP"

WallpaperStretched
Data type: boolean
Access type: Read-only

Wallpaper is stretched to fill the entire screen. Microsoft Plus! must be installed before this option is available. If FALSE, the wallpaper retains its original dimensions on the desktop background.

壁紙是否被拉伸以適應屏幕大小(填充整個屏幕)。

WallpaperTiled
Data type: boolean
Access type: Read-only

Wallpaper is tiled or centered.

壁紙杯平鋪或者居中。

Remarks

備註

The Win32_Desktop class is derived from CIM_Setting.

The calling process that uses this class must have the SE_RESTORE_NAME privilege on the computer in which the registry resides. For example, if you enumerate this class on the local computer, the account under which your application runs must have this privilege. For more information, see Executing Privileged Operations.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Namespace

\root\CIMV2

MOF

Cimwin32.mof

DLL

Cimwin32.dll

See also

Operating System Classes

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章