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
Download Visual Studio Add-In

Search Results for "MSG" in [All]

coredll

.

        'MsgBox(ex.ToString)

.

        'MsgBox(ex.ToString)

.

        System.Text.StringBuilder sbMsg = new System.Text.StringBuilder(1024);

.

        if (FormatMessage(FormatMessageFlags.FORMAT_MESSAGE_FROM_SYSTEM, IntPtr.Zero, win32ErrorCode, 0, sbMsg, sbMsg.Capacity, null) != 0)

.

        return sbMsg.ToString();

.

      MsgBox("NumLock is off")

.

      MsgBox("NumLock is on")

.

            switch(m.Msg)

.

ůSߞÕ5ïÑÚÖOí_¢A“ÿ ŠÇ(ܜý!Ã荻è‰÷´ã­ŸŠðÍg 9Z&ŽÑNÍçÅ@Ɂ¶Î8˜Ø£¦¦â>be$¯çæä üMqQ$Ò¢>³h‚7Õ]<´H6çMI¹›Rªì?-Mè¶FŒyð„Š1ôšö*]Ä6éêÛAš­ó³¬W[©M•®j]¼°XG#iø3ŽGSó®œ8îyó‚¤2½8‚÷ˆ5ægˆyð‰pÔ±¶Án­;µ\nÊIMsgi¿g A‹¨x†jž'9F*¼Æ0€»ìö¡¸/ Þ$Ïc“„ä/ÈðAp')Äâ

.

private static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);

.

Declare Function SendMessage Lib "coredll.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr

.

    public static extern int SendMessage(IntPtr hWnd, WM Msg, int wParam, int lParam);

.

    public static extern int SendMessage(IntPtr hWnd, WM Msg, int wParam, int lParam);

.

    static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);

.

    uint uMsg,  // Win32 type UINT

.

    // values for waveInProc.uMsg

Structures

.

   public MessageType Type { get; set; }           // MessageType.FV_RUBBERBAND_GEORECT_MSG (3)

.

   switch (m.Msg)

.

       var msg = Marshal.PtrToStructure<COPYDATASTRUCT>(m.LParam);

.

       var pData = Marshal.PtrToStructure<GEORECT>(msg.lpData);

