# vx_req_channel_set_lock_mode

> Learn about voice channels in Vivox Core.

[More...](#detailed-description)

`#include <VxcRequests.h>`

## Public Attributes

|                                                                   | Name                                                                                                                                                                                                                           |
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [vx\_req\_base\_t](./_vxc_8h.md#typedef-vx_req_base_t)            | **[base](./structvx__req__channel__set__lock__mode.md#variable-base)** The common properties for all requests.                                                                                                                 |
| [VX\_HANDLE](./_vxc_8h.md#typedef-vx_handle)                      | **[account\_handle](./structvx__req__channel__set__lock__mode.md#variable-account_handle)** The handle returned from a successful [vx\_req\_account\_anonymous\_login](./structvx__req__account__anonymous__login.md) request. |
| char \*                                                           | **[channel\_uri](./structvx__req__channel__set__lock__mode.md#variable-channel_uri)** The URI of the channel to set the lock status on.                                                                                        |
| [vx\_channel\_lock\_mode](./_vxc_8h.md#enum-vx_channel_lock_mode) | **[lock\_mode](./structvx__req__channel__set__lock__mode.md#variable-lock_mode)** The channel lock mode.                                                                                                                       |

## Detailed Description

```cpp
struct vx_req_channel_set_lock_mode;
```

**See**: [vx\_resp\_channel\_set\_lock\_mode](./structvx__resp__channel__set__lock__mode.md)

**Note**: The user who issues this request must have moderator privileges. A channel becomes unlocked when all participants have left the channel.

## Public Attributes Documentation

### variable base

```cpp
vx_req_base_t base;
```

The common properties for all requests.

### variable account\_handle

```cpp
VX_HANDLE account_handle;
```

The handle returned from a successful [vx\_req\_account\_anonymous\_login](./structvx__req__account__anonymous__login.md) request.

### variable channel\_uri

```cpp
char * channel_uri;
```

The URI of the channel to set the lock status on.

### variable lock\_mode

```cpp
vx_channel_lock_mode lock_mode;
```

The channel lock mode.
