J
JK
I am using a Visual C++ 6.0 application which calls GetFileAttributes
API. The API call seems to be returning different results in win2k
professional and win XP.
If i call GetFileAttributes API with a folder which is read only, win2k
identifes the read only folder correctly. But win XP says it is not a
read only folder.
The following snippet is not working in win XP
if ((Attribute=GetFileAttributes(TmpPath)) != 0xffffffff) {
if (Attribute & FILE_ATTRIBUTE_DIRECTORY) {
if (Attribute & FILE_ATTRIBUTE_READONLY )
{
Result = ErrorResult;
}
}
else
{
Result = ErrorResult;
}
Kindly help me to solve this problem
API. The API call seems to be returning different results in win2k
professional and win XP.
If i call GetFileAttributes API with a folder which is read only, win2k
identifes the read only folder correctly. But win XP says it is not a
read only folder.
The following snippet is not working in win XP
if ((Attribute=GetFileAttributes(TmpPath)) != 0xffffffff) {
if (Attribute & FILE_ATTRIBUTE_DIRECTORY) {
if (Attribute & FILE_ATTRIBUTE_READONLY )
{
Result = ErrorResult;
}
}
else
{
Result = ErrorResult;
}
Kindly help me to solve this problem