EwfMgrCommitFile API

G

Guest

I am using XP Embedded with SP2, EWF RAM REG Overlay, CF (Hitachi
micro-drive), FAT32. I am trying to use EwfMgrCommitFile API in my
application programs. I read the article at
http://msdn.microsoft.com/library/d.../en-us/xpehelp/html/xelrfEwfMgrCommitFile.asp
EwfMgrCommitFile is always failed in my program. The file size is not
changed when commit. I searched the Internet; I did not find the sample
program code.

My questions are:
1. Is EwfMgrCommitFile API supported in EWF RAM REG Overlay?
2. Could you send some sample program code about how to use EwfMgrCommitFile ?

Thank you very much in advance.
 
G

Guest

Here is code I am using that works well.
Remember the "Commit" command is queued and then executed when a reboot is
done. Do a Windows Restart (from the Start button).

I am having trouble with the XPE_ReStart(); which is part of "XPEPM.DLL",
however it is probably due to my XPe configuration and not xpepm.dll.

void CEWFShellDlg::OnBnClickedButtonCommit() // EWF Commit clicked
{
HANDLE hDisk;
WCHAR szDrive[20];
BOOL bResult=FALSE;

swprintf(szDrive,L"\\\\.\\c:");
hDisk=EwfMgrOpenProtected(szDrive); //Next, open the handle
bResult=EwfMgrCommit(hDisk);
if (!bResult)
MessageBox("EwfMgrCommit failed","Error",MB_OK);
else
MessageBox("Changes commited - Reboot system for change to take
effect","EWF Commit",MB_OK);
EwfMgrClose(hDisk);
UpdateEWFStatus();
}

....Jim Hughen
 
G

Guest

Sorry about that! My bad..
I have not used the EwfMgrCommitFile ewfapi function.
....Jim Hughen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top