|
// *********************************************************
// ファイル名だけで実行可能なディレクトリに存在する
// ファイルのフルパスを取得
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxInfo::SearchFromPath( LboxString *LFile, LboxString *LString )
{
return SearchFromPath( LFile->szLboxString, LString );
}
BOOL LboxInfo::SearchFromPath( LPTSTR lpFile, LboxString *LString )
{
LPTSTR lpDummy;
DWORD nRet;
if ( LString->nLboxString < MAX_PATH ) {
LString->Resize( MAX_PATH );
}
nRet = SearchPath(
NULL,
lpFile,
NULL,
MAX_PATH,
LString->szLboxString,
&lpDummy
);
if ( nRet == 0 ) {
return false;
}
return true;
}
| |