Shell Interfaces


IFileIsInUse Interface

Exposes methods that query and close the file currently in use.

IFileIsInUse Members

CloseFile Closes the file currently in use.
GetAppName Gets a string associated with an application name.
GetCapabilities Gets a capabilities flag for file in use.
GetSwitchToHWND Gets the location to return the window handle to.
GetUsage Gets the current file usage type.

Interface Information

Inherits fromIUnknown
Header and IDL filesshobjidl.h, shobjidl.idl
Minimum operating systems Windows Vista
Tags :


Community Content

Chris_Guzak
see the SDK sample on this interface, it explains how it is used
http://msdn.microsoft.com/en-us/library/ee330722(VS.85).aspx
Tags :

Chris_Guzak
Applications should implement this interface to enable resolving sharing errors

The Windows Explorer will use this interface to communicate with applications to resolve sharing errors that occur when users are managing the context of the file system. For example renaming a folder when an application has a file in that folder open will fail. this helps the user resolve this issue.

Applications register the file they have open in the Running Object Table (ROT) and then implement this interface on the object registered.

http://msdn.microsoft.com/en-us/library/ms695276(VS.85).aspx

Tags : contentbug

Page view tracker