freeotfe4pdaguilib.c
来自「文件驱动加密,功能强大,可产生加密分区,支持AES,MD2,MD4,MD5MD2」· C语言 代码 · 共 73 行
C
73 行
// Description:
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW: http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//
#include "FreeOTFEGUIlib.h"
#include "FreeOTFE4PDAGUIlib.h"
#include "FreeOTFE4PDAlib.h"
#include "FreeOTFE4PDAAPI.h"
// =========================================================================
// Returns TRUE if the mountpoint specified is a valid mountpoint which may
// be used
BOOL ValidateMountpoint(
HWND hWnd,
WCHAR* mountpoint,
BOOL SkipExistsCheck,
BOOL silent
)
{
BOOL retval = FALSE;
if (wcslen(mountpoint) == 0)
{
if (!(silent))
{
MsgError(hWnd, TEXT("Please specify a mountpoint"));
}
}
else if (wcscmp(RESERVED_MOUNTPOINT, mountpoint) == 0)
{
if (!(silent))
{
MsgError(hWnd, TEXT("The mountpoint specified is reserved; please enter a different mountpoint"));
}
}
else if (wcspbrk(mountpoint, RESERVED_MOUNTPOINT_CHARS) != NULL)
{
if (!(silent))
{
MsgError(hWnd, TEXT("The mountpoint specified includes a invalid character; please enter a different mountpoint"));
}
}
else if (
(!(SkipExistsCheck)) &&
(GetFileAttributes(mountpoint) != INVALID_FILE_ATTRIBUTES)
)
{
if (!(silent))
{
MsgError(hWnd, TEXT("The mountpoint specified already exists; please enter a different mountpoint"));
}
}
else
{
// Everything OK
retval = TRUE;
}
return retval;
}
// =========================================================================
// =========================================================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?