C# Class Dear.Files.FileUtil

Show file Open project: MrWindows/MrWindows

Public Methods

Method Description
WhoIsLocking ( string path ) : List

Find out what process(es) have a lock on the specified file.

See also: http://msdn.microsoft.com/en-us/library/windows/desktop/aa373661(v=vs.85).aspx http://wyupdate.googlecode.com/svn-history/r401/trunk/frmFilesInUse.cs (no copyright in code at time of viewing)

Private Methods

Method Description
RmEndSession ( uint pSessionHandle ) : int
RmGetList ( uint dwSessionHandle, uint &pnProcInfoNeeded, uint &pnProcInfo, [ rgAffectedApps, uint &lpdwRebootReasons ) : int
RmRegisterResources ( uint pSessionHandle, UInt32 nFiles, string rgsFilenames, UInt32 nApplications, [ rgApplications, UInt32 nServices, string rgsServiceNames ) : int
RmStartSession ( uint &pSessionHandle, int dwSessionFlags, string strSessionKey ) : int

Method Details

WhoIsLocking() static public method

Find out what process(es) have a lock on the specified file.
See also: http://msdn.microsoft.com/en-us/library/windows/desktop/aa373661(v=vs.85).aspx http://wyupdate.googlecode.com/svn-history/r401/trunk/frmFilesInUse.cs (no copyright in code at time of viewing)
static public WhoIsLocking ( string path ) : List
path string Path of the file.
return List