desktop2:DesktopPreviewHandler

Description

Enables declaration of a preview handler for a file type association.

Element Hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<uap:Extension>
<uap:FileTypeAssociation>
<desktop2:DesktopPreviewHandler>

Syntax

<desktop2:DesktopPreviewHandler Clsid = A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
                                ManualSafeSave? = Boolean.
                                EnableShareDenyNone? = Boolean.
                                EnableShareDenyWrite? = Boolean.
                                NoOplock? = Boolean. >                                

Attributes

Attribute Description Data type Required
Clsid The ID of the class in the app's package. A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Yes
ManualSafeSave Sets STGM_TRANSACTED (true = off). Boolean. No
EnableShareDenyNone Sets STGM_SHARE_DENY_NONE. Boolean. No
EnableShareDenyWrite Sets STGM_SHARE_DENY_WRITE. Boolean. No
NoOplock Disables oplock logic. This is used to close the file if another process attempts to access the file. Boolean. No

Remarks

Note that the Clsid attribute from PreviewHandler must match the ID attribute under the Class element in the SurrogateServer element from the COM registration in the app manifest.

Requirements

Namespace

http://schemas.microsoft.com/appx/manifest/desktop/windows10/2