Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のように、スペースを確保する必要があります。
len = MAX_PATH * sizeof(_TCHAR) + sizeof(_TCHAR);
または:
len = MAX_PATH + sizeof(_TCHAR);
ユニコードを含むパスを保持するのに適切なサイズ?