Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Wed Jan 23, 2008 6:28 am Post subject: HOWTO: Create a namespace extension rooted at a file system folder. |
|
|
To create a namespace extension rooted at a file system folder, in the overridden GetNSETargetInfo method, set the fileSystemFolder property of CNSETargetInfo to the desired folder path as follows :
[C++]
void CFolderItem::GetNSETargetInfo(CNSETargetInfo& nti)
{
nti.nseTarget=NSET_FileSystemFolder;
nti.name = "MyNamespaceExtension";
nti.attributes = (NSEItemAttributes)(NSEIA_Folder | NSEIA_HasSubFolder | NSEIA_Browsable
| NSEIA_FileSystem | NSEIA_FileSysAncestor);
nti.fileSystemFolder = <<"Folder path here">>;
...
...
...
} |
|