#include <windows.h>
Go to the source code of this file.
◆ DEFAULT_NAMED_PIPE_FULL_ACCESS_GROUP
#define DEFAULT_NAMED_PIPE_FULL_ACCESS_GROUP "" |
◆ NAMED_PIPE_FULL_ACCESS_GROUP_EVERYONE
#define NAMED_PIPE_FULL_ACCESS_GROUP_EVERYONE "*everyone*" |
◆ create_server_named_pipe()
HANDLE create_server_named_pipe |
( |
SECURITY_ATTRIBUTES ** |
ppsec_attr, |
|
|
DWORD |
buffer_size, |
|
|
const char * |
name, |
|
|
char * |
name_buf, |
|
|
size_t |
buflen, |
|
|
const char * |
full_access_group_name |
|
) |
| |
Creates an instance of a named pipe and returns a handle.
- Parameters
-
ppsec_attr | Output argument: on exit, points to the security attributes for the pipe. |
buffer_size | Number of bytes to reserve for input and output buffers. |
name | The name of the pipe. |
name_buf | Output argument: null-terminated concatenation of "\\.\pipe\" and name. |
buflen | The size of name_buff. |
full_access_group_name | The name of the local Windows group whose members will have full access to the named pipe. |
- Returns
- Pipe handle, or INVALID_HANDLE_VALUE in case of error.
- Note
- The entire pipe name string can be up to 256 characters long. Pipe names are not case sensitive.
◆ is_valid_named_pipe_full_access_group()
bool is_valid_named_pipe_full_access_group |
( |
const char * |
group_name | ) |
|
◆ my_security_attr_add_rights_to_group()
bool my_security_attr_add_rights_to_group |
( |
SECURITY_ATTRIBUTES * |
psa, |
|
|
const char * |
group_name, |
|
|
DWORD |
group_rights |
|
) |
| |
◆ NAMED_PIPE_EVERYONE_PERMISSIONS
const DWORD NAMED_PIPE_EVERYONE_PERMISSIONS |
Initial value:=
FILE_READ_ATTRIBUTES | FILE_READ_DATA | FILE_WRITE_ATTRIBUTES |
FILE_WRITE_DATA | SYNCHRONIZE | READ_CONTROL
◆ NAMED_PIPE_FULL_ACCESS_GROUP_PERMISSIONS
const DWORD NAMED_PIPE_FULL_ACCESS_GROUP_PERMISSIONS |
Initial value:=
GENERIC_READ | GENERIC_WRITE
◆ NAMED_PIPE_OWNER_PERMISSIONS
const DWORD NAMED_PIPE_OWNER_PERMISSIONS = GENERIC_READ | GENERIC_WRITE |