MKI_FilePathName (File I/O) New in Version 2014.2

www.CAD6.com

C++ Syntax

bool

MKI_FilePathName(

 const LPCWSTR f_pszFullName,

 MKI_FILENAMEW& f_rPath );

 

Separates a file's name into its path and file components.

 

Parameters

FullName

[const LPCWSTR] Address of file name to be split.

Path

[MKI_FILENAMEW&] Address of text buffer to receive the path component of the file name. Allow at least MAX_PATH characters. If Path is nullptr, this component will be ignored.

 

Return Value

Returns true if successful, false if not.

 

Comment

This procedure will work for all types of file systems (FAT, Enhanced FAT, NTFS, HPFS).

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH