Can named pipe names have a backslash?

According to MSDN ,

[Pipe Name] should take the following form:

\\.\pipe\pipename

Part of the name pin code name includes any character other than a backslash, including numbers and special characters. The whole pipe name string can be up to 256 long characters. Pipe names are not case sensitive.

But there are many examples where I saw the names of named pipes with backslashes. For example, the default name for SQL Server is \\.\pipe\sql\query.

Running PipeList from SysInternals shows a lot of pipes on my machine, where the name includes a backslash.

So, can a channel name have a backslash or not?

I ask because I created a service with several pipes with names like this:

\\.\pipe\MyApp
\\.\pipe\MyApp\0
\\.\pipe\MyApp\1
\\.\pipe\MyApp\2

, , Windows 123 (ERROR_INVALID_NAME). , , , .

, , , , "" .

, MSDN, , .

?

+3
1

, , , . , "". Windows . , \.\Pipe\MyApp . , , .

+6

Source: https://habr.com/ru/post/1761636/


All Articles