Appends one path to the end of another.
BOOL PathAppendA( LPSTR pszPath, LPCSTR pszMore );
A pointer to a null-terminated string to which the path specified in pszMore is appended. You must set the size of this buffer to MAX_PATH to ensure that it is large enough to hold the returned string.
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to be appended.
Returns TRUE if successful, or FALSE otherwise.
This function automatically inserts a backslash between the two strings, if one is not already present.
The path supplied in pszPath cannot begin with "..\" or ".\" to produce a relative path string. If present, those periods are stripped from the output string. For example, appending "path3" to "..\path1\path2" results in an output of "\path1\path2\path3" rather than "..\path1\path2\path3".
#include <windows.h> #include <iostream> #include "Shlwapi.h"
|Minimum supported client||Windows 2000 Professional, Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shlwapi.dll (version 4.71 or later)|