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]

ntdll

.

            out DateTime creationTime, out DateTime lastAccessTime, out DateTime lastWriteTime, out DateTime changeTime, out ulong fileAttributes, out string errMsg) {

.

        errMsg = string.Empty;

.

            errMsg = ex.Message;

.

        string errMsg;

.

        brc = Nt.GetFourFileTimes(path2file, out creationTime, out lastAccessTime, out lastWriteTime, out changeTime, out fileAttributesAfter, out errMsg);

.

            Trace.WriteLine("Error: " + errMsg);

shell32

.

    Public Enum ABMsg

.

    Private Shared Function RegisterWindowMessage(ByVal msg As String) As Integer

.

    Dim ret As Long = SHAppBarMessage(CType(ABMsg.ABM_NEW, Integer), abd)

.

    SHAppBarMessage(ABMsg.ABM_REMOVE, abd)

.

    SHAppBarMessage(CType(ABMsg.ABM_QUERYPOS, Integer), abd)

.

    SHAppBarMessage(CType(ABMsg.ABM_SETPOS, Integer), abd)

.

    lRet = SHAppBarMessage(ABMsg.ABM_SETAUTOHIDEBAR, abd)

.

    Dim msg As New StringBuilder

.

        state = SHAppBarMessage(CType(ABMsg.ABM_GETSTATE, Integer), ABD)

.

        hWndAppBar = SHAppBarMessage(CType(ABMsg.ABM_GETAUTOHIDEBAR, Integer), ABD)

.

        tsize = SHAppBarMessage(CType(ABMsg.ABM_GETTASKBARPOS, Integer), ABD)

.

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

.

        public static extern IntPtr SendMessage(HandleRef hWnd, int msg, int wParam, string lParam);

.

        public delegate int BrowseCallBackProc(IntPtr hwnd, int msg, IntPtr lp, IntPtr wp);

.

        public int OnBrowseEvent(IntPtr hWnd, int msg, IntPtr lp, IntPtr lpData)

.

            switch(msg)

.

            uint wMsg,

.

            uint wMsg,

.

    MsgBox(fileP.ToString)

urlmon

.

        MsgBox("Network not found!")

odbc32

.

                string msg  = GetError(IntPtr.Zero) + "\nconnection string:\n\t" + connstr;

.

                throw new Exception(msg);

.

        StringBuilder msg   = new StringBuilder(256);

.

            msg,

.

            (short) msg.Capacity,

.

            string err = msg.ToString();

.

   StringBuilder errorMsg, short errorMsgMax, out short errorMsgLength);

.

    ByVal errorMsg As Text.StringBuilder, ByVal errorMsgMax As Short, ByRef errorMsgLength As Short) As Short

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;}

kernel32

.

            MsgBox(String.Format("Failed to attach console with error: {0}", Marshal.GetLastWin32Error()))

.

                Optional ByVal errMsg As String = "") As String

.

                Optional ByVal errMsg As String = "") As String

.

            public MutexCreationException( string msg ) : base( msg )

.

            public MutexCreationException( string msg, Exception ex ) : base( msg, ex )

.

        uint bytesRead = 0, avail = 0, thismsg = 0;

.

            null, 0, ref bytesRead, ref avail, ref thismsg);

.

    DriverMsgs AttachMsg = DriverMsgs.MsgIntrAttach;

.

    Control = CtrCode( cFileDeviceUnknown, (int)AttachMsg, cMethodBuffered, cFileAnyAccess );

.

     FsctlHsmMsg = (EFileDevice.FileSystem << 16) | (66 << 2) | EMethod.Buffered | (FileAccess.ReadWrite << 14),

.

       MsgBox("Not OK")

.

       MsgBox("OK")

.

       MsgBox(GetLastError())

.

       MsgBox(GetLastError())

.

       MsgBox(GetLastError())

.

       MsgBox(GetLastError())

.

       Dim sMsg As String

.

    IntPtr lpMsgBuf= IntPtr.Zero;

.

        ref lpMsgBuf,

.

    string sRet= Marshal.PtrToStringAnsi(lpMsgBuf);

