eugenevdm wrote: > > KenJackson wrote: > > Error 5 is ERROR_ACCESS_DENIED. Maybe permissions aren't getting set right. > > > You might be onto something. But first of all, are you sure 'Error 5' is the same as status c0000005? Well, I'm not certain, but this is windows.h (on one line), which I think means the high bit is the severity bit, 0x4000 might be the facility, and 0x0005 is the error code. Code: #define MAKE_HRESULT(s,f,c) ((HRESULT)(((unsigned long)(s)<<31)|((unsigned long)(f)<<16)|((unsigned long)(c)))) I don't know why your directory is empty, but that surely seems like a problem.