处理 Windows 消息。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function WndProc ( _
hwnd As IntPtr, _
iMsg As UInteger, _
wParam As IntPtr, _
lParam As IntPtr, _
ByRef pLResult As Integer _
) As Integer
int WndProc(
IntPtr hwnd,
uint iMsg,
IntPtr wParam,
IntPtr lParam,
ref int pLResult
)
int WndProc(
[InAttribute] IntPtr hwnd,
[InAttribute] unsigned int iMsg,
[InAttribute] IntPtr wParam,
[InAttribute] IntPtr lParam,
int% pLResult
)
abstract WndProc :
hwnd:IntPtr *
iMsg:uint32 *
wParam:IntPtr *
lParam:IntPtr *
pLResult:int byref -> int
function WndProc(
hwnd : IntPtr,
iMsg : uint,
wParam : IntPtr,
lParam : IntPtr,
pLResult : int
) : int
参数
hwnd
类型:IntPtr窗口句柄。
iMsg
类型:UInt32消息 ID。
wParam
类型:IntPtr有关消息的信息。
lParam
类型:IntPtr消息需要的信息。
pLResult
类型:Int32%结果。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
参数对应于 Message 结构的字段。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。