GetFileAttributes doesn't work

  • Thread starter Thread starter Perro Flaco
  • Start date Start date
P

Perro Flaco

Hi everybody!

I'm working on my image and I have the following problem. I've
developed my own shell, and it was working fine until now, that I've
added another task.

I want to check if a specific file exists, so I use "GetFileAttributes"
to check it out. This program works with absolutely no problem in
WindowsXP, but in WindowsXP Embedded something is going on and I don't
know what and why. When the program looks for the file, I always get an
error message telling me that the file doesn't exist, but the file DO
exists. What's the problem? Any suggestion? I insist, the program works
fine in WindowsXP, but I've this problem in Embedded and I'm getting
mad with this.

Thank you very much for your help!
 
Perro said:
Hi everybody!

I'm working on my image and I have the following problem. I've
developed my own shell, and it was working fine until now, that I've
added another task.

I want to check if a specific file exists, so I use "GetFileAttributes"
to check it out. This program works with absolutely no problem in
WindowsXP, but in WindowsXP Embedded something is going on and I don't
know what and why. When the program looks for the file, I always get an
error message telling me that the file doesn't exist, but the file DO
exists. What's the problem? Any suggestion? I insist, the program works
fine in WindowsXP, but I've this problem in Embedded and I'm getting
mad with this.

Thank you very much for your help!
Have you tried using dependency walker, filemon and regmon on your
application under XPPro, to see what's being used by your application,
and then checking that against the XPe image? That seems to sort out
most things.
 
Thank you for your advice Heidi!

I took a look to the "dependency walker" and to the "filemon" and they
seem to be very interesting tools. I'll take them into account.

However, the solution was much more simple. I was looking in the wrong
folder, that's all. Windows had changed the main folder, and I didn't
notice this.

Thank you very much!
¡Muchas gracias! ;)
 
Back
Top