GF_Config (Industry 8.1)

7/8/2014

Review the syntax, members, and examples of the GF_Config WMI provider class for Windows Embedded 8.1 Industry (Industry 8.1).

This Windows Management Instrumentation (WMI) provider class configures settings for Gesture Filter.

Syntax

class GF_Config {
    [Key, Read] string Id;
    boolean IsGestureFilterEnabled;
    boolean IsLeftFiltered;
    boolean IsRightFiltered;
    boolean IsTopLeftFiltered;
    boolean IsTopRightFiltered;
    boolean IsBottomLeftFiltered;
    boolean IsBottomRightFiltered;
    boolean IsExtendedSwipeFiltered;
};

Members

The following tables list any methods and properties that belong to this class.

Methods

This class contains no methods.

Properties

Property

Data type

Qualifiers

Description

Id

string

[read, key]

A unique ID. This is always set to GE_Config.

IsGestureFilterEnabled

Boolean

none

Indicates if Gesture Filter is enabled. If IsGestureFilterEnabled is false when a user signs in, then no edge gestures are blocked.

IsLeftFiltered

Boolean

none

Indicates if the left edge gesture is blocked.

IsRightFiltered

Boolean

none

Indicates if the right edge gesture is blocked.

IsTopLeftFiltered

Boolean

none

Indicates if the top left corner gesture is blocked.

IsTopRightFiltered

Boolean

none

Indicates if the top right corner gesture is blocked.

IsBottomLeftFiltered

Boolean

none

Indicates if the bottom left corner gesture is blocked.

IsBottomRightFiltered

Boolean

none

Indicates if the bottom right corner gesture is blocked.

IsExtendedSwipeFiltered

Boolean

none

Indicates if the extended swipe top edge gesture is blocked.

Remarks

You must use an administrator account to change any properties in this class.

Gesture Filter does not filter gestures on accounts with administrator rights.

Changes to Gesture Filter do not affect any sessions that are currently signed in; you must sign out and sign back in.

You cannot block the top edge gesture or the bottom edge gesture, which bring up the app bar. You can use IsExtendedSwipeFiltered to block the long swipe from the top which closes Windows Store apps.

Example

The following Windows PowerShell script demonstrates how to use this class to modify the general settings for Gesture Filter. This example enables Gesture Filter and configures Gesture Filter to block left, right, top left, top right, bottom left, bottom right, and swipe to close gestures.

#---Define variables---

$COMPUTER = "localhost"
$NAMESPACE = "root\standardcimv2\embedded"

# Get the current configuration for Gesture Filter

$GestureFilterConfig = get-wmiobject –namespace $NAMESPACE –computer $COMPUTER –class GF_Config

# Enable Gesture Filter

$GestureFilterConfig.IsGestureFilterEnabled = $true

# Block each of the possible edge gestures that can be filtered

$GestureFilterConfig.IsLeftFiltered = $true
$GestureFilterConfig.IsRightFiltered = $true
$GestureFilterConfig.IsTopLeftFiltered = $true
$GestureFilterConfig.IsTopRightFiltered = $true
$GestureFilterConfig.IsBottomLeftFiltered = $true
$GestureFilterConfig.IsBottomRightFiltered = $true
$GestureFilterConfig.IsExtendedSwipeFiltered = $true

# Write the configuration changes back into the WMI class. Changes to the configuration for Gesture Filter will take effect the next time a session without administrator rights signs in.

$GestureFilterConfig.put()

See Also

Concepts

Gesture Filter