.

    lpMsgBuf= LocalFree( lpMsgBuf );

.

        StringBuilder msgBuilder = new StringBuilder(101);

.

        uint length = FormatMessage(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY, formatPtr, 0, 0, msgBuilder, 101, formatArgs);

.

            FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, IntPtr.Zero, (uint)Marshal.GetLastWin32Error(), 0, msgBuilder, 101, null);

.

            Console.WriteLine("Error:" + msgBuilder.ToString());

.

            Console.WriteLine("Format result:" + msgBuilder.ToString() + ", length:" + length.ToString());

.

    IntPtr lpMsgBuf= IntPtr.Zero;

.

        ref lpMsgBuf,

.

    string sRet= Marshal.PtrToStringAnsi(lpMsgBuf);

.

    lpMsgBuf= LocalFree( lpMsgBuf );

.

        StringBuilder msgBuilder = new StringBuilder(101);

.

        uint length = FormatMessage(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY, formatPtr, 0, 0, msgBuilder, 101, formatArgs);

.

            FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, IntPtr.Zero, (uint)Marshal.GetLastWin32Error(), 0, msgBuilder, 101, null);

.

            Console.WriteLine("Error:" + msgBuilder.ToString());

.

            Console.WriteLine("Format result:" + msgBuilder.ToString() + ", length:" + length.ToString());

.

    Dim lpMsgBuf As IntPtr = IntPtr.Zero

.

    IntPtr.Zero, nLastError, 0, lpMsgBuf, 0, IntPtr.Zero)

.

    Dim sRet As String = Runtime.InteropServices.Marshal.PtrToStringAuto(lpMsgBuf, dwChars)

.

    If LocalFree(lpMsgBuf) <> 0 Then

.

   MsgBox "The size of " + strPath " is " + CStr(GetCompressedFileSize(strPath, ByVal 0&)) + " bytes "

.

MsgBox(GetShortFileName)

.

        MsgBox(DirPath.ToString)

.

        MsgBox("Debugger is present!") 'Debugger was detected

.

        MsgBox("Debugger isn't present!") Debugger was not detected

.

        MsgBox(ex.Message)

.

        MsgBox(isWow64FsRedirectionDisabled)

.

        MsgBox(isWow64FsRedirectionReverted)

.

        MsgBox("Unable to save default database settings." & vbCrLf & ex.InnerException.ToString, MsgBoxStyle.Information)

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);

.

    /// <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 msg = " ";

.

        if (DtlStatusOk("DtlInit", dtlSts, ref msg, " "))

.

            _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

            if (DtlStatusOk("DtlDriverOpen", dtlSts, ref msg, " ", 0, true))

.

            _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

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

.

    /// <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());

.

    /// <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);

.

        string msg = " ";

.

        if (DtlStatusOk("DtlInit", dtlSts, ref msg, " "))

.

            _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

            if (DtlStatusOk("DtlDriverOpen", dtlSts, ref msg, " ", 0, true))

.

            _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);

.

        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 msg = " ";

.

            if (DtlStatusOk("DtlReadW", dtlSts, ref msg, "", 0, true))

.

        msg = string.Format("{0}", "Dtl data file has not been defined");

.

        _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

        if (DtlStatusOk("DtlReadW", dtlSts, ref msg, "", 0, true))

.

    /// <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);

.

    /// <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);

.

    /// <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 msg = " ";

.

            if (DtlStatusOk("DtlReadW", dtlSts, ref msg, "", 0, true))

.

                if (DtlStatusOk("DtlWriteW", dtlSts, ref msg, "", 0, true))

.

                    if (DtlStatusOk("DtlReadW", dtlSts, ref msg, "", 0, true))

.

                if (DtlStatusOk("DtlReadW", dtlSts, ref msg, "", 0, true))

.

            msg = string.Format("{0}", "Attempt to write to read only data file");

.

            _logger.Error(LoggerEvent.RockwellPlcError, msg);

.

        msg = string.Format("{0}", "Dtl data file has not been defined");

