Yes, as your advice, i add the output of "n",
the result is "1026".(it should be 0x402)
By the MSDN:
0x402 An unknown error occurred. This is typically due to an invalid path in the source or destination. This error does not occur on Windows Vista and later.
So i guess the fail may from the "invalid path". is it right?
(But in my PC, the path is true, with out any problem.)
Both the
pFrom and
pTo members need to be double-null terminated, see the
SHFILEOPSTRUCT Structure documentation.
Reputation Points: 1105
Solved Threads: 389
Posting Virtuoso
Offline 1,714 posts
since Nov 2007