|
// *********************************************************
// テンポラリファイル作成 ( .tmp )
// 戻り値 : 成功 true, 失敗 false
// *********************************************************
BOOL LboxFileSystem::CreateTempFile(
LboxString *LPath, LPTSTR lpPrefix, LboxString *LString
)
{
return LboxFileSystem::CreateTempFile(
LPath->szLboxString,
lpPrefix,
LString
);
}
BOOL LboxFileSystem::CreateTempFile(
LPTSTR lpCreatePath, LPTSTR lpPrefix, LboxString *LString
)
{
UINT nRet;
if ( LString->nLboxString < MAX_PATH ) {
LString->Resize( MAX_PATH );
}
nRet = GetTempFileName(
lpCreatePath,
lpPrefix,
0,
LString->szLboxString
);
if ( nRet == 0 ) {
return false;
}
return true;
}
| |