HttpTreeCreate


int HttpTreeCreate ( const char *pUrl , HttpTreeHandle *pHandle , unsigned uFlags )


 
Create a new tree page.

 
pUrl is the url for the page
 
pHandle here the tree hande will be stored
 
uFlags several flags:

HTTP_TREE_EXPANDALL no folder view for the root path
HTTP_TREE_TYPESORT sort file entries by type
HTTP_TREE_SCANROOT insert files from the root folter too
HTTP_TREE_EXPANDALL no folder view for the root path
HTTP_TREE_NOLINES no lines in the tree
HTTP_TREE_NOSUFFIX don't show file suffixes
HTTP_TREE_NOROOTURL don't insert href urls from the root
HTTP_TREE_NOTREEURL don't insert the url of the tree
HTTP_TREE_NOFOLDERURL    don't insert href urls for folders

 

Returns 0 if the page was created or an error number:

1 url allready exist
2 can't create tree memory
3 path not exist
4 url too long
5 path too long
6 tree contains allready a path

 
 

The url's in the tree entries have this format:

   ...<a href=[prefix][URL-of-Tree][Root-Item]...[Last-Item][Suffix] target=[Target]>...


 

see also:

AzHttp Overview | HttpRegisterTree | HttpTreeAddEntry | HttpTreeAddPath | HttpTreeBackground | HttpTreeSetUrlFrame