Table of Contents

zfile_GetDir

Description

Get the full path to the directory containing the specified file.

Files

Declaration zFile.h
Implementation zFile.cpp

Function prototype

bool zfile_GetDir(const char* lpPathName, ZSTR hResult);

Arguments

Name Type Comment
lpPathName const char* A handle to a C-style string containing the file name, the directory of which is to be determined.
hResult ZSTR A ZSTR handle to a string variable that is to receive the directory string.

Return value

False if no directory was found in the given path string or if an error occurred, and true otherwise (with hResult containing the directory path, without the trailing slash).

Comments

None.