U?ytkownik "William DePalo [MVP VC++]" <willd.no.spam@mvps.org> wrote in
message
> Instead of this
>
[quoted text clipped - 9 lines]
>
> Note that a thread saves only its _last_ error.
Thank's a lot! In fact that error was caused by another error appear
earlier - 123 "The file name, directory name, or volume label syntax is
incorrect." So, name of named pipe is wrong, I suppose.
Best regards
Pawel.
William DePalo [MVP VC++] - 11 Jan 2005 17:05 GMT
> Thank's a lot!
You are welcome.
> In fact that error was caused by another error appear
> earlier - 123 "The file name, directory name, or volume
> label syntax is incorrect." So, name of named pipe is
> wrong, I suppose.
This is from the docs on pipe names:
<quote>
The pipename part of the name can include any character
other than a backslash, including numbers and special
characters. The entire pipe name string can be up to 256
characters long. Pipe names are not case sensitive.
Windows Me/98/95: Pipe names cannot include a colon.
Therefore, if this pipe will be used from a Windows Me/98/95
client, do not include a colon in the name.
</quote>
Please post any follow-up in the kernel group.
Regards,
Will
Lewap - 12 Jan 2005 10:53 GMT
The problem was that I've used wrong conversion for name of pipe. I wrote:
LPTSTR lpszPipename = (LPTSTR) "\\\\.\\pipe\\testpipe";
and should be:
LPTSTR lpszPipename = _T("\\\\.\\pipe\\testpipe");
and now everything works fine.
Thanks again!
Best regards,
Pawel.