Partager via


UWF_OverlayConfig.SetType (Industry 8.1)

7/8/2014

Review the use, syntax, parameters, and return values of the UWF_OverlayConfig.SetType method for Windows Embedded 8.1 Industry (Industry 8.1).

This method sets the type of the Unified Write Filter (UWF) overlay to either RAM-based or disk-based.

Syntax

UInt32 SetType(
    UInt32 type
);

Parameters

  • type
    The type of overlay. Set to 0 for a RAM-based overlay; set to 1 for a disk-based overlay.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error.

Remarks

Changes to the overlay type take effect during the next device restart in which UWF is enabled.

When you change the overlay type from RAM-based to disk-based, UWF creates a file on the system volume. The file has a size equal to the MaximumSize property of UWF_OverlayConfig.

Before you can change the overlay type to disk-based, your device must meet the following requirements.

  • UWF must be disabled in the current session.
  • The system volume on your device must have available free space greater than the maximum size of the overlay.
  • The maximum size of the overlay must be at least 1024 MB.

Before you can change the overlay type to RAM-based, your device must meet the following requirements.

  • UWF must be disabled in the current session.

See Also

Reference

UWF_OverlayConfig

Concepts

Overlay for Unified Write Filter (UWF)
Unified Write Filter