Page 1 of 1
Undelete Library on Windows Vista
Posted: 22 Jul 2009, 19:14
by newellista
I have integrated the File Undelete library into my code. It seems to work well with WinXP. However, when I run it on a Windows Vista machine, the OpenVolume call returns false.
Are there known issues with Vista? Any suggestions? What can I do to help troubleshoot this?
My Vista machine has 2 Logical Partitions: C:\, D:\. Both are formatted as NTFS partitions. I am attempting to open a subdirectory on C:\.
Thanks,
Steve
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 20:00
by Ether
It could be a UAC issue. Anyway, are you sure you have a permission to use this copyrighted library?
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 20:15
by newellista
Yes, we have licensed the library. I can send you an email with those credentials, if you wish.
If it is a UAC issue, how can I resolve this?
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 20:37
by Ether
newellista wrote:Yes, we have licensed the library. I can send you an email with those credentials, if you wish.
There's no need, I believe that if there was any problem, someone from ALTAP would show up.
newellista wrote:If it is a UAC issue, how can I resolve this?
Try running the application 'as Administrator', i.e. right click on it and choose the item with the little shield icon. This ensures that the application has unrestricted privileges.
EDIT - added for completeness: To tell Windows that it should raise an elevation prompt automatically, add the according option to the application's manifest.
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 20:47
by newellista
ether wrote:newellista wrote:Yes, we have licensed the library. I can send you an email with those credentials, if you wish.
There's no need, I believe that if there was any problem, someone from ALTAP would show up.
Didn't mean to sound confrontational. I assumed you were from ALTAP, and were wanting verification.
ether wrote:newellista wrote:If it is a UAC issue, how can I resolve this?
Try running the application 'as Administrator', i.e. right click on it and choose the item with the little shield icon. This ensures that the application has unrestricted privileges.
I'll give that a try. Thanks.
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 21:24
by newellista
I tried running as Administrator with no luck. I also tried running the undeltst.exe program that ships with the library, with the following results:
Code: Select all
Undelete Library test application (Unicode version)
Copyright (c) 2008 ALTAP Ltd. http:\\www.altap.cz\
Commands:
help - this command list
volls - list available volumes
volset - change active disk to specified volume
volclose - close currently active volume
ls - list current directory
cd - change current directory
cp - copy (undelete) a file or directory
update - update volume snapshot
quit - quit application
You may use abbreviated names (eg. 'Doc' instead of 'Documents and Settings') if
the prefix is unique
NotSet>volls
4 1040
PathName: D:\
GUID: RECOVERY
FSType: NTFS
BytesTotal: 2147479552
BytesFree: 1514967040
VolumeName: \\?\Volume{5b898135-9b8d-11dc-ab26-806e6f6e6963}\
PathName: C:\
GUID: OS
FSType: NTFS
BytesTotal: 77808529408
BytesFree: 32505425920
VolumeName: \\?\Volume{5b898136-9b8d-11dc-ab26-806e6f6e6963}\
NotSet>volset c:\
Opening volume c:\
????????????????????????????????????????♦????5?j??????!??♦????;????????p?4????♀?
???)??r?????♦???????? ????????????????????????
NotSet>
I get this same result whether I run as administrator or not.
So, I guess my question is for ALTAP, has this library been tested on Windows Vista? If so, what were the results, and how can I get your sample code, and my application running? If it doesn't yet work, do you have a timetable? What can I do to help?
Thanks for your help,
Steve
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 21:57
by Jan Rysavy
Hi Steve, yes, the Undelete library is tested with all
supported Windows including Vista 32 and 64b.
Please contact me on my email
jan.rysavy@altap.cz.
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 22:04
by Ether
newellista wrote:Didn't mean to sound confrontational. I assumed you were from ALTAP, and were wanting verification.
Me neither. I was just curious if someone could be so insolent to ask how to use an unlicensed library on the official forums (such things happen, though).
newellista wrote:I tried running as Administrator with no luck.
It seems that Vista imposed new security(?) measures and denies access to the volume even to Administrators. Apparently, the volume needs to be locked first in order to be operated on. However, locking a volume requires that no files are opened, which is quite impossible when you're dealing with the system volume. I suggest you try opening the second volume (labeled RECOVERY) and see what happens. And don't forget to elevate, of course.
Jan Rysavy wrote:the Undelete library is tested with all supported Windows including Vista 32 and 64b.
Have you tried opening a system volume? If it's an access denied error indeed, maybe the permissions of the kernel object could be altered. Unfortunately, I have no suitable machine for testing right now.
For more information, look here:
Sysinternals Forums - Vista: disk write - "access denied".
Re: Undelete Library on Windows Vista
Posted: 22 Jul 2009, 22:45
by Jan Rysavy
ether wrote:Jan Rysavy wrote:the Undelete library is tested with all supported Windows including Vista 32 and 64b.
Have you tried opening a system volume? If it's an access denied error indeed, maybe the permissions of the kernel object could be altered. Unfortunately, I have no suitable machine for testing right now.
Yes, it works fine there. The same applies to (elevated) Altap Salamander Undelete plugin that is based on Undelete library.