EWFAPI Error!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All!

I am using ewf APIs from my test application to configure EWF on drive
volumes.

I am using folowing APIs to fetch the EWF configured volume's drive letter.

PEWF_VOLUME_NAME_ENTRY pEwfVolName = NULL;
WCHAR chDrive;
pEwfVolName = EwfMgrGetProtectedVolumeList();
chDrive = EwfMgrGetDriveLetterFromVolumeName( pEwfVolName->Name );

These lines are working fine when i have the XPe os and application on hard
disk.

when i put the same thing on a compact flash (configured as removable
media), the EwfMgrGetDriveLetterFromVolumeName API is retuning some junk
character.
The API is not failing because it is not retuning -1 value, but it returns
some irrelevant character as drive letter.

My final product is going to be on CF and this is somethig very critical for
me.

Can somebody help me on this?

Bill
 
Bill,

I can't help you much with the EwfMgrGetDriveLetterFromVolumeName API. I never tested it on CF removable cards. You may want to file
a report to Microsoft as it sounds like a bug.
In fact, when you deal with XPe, you always want to work with fixed cards as the removable bit brings in too much trouble in XP
world "converted" to embedded.

However, beside the fact that you best bet is to mark the card as fixed, you can try to work around and use other APIs. Not sure if
Volume API is going to work and return correct results (I can only guess that the EWF function uses Volume API behind the scene) but
you may still want to give it a shoot. Take a look at the recent thread in this NG with the subject: "FBWF API using C++". We
discussed there the APIs you might be interested in.
 
Back
Top