User32PostMessage(SafeHandle, ListViewMessages, IntPtr, IntPtr) Method
Places (posts) a message in the message queue associated with the thread that created
the specified ListView control and returns without waiting for the thread to process the message.
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", SetLastError = true)]
public static bool PostMessage(
SafeHandle hWnd,
ListViewMessages message,
IntPtr wparam,
IntPtr lparam
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function PostMessage (
hWnd As SafeHandle,
message As ListViewMessages,
wparam As IntPtr,
lparam As IntPtr
) As Boolean
Dim hWnd As SafeHandle
Dim message As ListViewMessages
Dim wparam As IntPtr
Dim lparam As IntPtr
Dim returnValue As Boolean
returnValue = User32.PostMessage(hWnd,
message, wparam, lparam)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool PostMessage(
SafeHandle^ hWnd,
ListViewMessages message,
IntPtr wparam,
IntPtr lparam
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member PostMessage :
hWnd : SafeHandle *
message : ListViewMessages *
wparam : IntPtr *
lparam : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
Handle to the window whose window procedure will receive the message.
If this parameter is HWND_Broadcast,
the message is sent to all top-level windows in the system,
including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
but the message is not sent to child windows.
- message ListViewMessages
-
Specifies the message to be sent.
- wparam IntPtr
-
Specifies additional message-specific information.
- lparam IntPtr
-
Specifies additional message-specific information.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.