Kagamin Wrote: > > > > SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR > > pszPath); > > > > these functions don't require output buffer to be null-terminated, because > it's an *out* buffer, not inout, see example in msdn.
http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx citate: pszPath [out] A pointer to a null-terminated string of length MAX_PATH which will receive the path. How i can determine the length of returned path string? I know only one way - look for 0, because it is 0-terminated For example all registry functions... RegCreateKeyW(IN HKEY hKey, IN LPCWSTR lpSubKey,... in VC 7 folder in PlatformSDK\Include i found 24 *.h files contain "IN LPWSTR" 36 *.h files contain "OUT LPWSTR" we shoiuld multiply this by function count in one file...