Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "PostMessage" in [All]

Enums

.

    ///The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    [Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")]

.

    '''The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    <Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")> _

.

  PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE | QueueStatusFlags.QS_HOTKEY | QueueStatusFlags.QS_TIMER) << 16,

.

    QS_POSTMESSAGE = 0x8,

.

    QS_ALLEVENTS = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY),

.

    QS_ALLINPUT = (QS_SENDMESSAGE | QS_PAINT | QS_TIMER | QS_POSTMESSAGE | QS_MOUSEBUTTON | QS_MOUSEMOVE | QS_HOTKEY | QS_KEY),

.

    QS_ALLPOSTMESSAGE = 0x100,

.

    PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE Or QueueStatusFlags.QS_HOTKEY Or QueueStatusFlags.QS_TIMER) << 16

.

    QS_POSTMESSAGE = &H8

.

    QS_ALLEVENTS = (QS_INPUT Or QS_POSTMESSAGE Or QS_TIMER Or QS_PAINT Or QS_HOTKEY)

.

    QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.

    QS_ALLPOSTMESSAGE = &H100

.

  QS_POSTMESSAGE = 0x0008,

.

  QS_ALLPOSTMESSAGE = 0x0100,

.

  QS_ALLEVENTS = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY,

.

  QS_ALLINPUT = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE

.

   QS_POSTMESSAGE = &H8

.

   QS_ALLEVENTS = (QS_INPUT Or QS_POSTMESSAGE Or QS_TIMER Or QS_PAINT Or QS_HOTKEY)

.

   QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.

   QS_ALLPOSTMESSAGE = &H100

Constants

.

        /// The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

user32

.

            static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

                PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);

.

       Shared Function PostMessage(hWnd As IntPtr, Msg As UInteger, wParam As IntPtr, lParam As IntPtr) As<MarshalAs(UnmanagedType.Bool)> Boolean

.

         PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero)

.

        QS_POSTMESSAGE =    0x0008,

.

        QS_ALLPOSTMESSAGE = 0x0100,

.

        QS_ALLEVENTS = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY),

.

        QS_ALLINPUT = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)

.
Summary
.

static extern bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

Private Shared Function PostMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean

.

class method PostMessage(hWnd: IntPtr; Msg: UInt32; wParam, lParam: IntPtr): Boolean; external;

.

A wrapper for PostMessage looking for errors:

.

    void PostMessageSafe( HandleRef hWnd, uint msg, IntPtr wParam, IntPtr lParam )

.

        bool returnValue = PostMessage( hWnd, msg, wParam, lParam );

.
Documentation
[PostMessage] on MSDN
.

[DllImport("User32.Dll", EntryPoint = "PostMessageA")]

.

public static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam);

.

Declare Function PostMessageA Lib "user32.dll" (TODO) As TODO

.

PostMessage(hWnd,  WM_KEYDOWN, VkKeyScan('h'), 0);

.

PostMessage(hWnd,  WM_KEYDOWN, VkKeyScan('e'), 0);

.

PostMessage(hWnd,  WM_KEYDOWN, VkKeyScan('l'), 0);

.

PostMessage(hWnd,  WM_KEYDOWN, VkKeyScan('l'), 0);

.

PostMessage(hWnd,  WM_KEYDOWN, VkKeyScan('o'), 0);

.

public static extern bool PostMessageW(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

public static extern bool PostMessageW(IntPtr hWnd, uint Msg, UIntPtr wParam, UIntPtr lParam);

.

public static extern bool PostMessageW(IntPtr hWnd, int Msg, int wParam, IntPtr lParam);

.

public static extern bool PostMessageW(IntPtr hWnd, uint Msg, uint wParam, ref IntPtr lParam);

.

public static extern bool PostMessageW(IntPtr hWnd, uint Msg, uint wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam);

.

public static extern bool PostMessageW(IntPtr hWnd, uint Msg, IntPtr wParam, StringBuilder lParam);

.
Documentation
[PostMessageA] on MSDN
.

MSDN recommends using PostQuitMessage over PostMessage when you want to send WM_QUIT http://msdn.microsoft.com/en-us/library/ms632641%28v=vs.85%29.aspx


 
Access PInvoke.net directly from VS: