IWpfKeyboardTrackingService.BeginTrackingKeyboard Method
Starts tracking the keyboard.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'Declaration
Sub BeginTrackingKeyboard ( _
handle As IntPtr, _
messagesToCapture As IList(Of UInteger) _
)
void BeginTrackingKeyboard(
IntPtr handle,
IList<uint> messagesToCapture
)
void BeginTrackingKeyboard(
IntPtr handle,
IList<unsigned int>^ messagesToCapture
)
abstract BeginTrackingKeyboard :
handle:IntPtr *
messagesToCapture:IList<uint32> -> unit
function BeginTrackingKeyboard(
handle : IntPtr,
messagesToCapture : IList<uint>
)
Parameters
handle
Type: System.IntPtrA valid Win32 window handle (HWND) to which messages should be redirected
messagesToCapture
Type: System.Collections.Generic.IList<UInt32>A list of Win32 messages to redirect to the specified window handle
Remarks
After this method has been called, all keyboard events will be routed to WPF first, before the host application (for example, Visual Studio) sees them.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.