Desktop Functions: Smart Device Functions:
|
registerwindowmessage (user32)
C# Signature:
[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)] VB Signature:
Declare Function RegisterWindowMessage Lib "user32.dll" (ByVal lpString As String) As Integer User-Defined Types:None. Notes:None. Tips & Tricks:Please add some! Sample Code:VB.NET Sample Code
Dim MessageID As Integer C# Sample Code
//Register the message C# Sample Code //provide a private internal message id private UInt32 queryCancelAutoPlay = 0; protected override void WndProc(ref Message m) { //calling the base first is important, otherwise the values you set later will be lost base.WndProc (ref m); if (queryCancelAutoPlay == 0)
queryCancelAutoPlay = RegisterWindowMessage("QueryCancelAutoPlay"); if ((UInt32)m.Msg == queryCancelAutoPlay)
m.Result = (IntPtr)1; } //WndProc Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|