Click here to Skip to main content
15,894,896 members
Articles / Desktop Programming / MFC

VssReporter 2.1 - A Visual SourceSafe reporting tool for build administrators

Rate me:
Please Sign up or sign in to vote.
4.88/5 (100 votes)
25 Mar 200610 min read 627.2K   8.9K   162  
A support tool to allow those performing builds to independently determine exactly what source files have been changed and by whom
// CDriveInfo : returns info about drives attached

#if !defined ( DRIVEINFO_H )
#define DRIVEINFO_H 

enum { DRIVE_HOST = 7 };

class CDriveInfo
{
public:
	static float GetFreeBytes(int nDrive); // in MB
	static float GetTotalBytes(int nDrive); // in MB

	static CString GetVolume(int nDrive);
	static CString GetRoot(int nDrive);
	static CString GetFullName(int nDrive);
	static char GetLetter(int nDrive);
	static int GetType(int nDrive);
    static int GetPathType(LPCTSTR szPathName);
	static BOOL IsDriveAvailable(int nDrive);
	static void FormatName(CString& sFileName);
	static int GetDrive(LPCTSTR szPathName);
	static BOOL IsMappedPath(LPCTSTR szPathName);
	static BOOL IsRemotePath(LPCTSTR szPathName, BOOL bAllowFileCheck = TRUE);
	static BOOL IsRemovablePath(LPCTSTR szPathName);
	static BOOL IsFixedPath(LPCTSTR szPathName);
	static int IsReadonlyPath(LPCTSTR szPathName); // -1 = no such path, else TRUE/FALSE
	static DWORD GetSerialNumber(int nDrive);
   static BOOL IsUNCPath(LPCTSTR szPathName);
};

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.

Comments and Discussions