Click here to Skip to main content
15,891,409 members
Articles / Programming Languages / C++

Windows 2000 Junction Points

Rate me:
Please Sign up or sign in to vote.
4.93/5 (42 votes)
5 Jan 2000 446.5K   3K   83  
Explains how reparse points are used to create filesystem links
// Copyright 2000 Mikael Nordell (tamlin@algonet.se)
// Distributed without warranties. Use as you see fit, except for
// commercial purposes.
#ifndef REPARSE_DIR_HANDLE_H
#define REPARSE_DIR_HANDLE_H

#include "TMN_Win2k.h"

namespace FSLinks {

class Reparse_Dir_HANDLE
{
public:
	Reparse_Dir_HANDLE(LPCTSTR szDir, bool bWriteable = false);
	~Reparse_Dir_HANDLE();

	operator	HANDLE()		{ return m_hDir; }
	bool		IsValid() const	{ return m_hDir != INVALID_HANDLE_VALUE; }

	bool SetReparsePoint(const TMN_REPARSE_DATA_BUFFER& rdb);
	bool DeleteReparsePoint();

private:
	Reparse_Dir_HANDLE(const Reparse_Dir_HANDLE& rhs);
	Reparse_Dir_HANDLE& operator=(const Reparse_Dir_HANDLE& rhs);

	HANDLE m_hDir;
};

}	// end of namespace FSLinks

#endif	// REPARSE_DIR_HANDLE_H


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
Architect
Sweden Sweden
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions