C# Class CSAssocFile.cAssocFile

Show file Open project: javiercrowsoft/CSReports.net

Public Methods

Method Description
associateFileExtension ( String extension, String pathToExecute, String applicationName ) : void
getAssociatedApp ( String fullFileName ) : String
getLongFileName ( String fullFileName ) : String
unAssociateFileExtension ( String extension, String applicationName ) : void
validateAssociation ( String extension, String pathToExecute, String applicationName ) : bool

Private Methods

Method Description
FindExecutableA ( string lpFile, string lpDirectory, StringBuilder lpResult ) : long
SHChangeNotify ( HChangeNotifyEventID wEventId, HChangeNotifyFlags uFlags, IntPtr dwItem1, IntPtr dwItem2 ) : void
ask ( String extension, String pathToExecute ) : bool
delTempFile ( String extension ) : void
findExecutable ( string pv_strFilename ) : string
getTempFile ( String extension ) : String
saveNotAsk ( String extension, String pathToExecute ) : void

Method Details

associateFileExtension() public method

public associateFileExtension ( String extension, String pathToExecute, String applicationName ) : void
extension String
pathToExecute String
applicationName String
return void

getAssociatedApp() public method

public getAssociatedApp ( String fullFileName ) : String
fullFileName String
return String

getLongFileName() public method

public getLongFileName ( String fullFileName ) : String
fullFileName String
return String

unAssociateFileExtension() public method

public unAssociateFileExtension ( String extension, String applicationName ) : void
extension String
applicationName String
return void

validateAssociation() public method

public validateAssociation ( String extension, String pathToExecute, String applicationName ) : bool
extension String
pathToExecute String
applicationName String
return bool