Gregorio:
You've done more work than I have.:-) I only found that the Windows Script Host's Scripting.FileSystemObject (which maps to the same function) also returns 0.
The code you posted probably can be cut and pasted into a C DLL. I'll take a look in the morning.
George
Ubi caritas et amor, deus ibi est