User32RegisterWindowMessage Method
Defines a new window message that is guaranteed to be unique throughout the system.
The message value can be used when sending or posting messages.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static uint RegisterWindowMessage(
string name
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function RegisterWindowMessage (
name As String
) As UInteger
Dim name As String
Dim returnValue As UInteger
returnValue = User32.RegisterWindowMessage(name)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static unsigned int RegisterWindowMessage(
String^ name
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member RegisterWindowMessage :
name : string -> uint32
No code example is currently available or this language may not be supported.
- name String
-
The name of the new message to be registered.
UInt32
If the message is successfully registered, the return value is a message identifier
in the range
0xC000 through
0xFFFF.
If the function fails, the return value is
0.
To get extended error information, call
GetLastWin32Error.