|
// *********************************************************
// 特殊フォルダのパスを取得
// LBOX_SPFOLDER_STARTUP : スタートアップ
// 戻り値 : 失敗した場合は false,成功すると true
// *********************************************************
BOOL LboxInfo::SpecialFolderPath( int nTarget, LboxString *LString )
{
LString->Resize( MAX_PATH );
return LboxInfo::SpecialFolderPath(
nTarget,
LString->szLboxString
);
}
BOOL LboxInfo::SpecialFolderPath( int nTarget, LPTSTR lpBuffer )
{
HRESULT hRet;
hRet = SHGetSpecialFolderPath(
NULL,
lpBuffer,
nTarget,
false
);
if ( hRet == NOERROR ) {
return true;
}
return false;
}
| |