New EWFAPI ???

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

Guest

Am getting so much of linking error with SP2 TP ewfapi.lib but works fine
with SP1 library?? but there seems to e no change in header file. whats gone
wrong???

Linking...
EWFAPI.obj : error LNK2019: unresolved external symbol
__imp__EwfMgrClearCommand@4 referenced in function "unsigned long __cdecl
DoEwfClearCommand(unsigned short *)" (?DoEwfClearCommand@@YAKPAG@Z)
EWFAPI.obj : error LNK2019: unresolved external symbol __imp__EwfMgrEnable@4
referenced in function "unsigned long __cdecl DoEwfEnable(unsigned short
*,int)" (?DoEwfEnable@@YAKPAGH@Z)
EWFAPI.obj : error LNK2019: unresolved external symbol
__imp__EwfMgrDisable@8 referenced in function "unsigned long __cdecl
DoEwfDisable(unsigned short *,int)" (?DoEwfDisable@@YAKPAGH@Z)
EWFAPI.obj : error LNK2019: unresolved external symbol __imp__EwfMgrCommit@4
referenced in function "unsigned long __cdecl DoEwfCommit(unsigned short
*,int)" (?DoEwfCommit@@YAKPAGH@Z)

Sanakra Narayanan
 
I noticed the same bug.

It actually seems that the ewfapi.lib in SP2 TP is not just a simple wrapper around the ewfapi.dll (as it was in SP1) but rather the
static full .lib file. In other words, the static library which was probably used to build new ewfmgr.exe.

There are two new EWF API functions available in SP2:
EwfMgrCommitAndDisableLive
EwfMgrCommitFile
which are declared in SP2 ewfapi.h header. These functions are implemented in new ewfapi.dll. But we don't have new ewfapi.lib to
link to the new ewfapi.dll to use these API fucntions.

I hope it is going to be fixed in RTM.

While waiting for SP2 you can use a simple workaround. Just use the ewfapi.lib from SP1. It is going to dynamicly bind to the proper
ewfapi.dll at run time anyway (for old EWF API functions all ordinals are the same).
In case you want to leverage new API functions mentioned above you will need to use LoadLibrary/GetProcAddress code.

KM
 
Hi Sankar/KM,

This is a bug. The ewfapi.lib that is included on the installation media is
an incorrect version. The correct version will be made available as a QFE.
I will post the link as soon as I can.

Dan
 
Back
Top