Re: Using CreateDirectory problems

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tom Stewart (tastewar_at_newsgroups.nospam)
Date: 07/13/04


Date: Tue, 13 Jul 2004 07:34:29 -0400

Did you read the doc? Mine says,
"To extend this limit to 32,767 wide characters, call the Unicode version of the function
and prepend "\\?\" to the path"

So, looks to me like you've got the wrong string prepended and you need to be sure your
string is unicode and you're calling the W version of the API.

--
Tom
"finecats" <finecats@nospam.nospam> wrote in message
news:C4D9E9CF-AAC5-4EEB-B516-F76EC6F91C7E@microsoft.com...
> I'm getting odd results from CreateDirectory(Str, 0);
>
> When Str =                              result        GetLastError
>          \??\C:\test                        0               0x7b
>                C:\test                        1                 -
>                    \test                       1                -          opens on C:\
>
> In all cases I make sure that C:\test does not exist before I make the call.  The working
directory is currently C:\abc\xyz
>
> Q:  Why wont \??\C:\test work properly.  I've checked this string in the debugger, it is
correct?
>
> The default directory is the working
>
> -- 
> Gak -
>  Finecats


Relevant Pages