Click to See Complete Forum and Search --> : How to use FOF_WANTMAPPINGHANDLE flag on SHFileOperation()?


Yoshimura
May 17th, 1999, 04:59 AM
Hi,

I wrote my program alog with Win32 SDK, but could not find expected result.
Please see the following code.

SHFILEOPSTRUCT shfs;
ZeroMemory(&shfs, sizeof(SHFILEOPSTRUCT));
shfs.hwnd = NULL;
shfs.fFlags = FOF_RENAMEONCOLLISION|FOF_WANTMAPPINGHANDLE;
shfs.wFunc = FO_COPY;
shfs.pFrom = LPSTR *;
shfs.pTo = LPSTR *;
::SHFileOperation(&shfs);

At this point, I wanted SHNAMEMAPPING handle in the flag of shfs.hNameMappings.
But it was NULL.

Could anyone give me a suggestion?

Thank you.

Yasuhiko Yoshimura