.

        _logger.Error(LoggerEvent.RockwellPlcError, msg);

dwmapi

.

static extern bool DwmDefWindowProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref IntPtr plResult);

.

Private Shared Function DwmDefWindowProc(ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByRef plResult As IntPtr) As Integer

shlwapi

.

    uint TranslateAccelerator(ref MSG pmsg);

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(),

twain_32

.

static extern TwRC DSMparent( [In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, ref IntPtr refptr );

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)

comctl32

.

MSG

.

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

.

    Private Function TranslateDispatchCallback(ByRef lpmsg As MSG) As Boolean

crypt32

.

    public static extern IntPtr CertCreateCTLContext(uint dwMsgAndCertEncodingType, IntPtr pbCtlEncoded, uint cbCtlEncoded);

.

These constants are used for the dwMsgAndCertEncodingType.

.
Summary
.

    public struct CMSG_SIGNED_ENCODE_INFO

.
Documentation
[CMSG_SIGNED_ENCODE_INFO] on MSDN
.

        public static extern bool CryptMsgClose(

.

            IntPtr hCryptMsg

.
Documentation
[CryptMsgClose] on MSDN
.

        public static extern bool CryptMsgGetParam(

.

            IntPtr hCryptMsg,

.

        public static extern bool CryptMsgGetParam(

.

            IntPtr hCryptMsg,

.

        public static extern bool CryptMsgGetParam(

.

            IntPtr hCryptMsg,

.
Documentation
[CryptMsgGetParam] on MSDN
.

        public static extern IntPtr CryptMsgOpenToDecode(

.

            uint dwMsgEncodingType,

.

            uint dwMsgType,

.
Documentation
[CryptMsgOpenToDecode] on MSDN
.

static extern IntPtr CryptMsgOpenToEncode(int dwMsgEncodingType, uint dwFlags, int dwMsgType, IntPtr pvMsgEncodeInfo, IntPtr pszInnerContentObjID, IntPtr pStreamInfo);

.

Declare Function CryptMsgOpenToEncode Lib "crypt32.dll" (TODO) As TODO

.
Documentation
[CryptMsgOpenToEncode] on MSDN
.

        public static extern bool CryptMsgUpdate(

.

            IntPtr hCryptMsg,

.
Documentation
[CryptMsgUpdate] on MSDN
.

        IntPtr pdwMsgAndCertEncodingType,

.

        IntPtr phMsg,

.

    verifyParams.dwMsgAndCertEncodingType = CryptoConstants.X509_ASN_ENCODING | CryptoConstants.PKCS_7_ASN_ENCODING;

.

     cpMessageParams.dwMsgEncodingType = X509_ASN_ENCODING | PKCS_7_ASN_ENCODING;

.

        public uint dwMsgAndCertEncodingType;

.

        public IntPtr hCryptMsg;

mapi32

.

        MapiMessage msg = new MapiMessage();

.

        msg.subject = "Hello World!";

.

        msg.noteText = "See attached file for details";

.

        msg.files = GetAttachments(fileName, out msg.fileCount);

.

        int result = MAPISendMail(new IntPtr(0), new IntPtr(0), msg, 0x00000001 | 0x00000008, 0);

winspool

.

            MsgBox(Marshal.PtrToStringAnsi(JI1.pDocument))

.

        MsgBox("No Jobs Enumerated")

Constants

.

LRESULT APIENTRY buttonPlsVisibleProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)

.

    switch (Msg) {

.

    return CallWindowProc(buttonPlsVisible_proc, hWnd, Msg, wParam, lParam);

58: CB_
.

    /*  CB_MSGMAX    = 354*/

.

public const int CB_MSGMAX        = 354;

.

    Public Const CB_MSGMAX As Integer = 354

.

The value of CB_MSGMAX may change depending on the version of windows

.

     DWLP_MSGRESULT = 0,

60: MAPI
.

  public const uint MAPI_LONG_MSGID = 0x00004000;

.

    Public Const MAPI_LONG_MSGID As UInteger = &H4000

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


 
Access PInvoke.net directly from VS: