This is a example for check file or directory is exist or not before you access it.
WIN32_FIND_DATA fileInfo;
HANDLE hFind = FindFirstFile(unicodestr, &fileInfo);
if (hFind == INVALID_HANDLE_VALUE)
{
bala...bala....
}
FindClose(hFind);
Reference:
http://blog.yam.com/csylvia/article/7026165
沒有留言:
張貼留言