mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks.
This commit is contained in:
@ -1034,6 +1034,24 @@ ULONGLONG CSystem::GetTickCount64()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** IsFileWritable
|
||||
**
|
||||
** Checks if file is writable.
|
||||
**
|
||||
*/
|
||||
bool CSystem::IsFileWritable(LPCWSTR file)
|
||||
{
|
||||
HANDLE hFile = CreateFile(file, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
CloseHandle(hFile);
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
** RmLoadLibrary
|
||||
**
|
||||
|
Reference in New Issue
Block a user