FILE_USAGE_TYPE enumeration

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: