Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets information needed to customize a menu.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetCustomMenuInfo ( _
pUnkCmdReserved As Object, _
pDispReserved As Object, _
dwType As UInteger, _
dwPosition As UInteger, _
<OutAttribute> ByRef pguidCmdGroup As Guid, _
<OutAttribute> ByRef pdwMenuID As Integer _
) As Integer
int GetCustomMenuInfo(
Object pUnkCmdReserved,
Object pDispReserved,
uint dwType,
uint dwPosition,
out Guid pguidCmdGroup,
out int pdwMenuID
)
int GetCustomMenuInfo(
[InAttribute] Object^ pUnkCmdReserved,
[InAttribute] Object^ pDispReserved,
[InAttribute] unsigned int dwType,
[InAttribute] unsigned int dwPosition,
[OutAttribute] Guid% pguidCmdGroup,
[OutAttribute] int% pdwMenuID
)
abstract GetCustomMenuInfo :
pUnkCmdReserved:Object *
pDispReserved:Object *
dwType:uint32 *
dwPosition:uint32 *
pguidCmdGroup:Guid byref *
pdwMenuID:int byref -> int
function GetCustomMenuInfo(
pUnkCmdReserved : Object,
pDispReserved : Object,
dwType : uint,
dwPosition : uint,
pguidCmdGroup : Guid,
pdwMenuID : int
) : int
Parameters
pUnkCmdReserved
Type: Object[in] Reserved IUnknown pointer.
pDispReserved
Type: Object[in] Reserved IDispatch pointer.
dwType
Type: UInt32[in] The type of the menu.
dwPosition
Type: UInt32[in] The position of the menu.
pguidCmdGroup
Type: Guid%[in] The command group GUID.
pdwMenuID
Type: Int32%[in] The identifier of the menu.
Return Value
Type: Int32
Returns S_OK if user is implementing a custom menu. Returns S_FALSE if menus are suppressed altogether.
Remarks
COM Signature
From vsbrowse.idl:
[C++]
HRESULT IVsWebBrowserUser::GetCustomMenuInfo(
[in] IUnknown* pUnkCmdReserved,
[in] IDispatch* pDispReserved,
[in] DWORD dwType,
[in] DWORD dwPosition,
[out] GUID* pguidCmdGroup,
[out] long* pdwMenuID
);
.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.