Compartilhar via


IVMRCClientControl::HostKey property

The HostKey property contains the key identifier for the current host key.

This property is read/write.

Syntax

HRESULT put_HostKey(
  [in]  BSTR hostKey
);

HRESULT get_HostKey(
  [out] BSTR *hostKey
);

VB
VMRCClientControl.HostKey( _
  ByRef hostKey, _
  ByVal hostKey _
)

Property value

The key identifier for the current host key.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
S_FALSE
This property cannot be changed at this time.
E_INVALIDARG
The hostKey parameter was NULL.

Remarks

The value for the host key defaults to the right Alt key on a standard 101-key AT keyboard and is represented by the "Key_RightAlt" string. A list of valid key identifier strings can be found on the IVMRCClientControl::SendKeySequence topic.

Requirements

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

See also

IVMRCClientControl