.

       if (MessageType.FV_RUBBERBAND_GEORECT_MSG == pData.Type

.

    public uint dwMsgAndCertEncodingType;

.

    public uint dwMsgEncodingType;

.

    public UInt32 dwMsgEncodingType;

.

    public UInt32 cMsgCert;

.

    public IntPtr rgpMsgCert;

.

    public UInt32 cMsgCrl;

.

    public IntPtr rgpMsgCrl;

.

      public uint dwMsgEncodingType;

.

        Public dwMsgEncodingType As UInt32

.

2. The only supported dwMsgEncodingType is X509_ASN_ENCODING | PKCS_7_ASN_ENCODING (see constants section)

.

struct EVENTMSG

.

Structure EVENTMSG

.
Documentation
[EVENTMSG] on MSDN
.

        internal int uMsg;

.

  Public uMsg As Integer

16: MSG
.

public struct MSGBOXPARAMS

.

    public MsgBoxCallback lpfnMsgBoxCallback;

.

public delegate void MsgBoxCallback( HELPINFO lpHelpInfo );

.
Documentation
[MSGBOXPARAMS] on MSDN
.

        Public Shared Function FromMessage(ByVal msg As Message) As NMCUSTOMDRAW

.

            Return DirectCast(msg.GetLParam(GetType(NMCUSTOMDRAW)), NMCUSTOMDRAW)

19: NMHDR
.

   Public Shared Function FromMessage(ByVal msg As Message) As NMHDR

.

     Return DirectCast(msg.GetLParam(GetType(NMHDR)), NMHDR)

.

    Private Delegate Function TranslateDispatchCallbackDelegate(ByRef lpmsg As MSG) As Boolean

.

    Private Function TranslateDispatchCallback(ByRef lpmsg As MSG) As Boolean

.

            public string lpRebootMsg;

.

   Public lpRebootMsg As String

winmm

.

    if (m.Msg == MM_MCINOTIFY)

.

     MsgBox(returnstring)

.

     If m.Msg = MM_MCINOTIFY Then

.

     MsgBox("Done playing.")

.

static extern uint midiOutShortMsg(IntPtr hMidiOut, uint dwMsg);

.

Declare Function midiOutShortMsg Lib "winmm.dll" (hMidiOut As Intptr,dwMsg As UInt32) As UInt32

.

uint msg = BitConverter.ToUInt32(data, 0);

.

midiOutShortMsg(hmidi, msg);

.

msg = BitConverter.ToUInt32(data, 0);

.

midiOutShortMsg(hmidi, msg);

.
Documentation
[midiOutShortMsg] on MSDN
.

    delegate void TimerCallback(uint uTimerID, uint uMsg, UIntPtr dwUser, UIntPtr dw1, UIntPtr dw2);

.

    void CBFunc(uint uTimerID, uint uMsg, UIntPtr dwUser, UIntPtr dw1, UIntPtr dw2)

.

delegate void waveInProc(IntPtr hwi, WIMMessages uMsg, IntPtr dwInstance, IntPtr dwParam1, IntPtr dwParam2);

.

Delegate Sub waveInProc(<MarshalAs(UnmanagedType.I4)> ByVal hwi As Integer, ByVal uMsg As WIMMessages, ByVal dwInstance As UIntPtr, ByVal dwParam1 As UIntPtr, ByVal dwParam2 As UIntPtr)

.

     MsgBox("Number of Wave Devices: " & waveOutGetNumDevs(), , "WAVE DEVICES")

.

         MsgBox("MID = " & wc.wMid & Chr(13) & "PID = " & wc.wPid & Chr(13) & "Version = " & _

.

       waveOutGetErrorText(MMRESULT, errmsg, MAXERRORLENGTH);

.

       "waveOutPrepareHeader(): " + errmsg.ToString(),

.

        waveOutGetErrorText(MMRESULT, errmsg, MAXERRORLENGTH);

.

        "waveOutReset(): " + errmsg.ToString(),

Interfaces

.

        [PreserveSig] int HandleMenuMsg2( uint uMsg, uint wParam, uint lParam, IntPtr plResult );

.

Make sure your object explicitly lists all the IContextMenu interfaces or the shell may never call IContextMenu3.HandleMenuMsg2. For example:

.

    int HandleMenuMsg(uint uMsg, IntPtr wParam, IntPtr lParam);

.

        [PreserveSig] int HandleMenuMsg2( uint uMsg, uint wParam, uint lParam, IntPtr plResult );

.

    Public Overridable Sub UIActivateIO(fActivate As Int32, ByRef Msg As MSG) Implements IInputObject.UIActivateIO

.

    ''' <param name="msg"></param>

.

    Public Overridable Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32 Implements IInputObject.TranslateAcceleratorIO

.

    If msg.message = &H100 Then

.

        If msg.wParam = CUInt(Keys.Tab) OrElse msg.wParam = CUInt(Keys.F6) Then

.

    Sub UIActivateIO(fActivate As Int32, ByRef msg As MSG)

.

    Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32

.

Public Structure MSG

.

    Public Overridable Sub UIActivateIO(fActivate As Int32, ByRef Msg As MSG) Implements IInputObject.UIActivateIO

.

    ''' <param name="msg"></param>

.

    Public Overridable Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32 Implements IInputObject.TranslateAcceleratorIO

.

    If msg.message = &H100 Then

.

        If msg.wParam = CUInt(Keys.Tab) OrElse msg.wParam = CUInt(Keys.F6) Then

.

    Sub UIActivateIO(fActivate As Int32, ByRef msg As MSG)

.

    Function TranslateAcceleratorIO(ByRef msg As MSG) As Int32

.

Public Structure MSG

.

     void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect);

.

        /// <param name="pwzCancelMsg">A pointer to a null-terminated Unicode string that contains the message to be displayed.</param>

.

        void SetCancelMsg(

.

            [MarshalAs(UnmanagedType.LPWStr)] string pwzCancelMsg, //LPCWSTR

.

pd.SetCancelMsg("Please wait while the operation is cancelled", null);

.

    int TranslateAccelerator(ref MSG pMsg);

.

MSG

.

    int TranslateAccelerator(ref MSG pMsg);

.

MSG

.

    void TranslateAcceleratorSB(IntPtr pmsg, UInt16 wID);

.

    void SendControlMsg(UInt32 id, UInt32 uMsg, UInt32 wParam, UInt32 lParam, IntPtr pret);

icmp

.

€bùäó”lñuùxš®†ÌGûœEùÞÊAXÊqFÞétÔN~”’4|ùMSgJl„ºëñ¾¤¸ÄnºyW}?ù‹‡®Žþûù¸qz¬Ô ‚¡19·Î%“ÆúÖz^yË¿þž¦è7싿ï!J1OF

.

н3óåÈò¹\ÕKì:íÁÛ§c¡œÒaMSgHu ŠY ¾·¾ªÌã³DoÒÝ?Ùäþ†5ùX'TÉßÓ*‚ª>–í ÷;<Œûo^ µBçc˜1âe¿3º¾XæpzWæcêëO!Àتìۘ™(s"u

.

¾™È“|¾X«±)ì2׳̋¤ò¿i¼ÚU¯À)Š —{w”U>µ¥µ÷Tʋ|ÓEµà=\ë¶Äæq âƒÔÕB€½NéX  &q¯Á÷º0ßÈßQ\¹6"î^rê ¸¤{§1ž¶†lñJôAÉþJ¢|{âå>s{҅Pz«Sûçé_¸­k’¨d>¤q’=auóÿô±oV6thñĕGün-y¦ÿÜÒ!ÿØbU0ԄÌ_¬8ïÇá´UCÛn°6’í^(9«¸>jŸ’tlZ³øX夋AõYš®c­¥ÀÕN{{£R“ã¤û=¶W$\†ý`CE`žqGÐ^E\wÌäË\Òë¯æ’¤[´Äèmˆº`¸Ïïõ;üäÇxÂʽ7L§|õ5¹—1ßn¹é¤[I6sîYxBVp:ÌÙ~ð‹Aဠå€9Œ (8eǯSŒÖE¥syÏä2ßkó‡Þ&”¯‘Ë_ D¨çH$ȶü×|’GS ”ìfç4îœê½¢j" ãtú2â|@Os+Ï{ët¢ìu¹5„-Œ`Ð(2-{º¢ÀkGg”@xMà×îxÝ"ï²äd)hƒú€Ñؚ2ԜZrƬ¨ÆHŸ‡ùî(¿G ʼn™à;KÌÔ`Ô2ˆ.Ço·‰Ò>Añœ›¥ÈÀÐF«'§EDs›iAé ÁÑüùØ-}l?QM¡¼6ÜöIMqˆ3“!À¹2½æã3xõ³˜&vg1¡ ãz¬\!ÚÓøÌúÉՐ‘Ôû ŠÛªx}ØÙ¸ŽÀÅ:Òx;ҕ”óTjY1'F7}FépÄÀ=nEìUF¾¹‡·@ž¢J0šÛºb±d¯zÓkYœ(¥S”huEÃý×›+žÐ O3fàN,!ø÷¤À#ì¬É.Éq™Ž>¬cüNr×Vïû¼2¿(­ÅØ7d¹”u{RÉ“=%ÀõÉÑþþ$^PTÛ7T«ËÕ Èbwîa<ŒÔŠ¿ P;Ðõ9t s‘«¾z½æ*pD ¢ûì,ò{ºlX£!|.µ5V•|Eéc#FÄöÆ=br°¤O)§Ç¨ÇÃ8ÌMsGÕê0 Äèœè6'ÑÃ*¢ÕAãšõT€§L.äªÿdîR´âiªžša-âWJù›Û2`TÏsâÅÙ8Õ§½\®ç¦Tñé¼fÛжE¬Ü¥ÜèéۈèÐuy

ole32

.

            ErrorMsg = "GetIUnknownForObject was zero.";

.

            ErrorMsg = "No such interface supported";

.

            ErrorMsg = "PersistStreamInit QueryInit failed.";

.

          _strErrorMsg = strStreamGUID + " " + strCtrlGUID + " mismatch";

.

     public string ErrorMsg

.

          get {return _strErrorMsg;}

.

          set {_strErrorMsg = value;}

shlwapi

.

    uint TranslateAccelerator(ref MSG pmsg);

odbccp32

.

public static extern SQL_RETURN_CODE    SQLInstallerError(int iError, ref SQL_INSTALLER_ERROR_CODE pfErrorCode, StringBuilder lpszErrorMsg, int cbErrorMsgMax, ref int pcbErrorMsg);

.

Public Shared Function SQLInstallerError(ByVal iError As Integer, ByRef pfErrorCode As Integer, ByVal lpszErrorMsg As StringBuilder, ByVal cbErrorMsgMax As Integer, ByRef pcbErrorMsg As Integer) As SQL_RETURN_CODE

.

SQLInstallerError does not post error values for itself. SQLInstallerError returns SQL_NO_DATA when it is unable to retrieve any error information (in which case pfErrorCode is undefined). If SQLInstallerError cannot access error values for any reason that would normally return SQL_ERROR, SQLInstallerError returns SQL_ERROR but does not post any error values. If either the lpszErrorMsg argument is NULL or the cbErrorMsgMax is less than or equal to 0, this function returns SQL_ERROR. If the buffer for the error message is too short, SQLInstallerError returns SQL_SUCCESS_WITH_INFO and returns the correct pfErrorCode value for SQLInstallerError.

.

Dim errorMsg As New StringBuilder(512)

.

Dim retCode As SQL_RETURN_CODE = SQLInstallerError(1, errorCode, errorMsg, errorMsg.Capacity, resizeErrorMesg)

winhttp

.

���D�#G(�x�7���&ކ��>�����4�б���i yj]"��� =�� 0y�j)�J�.�{���<y��,Y?�f�z�KՆJN�e�Kyn #H��qX.���z� hd?�@<��D�D��H6MsG(����� B�Fc:����5v�o�;�6�L*���T�|�^v�TuJ��������H-E����e�3��&6�ES8��e�¼��r�pli����bxit0��3i3���M������ eʠ��h\Ɗhw�Q|WFK�ȚJM

Enums

44: DLGC
.

    /// <summary> Control processes the message in the MSG structure that lParam points to. </summary>

.

    MSGFLTINFO_NONE = 0,

.

    MSGFLTINFO_ALREADYALLOWED_FORWND,

.

    MSGFLTINFO_ALREADYDISALLOWED_FORWND,

.

    MSGFLTINFO_ALLOWED_HIGHER

.

     WH_SYSMSGFILTER = 6,

.

     WH_SYSMSGFILTER = 6

.

    public const int CRYPT_E_MSG_ERROR = unchecked((int)0x80091001);

.

    public const int CRYPT_E_INVALID_MSG_TYPE = unchecked((int)0x80091004);

.

    public const int CRYPT_E_STREAM_MSG_NOT_READY = unchecked((int)0x80091010);

.

    public const int CRYPT_E_UNEXPECTED_MSG_TYPE = unchecked((int)0x8009200A);

.

    public const int CRYPT_E_BAD_MSG = unchecked((int)0x8009200D);

.

    Public Const CRYPT_E_MSG_ERROR As Integer = CInt(&H80091001UI)

.

    Public Const CRYPT_E_INVALID_MSG_TYPE As Integer = CInt(&H80091004UI)

.

    Public Const CRYPT_E_STREAM_MSG_NOT_READY As Integer = CInt(&H80091010UI)

.

    Public Const CRYPT_E_UNEXPECTED_MSG_TYPE As Integer = CInt(&H8009200aUI)

.

    Public Const CRYPT_E_BAD_MSG As Integer = CInt(&H8009200dUI)

.

    MSGFLT_RESET = 0,

.

    MSGFLT_ALLOW,

.

    MSGFLT_DISALLOW

.
Summary
Queue status flags for GetQueueStatus() and MsgWaitForMultipleObjects()
.

        WARNING_MSG_ALIAS_NOT_ADDED,

.

     DWLP_MSGRESULT = 0x0,

.

     DWLP_MSGRESULT = &H0

.

     DWLP_MSGRESULT As Long = &H0

.

    /// The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By responding to this message, the owner window can set the text and background colors of the message box by using the given display device context handle.

.

    CTLCOLORMSGBOX = 0x0132,

.

    '''The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By responding to this message the owner window can set the text and background colors of the message box by using the given display device context handle.

.

    WM_CTLCOLORMSGBOX = &H132

.

            if(m.Msg == WM_SYSCOMMAND)

netapi32

.

    string msg = "Forest : " + domainInfo.DnsForestName  + "\r\n";

.

    msg += "DC-Site: " + domainInfo.DomainControllerName + "\r\n";

.

    msg += " Client: " + domainInfo.ClientSiteName + "\r\n";

.

    System.Windows.Forms.MessageBox.Show ( msg);

.

    If MsgBox("Are you sure you want to disconnect this resource?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then

.

    [MarshalAs(UnmanagedType.LPWStr)] string msgname,

.

    ''' <param name="msgname">Pointer to a constant string that specifies the message alias to which the message buffer should be sent.</param>

.

    <MarshalAs(UnmanagedType.LPWStr)> ByVal msgname As String, _

.
Usage
sendnetmsg.exe srcName dstName message
.

public class SendNetMsg

.

        [MarshalAs(UnmanagedType.LPWStr)] string msgname,

.

        Console.WriteLine ("sendnetmsg.exe srcName dstName msg");

.

            string msgname,

.

        public static int NetMessageSend(string serverName,string messageName,string fromName,string strMsgBuffer, int iMsgBufferLen)

.

            return NetMessageBufferSend(serverName,messageName,fromName,strMsgBuffer,iMsgBufferLen*2);

.

' msgbox (s.name)

.

        MsgBox("AccountGetFullName: " + exp.Message)

dtl

.

    /// <param name="msg">message corresponding to dtl status </param>

.

    public static void DtlErrorS(int dtlSts, StringBuilder msg, int buffSize)

.

        UnsafeNativeMethods.DTL_ERROR_S(dtlSts, msg, buffSize);

.

        static extern public void DTL_ERROR_S(int iostat, StringBuilder msg, int buffsz);

.

        var msg = new StringBuilder(256);

.

        Dtl.DtlErrorS(ioStat, msg, msg.MaxCapacity);

.

            errorText = dtlFunction + ": " + address + ' ' + msg;

.

            errorText = dtlFunction + ": " + msg;

.

            _logger.Warn(LoggerEvent.RockwellPlcError, msg.ToString());

.

        string msgTxt = " ";

.

            if (DtlStatusOk("DtlCDefine", dtlSts, ref msgTxt, "", 0, true))

.

            _logger.Error(LoggerEvent.RockwellPlcError, msgTxt);

.

            string msg = string.Format("{0}", "Cannot define data, check configuration");

.

            _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

        string msg = string.Format("{0}", "Data file size passed is too large");

.

        _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

    /// <param name="msg">message corresponding to dtl status </param>

.

    public static void DtlErrorS(int dtlSts, StringBuilder msg, int buffSize)

.

        UnsafeNativeMethods.DTL_ERROR_S(dtlSts, msg, buffSize);

.

        static extern public void DTL_ERROR_S(int iostat, StringBuilder msg, int buffsz);

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: