Share via


IVMKeyboard::HasExclusiveAccess property

The HasExclusiveAccess property contains whether this IVMKeyboard object has exclusive control over the virtual machine's keyboard device.

This property is read/write.

Syntax

HRESULT put_HasExclusiveAccess(
  [in]  VARIANT_BOOL makeExclusive
);

HRESULT get_HasExclusiveAccess(
  [out] VARIANT_BOOL *isExclusive
);

VB
VMKeyboard.HasExclusiveAccess( _
  ByRef isExclusive, _
  ByVal makeExclusive _
)

Property value

Contains vbTrue if exclusive access to the virtual machine's keyboard device has been acquired, vbFalse otherwise.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The isExclusive parameter is NULL.
S_FALSE
The requested exclusive mode is already set for this device. This could happen when trying to set exclusive mode when it has already been acquired, or when trying to release exclusive mode when it had not been previously acquired.
VM_E_UNABLE_TO_SET_EXCLUSIVE_MODE
Failed to set or release exclusive mode as requested. This could be because the virtual machine is no longer running, or because another process has already acquired exclusive mode on the virtual machine's keyboard device.
DISP_E_EXCEPTION
An unexpected error occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMKeyboard