Desktop Functions: Smart Device Functions:
|
Search Results for "MSG" in [All]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) 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); 4: timeSetEvent
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) 5: waveInProc
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(), mpr
MsgBox("Could not connect to " & myResource.RemoteName & ". The server said this: " & vbNewLine & vbNewLine & "(Error " & returnValue & ") " & errorM)
MsgBox("The UNC-Path of drive " & dr & " is: " & strToUnc(dr)) shlwapi10: IPreviewHandler
uint TranslateAccelerator(ref MSG pmsg); shell3211: SHAppBarMessage
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) dtl15: DTL_C_DEFINE
/// <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); 16: DTL_DRIVER_CLOSE
/// <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); 17: DTL_DRIVER_OPEN
/// <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); 18: DTL_ERROR_S
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()); 19: DTL_INIT
/// <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); 20: DTL_READ_W
/// <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)) 21: DTL_UNDEF
/// <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); 22: DTL_UNINIT
/// <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); 23: DTL_WRITE_W
/// <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); user32
static extern int BroadcastSystemMessageEx(uint flags, ref uint lpInfo, uint Msg, [MarshalAs(UnmanagedType.SysUInt)] ulong wParam, [MarshalAs(UnmanagedType.SysInt)] long lParam, out BSMINFO pbsmInfo); 25: CallMsgFilter
static extern bool show CallMsgFilter([In] ref MSG lpMsg, int nCode);
Shared Function Show CallMsgFilter(<[In]> ByRef lpMsg As MSG, nCode As Integer) As Boolean MSG 26: CallWindowProc
static extern IntPtr CallWindowProc(WndProcDelegate lpPrevWndFunc, IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
Private Shared Function CallWindowProc(lpPrevWndFunc As WndProcDelegate, hWnd As IntPtr, Msg As UInteger, wParam As IntPtr, lParam As IntPtr) As IntPtr
public static extern bool ChangeWindowMessageFilterEx(IntPtr hWnd, uint msg, ChangeWindowMessageFilterExAction action,ref CHANGEFILTERSTRUCT changeInfo);
Private Shared Function ChangeWindowMessageFilterEx(hWnd As IntPtr, msg As UInteger, action As ChangeWindowMessageFilterExAction, ByRef changeInfo As CHANGEFILTERSTRUCT) As <MarshalAs(UnmanagedType.Bool)> Boolean 28: CreateWindowEx
MSG msg;
while (Win32.GetMessage( out msg, IntPtr.Zero, 0, 0) != 0)
Win32.TranslateMessage( ref msg);
Win32.DispatchMessage( ref msg); 29: DefWindowProc
static extern IntPtr DefWindowProc(IntPtr hWnd, WindowsMessages uMsg, IntPtr wParam, IntPtr lParam);
Public Shared Function DefWindowProc(ByVal hWnd As IntPtr, ByVal uMsg As WindowsMessages, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr 30: DispatchMessage
static extern IntPtr DispatchMessage([In] ref MSG lpmsg);
ByRef lpmsg As MSG) As IntPtr
static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
Shared Function PostMessage(hWnd As IntPtr, Msg As UInteger, wParam As IntPtr, lParam As IntPtr) As<MarshalAs(UnmanagedType.Bool)> Boolean 32: GetMsgProc
private delegate IntPtr GetMsgProc(int code, IntPtr wParam, IntPtr lParam);
Declare Function GetMsgProc Lib "user32.dll" (TODO) As TODO This is wrong. There is no GetMsgProc in user32. GetMsgProc is a callout signature. 33: GetRawInputData
if (m.Msg == (int)WindowMessages.RawInput) // WindowMessages.RawInput = 0x00FF (WM_INPUT) 34: GetSysColor
static extern int MessageBoxIndirect([In] ref MSGBOXPARAMS lpMsgBoxParams);
static extern uint MsgWaitForMultipleObjectsEx(uint nCount, IntPtr [] pHandles,
Private Declare Function MsgWaitForMultipleObjects Lib "User32.dll" ( _
Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)
Dim errMsg As String = New System.ComponentModel.Win32Exception(errorCode).Message
Throw New Exception(errMsg)
private static extern int MsgWaitForMultipleObjectsEx(
static extern uint MsgWaitForMultipleObjectsEx(uint nCount, IntPtr [] pHandles,
Private Declare Function MsgWaitForMultipleObjects Lib "User32.dll" ( _
Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)
Dim errMsg As String = New System.ComponentModel.Win32Exception(errorCode).Message
Throw New Exception(errMsg) 38: PeekMessage
public uint msg;
Public msg As UInteger
static extern bool PeekMessage(out NativeMessage lpMsg, HandleRef hWnd, uint wMsgFilterMin,
uint wMsgFilterMax, uint wRemoveMsg);
NativeMessage msg = new NativeMessage();
GCHandle handle = GCHandle.Alloc(msg);
bool foundMessage = PeekMessage(ref msg, hWnd, 0, 0, 0);
NativeMessage msg;
bool foundMessage = PeekMessage(out msg, IntPtr.Zero, 0, 0, 0); 39: PostMessage
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;
void PostMessageSafe( HandleRef hWnd, uint msg, IntPtr wParam, IntPtr lParam )
bool returnValue = PostMessage( hWnd, msg, wParam, lParam );
public static extern bool PostThreadMessage(uint threadId, uint msg, UIntPtr wParam, IntPtr lParam); Public Shared Function PostThreadMessage(ByVal id As Integer, ByVal msg As Integer, ByVal wparam As IntPtr, ByVal lparam As IntPtr) As Integer Friend Shared Function PostThreadMessage(ByVal idThread As UInt32, ByVal msg As UInt32, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean 41: RegisterClass
MsgBox("an error occured")
MsgBox("Class atom: " & rVal.ToString & vbCrLf & _
MsgBox("Unregister Class Sucessfuly")
MsgBox("Unregister Class Failed")
private static IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
if (msg == WM_POWERBROADCAST && wParam.ToInt32() == PBT_POWERSETTINGCHANGE)
/// <param name="msg">C++ ( lpString [in]. Type: LPCTSTR )<br /> The message to be registered.</param>
/// if ((UInt32)m.Msg == queryCancelAutoPlay)
lngWindowMsg = RegisterWindowMessage(StrPtr(strMessageToRegister))
lMsg = Win32.RegisterWindowMessage("WM_HTML_GETOBJECT");
Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);
if ((UInt32)m.Msg == queryCancelAutoPlay) 44: ReleaseCapture
ByVal Msg As UInteger,
private static extern int SendMessage(IntPtr hWnd, int msg , int wParam , ref int lParam); 45: SB_GETTEXT
UInt32 wMsg,
UInt32 wMsg,
UInt32 wMsg,
static extern IntPtr SendDlgItemMessage(IntPtr hDlg, int nIDDlgItem, uint Msg,
ByVal Msg As UInteger, _
ByVal Msg As UInteger, _ 47: SendMessage
uint Msg,
uint Msg,
int Msg, // Use WM_GETTEXT
uint Msg,
Public Sub SendMessageTimeout(ByVal windowHandle As IntPtr,ByVal Msg As Integer,ByVal wParam As IntPtr,ByVal lParam As IntPtr,ByVal flags As SendMessageTimeoutFlags,ByVal timeout As Integer,ByRef result As IntPtr)
Public Shared Function SendMessageTimeout(ByVal windowHandle As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByVal flags As SendMessageTimeoutFlags, ByVal timeout As Integer, ByRef result As IntPtr) As IntPtr
lMsg = Win32.RegisterWindowMessage("WM_HTML_GETOBJECT");
Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);
static extern bool SendMessageCallback(IntPtr hWnd, uint Msg, UIntPtr wParam, delegate void SendMessageDelegate(IntPtr hWnd, uint uMsg, UIntPtr dwData, IntPtr lResult);
uint Msg,
uint Msg,
int Msg, // Use WM_GETTEXT
Public Sub SendMessageTimeout(ByVal windowHandle As IntPtr,ByVal Msg As Integer,ByVal wParam As IntPtr,ByVal lParam As IntPtr,ByVal flags As SendMessageTimeoutFlags,ByVal timeout As Integer,ByRef result As IntPtr)
Public Shared Function SendMessageTimeout(ByVal windowHandle As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByVal flags As SendMessageTimeoutFlags, ByVal timeout As Integer, ByRef result As IntPtr) As IntPtr
lMsg = Win32.RegisterWindowMessage("WM_HTML_GETOBJECT");
Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);
static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
ByVal msg As UInteger, _
ByVal Msg As Integer, _
static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
switch(m.Msg)
SendMessage(hWndNextWindow, m.Msg, m.WParam, m.LParam);
SendMessage(hWndNextWindow, m.Msg, m.WParam, m.LParam); 52: SetParent
static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam); 53: SetTimer
delegate void TimerProc(IntPtr hWnd, uint uMsg, IntPtr nIDEvent, uint dwTime);
Public Delegate Sub TimerProc(ByVal hWnd As IntPtr, ByVal uMsg As UInteger, ByVal nIDEvent As IntPtr, ByVal dwTime As UInteger) 54: SetWindowsHookEx
/// information, see the GetMsgProc hook procedure.
/// <term>WH_MSGFILTER (-1)</term>
/// <term>WH_SYSMSGFILTER (6)</term><description></description>
/// <term>WH_MSGFILTER (-1)</term>
/// <term>WH_SYSMSGFILTER (6)</term> 55: SysMSGProc 56: TranslateMessage
static extern bool TranslateMessage([In] ref MSG lpMsg);
ByRef lpMsg As MSG) As <MarshalAs(UnmanagedType.Bool)> Boolean
(byref lpMsg As MSG) As Long
public struct MSG
MSG myMsg = new MSG();
while (WindowsAPIs.GetMessage(out msg, IntPtr.Zero, 0, 0) && ! FOO_EXPRESSION )
if(msg.message != FILTERED_MESSAGE)
WindowsAPIs.TranslateMessage(ref msg);
WindowsAPIs.DispatchMessage(ref msg); 57: UnregisterClass
MsgBox("an error occured")
MsgBox("Class atom: " & rVal.ToString & vbCrLf & _
MsgBox("Unregister Class Sucessfuly")
MsgBox("Unregister Class Failed") 58: UnregisterHotKey
Select Case m.Msg
if (m.Msg == WindowsShell.WM_HOTKEY) 59: WndProcDelegate
delegate IntPtr WndProcDelegate(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam); Delegate Function WndProcDelegate(Byval hWnd As IntPtr, Byval msg As UInteger, Byval wParam As IntPtr, Byval lParam As IntPtr) As IntPtr Constants60: BM_CLICK
LRESULT APIENTRY buttonPlsVisibleProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
switch (Msg) {
return CallWindowProc(buttonPlsVisible_proc, hWnd, Msg, wParam, lParam); Cut off search results after 60. Please refine your search. |