// vmbuskernelmodeclientlibapi.h
FN_VMB_SERVER_CHANNEL_INIT_SET_TARGET_VTL FnVmbServerChannelInitSetTargetVtl;
NTSTATUS FnVmbServerChannelInitSetTargetVtl(
VMBCHANNEL Channel,
UINT8 TargetVtl
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The VmbServerChannelInitSetTargetVtl function sets the target VTL for this channel. The channel will be offered to clients running in the specified VTL and no others.
ChannelA handle for the channel. Allocated by VmbChannelAllocate.
TargetVtlThe VTL level where this channel will be offered.
VmbServerChannelInitSetTargetVtl returns the following status values:
| Return code | Description |
|---|---|
| STATUS_INVALID_PARAMETER_1 | The Channel parameter was invalid or in an invalid state (Disabled). |
| STATUS_INVALID_PARAMETER_2 | TargetVtl is invalid. |
//Declaration
FN_VMB_SERVER_CHANNEL_INIT_SET_TARGET_VTL FnVmbServerChannelInitSetTargetVtl;
// Definition
NTSTATUS FnVmbServerChannelInitSetTargetVtl
(
VMBCHANNEL Channel
UINT8 TargetVtl
)
{...}
[!IMPORTANT] This function is called through the VMBus Kernel Mode Client Library (KMCL) interface, provided by the Vmbkmcl.sys bus driver. This is a server-only function accessed from the KMCL_SERVER_ONLY_METHODS structure.
For more information, see the Remarks section of KMCL_SERVER_ONLY_METHODS.