This simple test creates a "Test" folder in my user appdata folder
(C:\Users\Username\AppData\Roaming on my PC (Windows 10 22H2) ) :
WCHAR wszPath[MAX_PATH] = L"";
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, wszPath)))
{
PathAppend(wszPath, L"Test");
if (!PathFileExists(wszPath))
{
BOOL bRet = CreateDirectory(wszPath, NULL);
}
}