Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IVsFilterKeys.TranslateAccelerator Method

Takes a Windows message, translates it into a command, and, optionally, executes the command.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int TranslateAccelerator (
	[InAttribute] MSG[] pMsg,
	[InAttribute] uint dwFlags,
	out Guid pguidCmd,
	out uint pdwCmd
int TranslateAccelerator (
	/** @attribute InAttribute() */ MSG[] pMsg, 
	/** @attribute InAttribute() */ UInt32 dwFlags, 
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidCmd, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pdwCmd
JScript does not support passing value-type arguments by reference.



[in] Pointer to the Windows message.


[in] Bit flags to determine whether or not to perform default actions, or to execute the command. Values formed from the __VSTRANSACCELFLAGS enumeration.


[out] Pointer to the GUID of the corresponding command.


[out] Pointer to the identifier of the command.

Return Value

If the message does or will translate to a command, the method returns S_OK and fills the pguidCmd and pdwCmd parameters with the command's GUID and ID. If the message does not or will not translate to a command, the method returns S_FALSE, and sets the two parameters to zero.

COM Signature

From vsshell.idl:

HRESULT IVsFilterKeys::TranslateAccelerator(
   [in] LPMSG pMsg, 
   [out] GUID *pguidCmd, 
   [out] DWORD *pdwCmd
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.