Desktop Functions: Smart Device Functions:
|
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;} kernel3210: AllocConsole
MsgBox(String.Format("Failed to attach console with error: {0}", Marshal.GetLastWin32Error())) 11: CopyFile
Optional ByVal errMsg As String = "") As String 12: CopyFileEx
Optional ByVal errMsg As String = "") As String 13: CreateMutex
public MutexCreationException( string msg ) : base( msg )
public MutexCreationException( string msg, Exception ex ) : base( msg, ex ) 14: CreateNamedPipe
uint bytesRead = 0, avail = 0, thismsg = 0;
null, 0, ref bytesRead, ref avail, ref thismsg); 15: DeviceIoControl
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()); 17: FormatMessage
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 " 19: GetShortPathName 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) dtl24: 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); 25: 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); 26: 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); 27: 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()); 28: 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); 29: 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)) 30: 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); 31: 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); 32: 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); dwmapi33: DwmDefWindowProc
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 shlwapi34: IPreviewHandler
uint TranslateAccelerator(ref MSG pmsg); winmm35: mciSendString
if (m.Msg == MM_MCINOTIFY)
MsgBox(returnstring)
If m.Msg = MM_MCINOTIFY Then
MsgBox("Done playing.") 36: midiOutShortMsg
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); 37: 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) 38: 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(), twain_3241: DSMparent 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) comctl3243: DoReaderMode
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. 46: CryptMsgClose 47: CryptMsgGetParam
public static extern bool CryptMsgGetParam(
IntPtr hCryptMsg,
public static extern bool CryptMsgGetParam(
IntPtr hCryptMsg,
public static extern bool CryptMsgGetParam(
IntPtr hCryptMsg,
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 50: CryptMsgUpdate 51: CryptQueryObject
IntPtr pdwMsgAndCertEncodingType,
IntPtr phMsg,
verifyParams.dwMsgAndCertEncodingType = CryptoConstants.X509_ASN_ENCODING | CryptoConstants.PKCS_7_ASN_ENCODING;
cpMessageParams.dwMsgEncodingType = X509_ASN_ENCODING | PKCS_7_ASN_ENCODING; 54: CTL_CONTEXT
public uint dwMsgAndCertEncodingType;
public IntPtr hCryptMsg; mapi3255: MAPISendMail
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); winspool56: EnumJobs
MsgBox(Marshal.PtrToStringAnsi(JI1.pDocument))
MsgBox("No Jobs Enumerated") Constants57: BM_CLICK
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. |