This topic has not yet been rated - Rate this topic

FILE_USAGE_TYPE enumeration

Applies to: desktop apps only

Constants used by IFileIsInUse::GetUsage to indicate how a file in use is being used.

Syntax

typedef enum FILE_USAGE_TYPE {
  FUT_PLAYING   = 0,
  FUT_EDITING   = 1,
  FUT_GENERIC   = 2 
} FILE_USAGE_TYPE;

Constants

FUT_PLAYING

The file is being played by the process that has it open.

FUT_EDITING

The file is being edited by the process that has it open.

FUT_GENERIC

The file is open in the process for an unspecified action or an action that does not readily fit into the other two categories.

Remarks

The interpretation of "playing" or "editing" is left to the application's implementation of IFileIsInUse. Generally, "playing" would refer to a media file while "editing" can refer to any file being altered in an application. However, the application itself best knows how to map these terms to its actions.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