MySQL  8.0.27
Source Code Documentation
named_pipe.h File Reference
#include <windows.h>

Go to the source code of this file.

Macros

#define DEFAULT_NAMED_PIPE_FULL_ACCESS_GROUP   ""
 
#define NAMED_PIPE_FULL_ACCESS_GROUP_EVERYONE   "*everyone*"
 

Functions

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=nullptr)
 Creates an instance of a named pipe and returns a handle. More...
 
bool is_valid_named_pipe_full_access_group (const char *group_name)
 
bool my_security_attr_add_rights_to_group (SECURITY_ATTRIBUTES *psa, const char *group_name, DWORD group_rights)
 

Variables

const DWORD NAMED_PIPE_OWNER_PERMISSIONS = GENERIC_READ | GENERIC_WRITE
 
const DWORD NAMED_PIPE_EVERYONE_PERMISSIONS
 
const DWORD NAMED_PIPE_FULL_ACCESS_GROUP_PERMISSIONS
 

Macro Definition Documentation

◆ 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*"

Function Documentation

◆ 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_attrOutput argument: on exit, points to the security attributes for the pipe.
buffer_sizeNumber of bytes to reserve for input and output buffers.
nameThe name of the pipe.
name_bufOutput argument: null-terminated concatenation of "\\.\pipe\" and name.
buflenThe size of name_buff.
full_access_group_nameThe 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 
)

Variable Documentation

◆ 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