Add files via upload
This commit is contained in:
부모
5753545981
커밋
dbdd6dc754
|
@ -0,0 +1,19 @@
|
|||
BOOL DeleteFileAltA(PWCHAR Path)
|
||||
{
|
||||
HANDLE hHandle = INVALID_HANDLE_VALUE;
|
||||
|
||||
if (Path == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (!IsPathValidA(Path))
|
||||
return FALSE;
|
||||
|
||||
hHandle = CreateFileA(Path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_DELETE_ON_CLOSE, NULL);
|
||||
if (hHandle == INVALID_HANDLE_VALUE)
|
||||
return FALSE;
|
||||
|
||||
if (hHandle)
|
||||
CloseHandle(hHandle);
|
||||
|
||||
return TRUE;
|
||||
}
|
불러오는 중...
Reference in New Issue