Desktop Functions: Smart Device Functions:
|
Search Results for "StringBuilder" in [All]winmm
static extern Int32 mciGetErrorString(Int32 errorCode, StringBuilder errorText, Int32 errorTextSize);
Private Shared Function mciGetErrorString(ByVal dwError As Integer, ByVal lpstrBuffer As System.Text.StringBuilder, ByVal uLength As Integer) As Integer
Public Declare Auto Function mciGetErrorString Lib "winmm.dll" (ByVal errorCode As Integer, ByRef errorText As StringBuilder, ByVal errorTextSize As Integer) As Integer
static extern Int32 mciSendString(string command, StringBuilder buffer, int bufferSize, IntPtr hwndCallback);
Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer
Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer
StringBuilder returnstring = new StringBuilder();
Dim returnstring As StringBuilder = New StringBuilder()
static extern uint midiOutGetErrorText(uint mmrError, StringBuilder pszText, uint cchText);
StringBuilder sb = new StringBuilder((int)MAXERRORLENGTH);
private static extern uint waveOutGetErrorText(uint mmrError, StringBuilder pszText, uint cchText);
StringBuilder message = new StringBuilder(MAXERRORLENGTH); winspool
public static extern bool GetDefaultPrinter(StringBuilder pszBuffer, ref int pcchBuffer);
(ByVal pszBuffer As System.Text.StringBuilder, ByRef pcchBuffer As Int32) As Boolean
StringBuilder pszBuffer = new StringBuilder(pcchBuffer); 6: GetPrinter
static extern bool GetPrinterDriverDirectory(StringBuilder pName,
StringBuilder pEnv,
[Out] StringBuilder outPath,
StringBuilder str = new StringBuilder(1024);
static extern bool GetPrinterDriverDirectory(StringBuilder pName,
StringBuilder pEnv,
[Out] StringBuilder outPath,
StringBuilder str = new StringBuilder(1024);
static extern bool GetPrinterDriverDirectory(StringBuilder pName,
StringBuilder pEnv,
[Out] StringBuilder outPath,
StringBuilder str = new StringBuilder();
static extern bool GetPrintProcessorDirectory(StringBuilder pName, StringBuilder pEnv, int Level, [Out] StringBuilder outPath, int bufferSize,
static extern bool GetPrintProcessorDirectory(StringBuilder pName,
StringBuilder pEnv,
[Out] StringBuilder outPath,
StringBuilder str = new StringBuilder(); odbc3210: SQLAllocHandle
private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder inString,
short inStringLength, StringBuilder outString, short outStringLength,
StringBuilder inString = new StringBuilder(SQL_DRIVER_STR);
StringBuilder outString = new StringBuilder(DEFAULT_RESULT_SIZE); 11: SQLBindCol
StringBuilder completedConnString = new StringBuilder(1024);
StringBuilder str = new StringBuilder(); 12: SQLBrowseConnect
private static extern short SQLBrowseConnect( IntPtr handleConnection, StringBuilder connectionString, short stringLength, StringBuilder outConnection, short bufferLength, out short stringLength2Ptr ); 13: SQLColAttribute
StringBuilder CharacterAttributePtr, 14: SQLColAttribute
StringBuilder CharacterAttributePtr, 15: SQLDataSources
StringBuilder ServerName, short BufferLength1, ref short NameLength1Ptr,
StringBuilder Description, short BufferLength2, ref short NameLength2Ptr);
StringBuilder dsn_name = new StringBuilder(MAX_DSN_LENGTH);
StringBuilder desc_name = new StringBuilder(128); 16: SQLDriverConnect
StringBuilder szConnStrOut,
ByVal cbConnStrIn As Short, ByVal szConnStrOut As Text.StringBuilder, ByVal cbConnStrOutMax As Short, _
StringBuilder out_connect = new StringBuilder(MAX_CONNECT_LEN);
StringBuilder state = new StringBuilder(256);
StringBuilder msg = new StringBuilder(256); 17: SQLError
StringBuilder Sqlstate,
StringBuilder MessageText, 18: SQLGetData
StringBuilder TargetValue, int BufferLength,
StringBuilder val = new StringBuilder(1024); 19: SQLGetDiagRec
short record, StringBuilder sqlState, out int nativeError,
StringBuilder errorMsg, short errorMsgMax, out short errorMsgLength);
ByVal record As Short, ByVal sqlState As Text.StringBuilder, ByRef nativeError As Integer,
ByVal errorMsg As Text.StringBuilder, ByVal errorMsgMax As Short, ByRef errorMsgLength As Short) As Short dbghlp32
[Out] StringBuilder UnDecoratedName,
StringBuilder builder = new StringBuilder(255); uxtheme
public extern static Int32 GetCurrentThemeName(StringBuilder stringThemeName, int lengthThemeName, StringBuilder stringColorName, int lengthColorName, StringBuilder stringSizeName, int lengthSizeName);
Declare Unicode Function GetCurrentThemeName Lib "uxtheme" (ByVal stringThemeName As StringBuilder, ByVal lengthThemeName As Integer, ByVal stringColorName As StringBuilder, ByVal lengthColorName As Integer, ByVal stringSizeName As StringBuilder, ByVal lengthSizeName As Integer) As Int32 Originally the signature had the 3 StringBuilder parameters as out params, but that did not work. Once that was removed it worked. When creating the StringBuilder variable, an initial size must be set otherwise an unmanaged exception is thrown
StringBuilder stringThemeName = new StringBuilder(260);
StringBuilder stringColorName = new StringBuilder(260);
StringBuilder stringSizeName = new StringBuilder(260);
StringBuilder sbFilename = new sbFilename(0x200);
public extern static Int32 GetThemeDocumentationProperty(String stringThemeName, String stringPropertyName, out StringBuilder stringValue, int lengthValue);
Public Shared Function GetThemeDocumentationProperty(stringThemeName As [String], stringPropertyName As [String], ByRef stringValue As StringBuilder, lengthValue As Integer) As Int32 23: GetThemeFilename
public extern static Int32 GetThemeFilename(IntPtr hTheme, int iPartId, int iStateId, int iPropId, StringBuilder themeFileName, int themeFileNameLength); 24: GetThemeString
public extern static Int32 GetThemeString(IntPtr hTheme, int iPartId, int iStateId, int iPropId, out StringBuilder themeString, int themeStringLength);
Public Shared Function GetThemeString(hTheme As IntPtr, iPartId As Integer, iStateId As Integer, iPropId As Integer, ByRef themeString As StringBuilder, themeStringLength As Integer) As Int32
public extern static Int32 GetThemeSysString(IntPtr hTheme, int iStringId, out StringBuilder stringSys, int stringSysLength);
Public Shared Function GetThemeSysString(hTheme As IntPtr, iStringId As Integer, ByRef stringSys As StringBuilder, stringSysLength As Integer) As Int32 kernel3226: ConsoleFunctions
out StringBuilder TargetBuffer,
StringBuilder[] lpTargetBuffer,
out StringBuilder ExeNameBuffer,
out StringBuilder ConsoleTitle,
[Out] StringBuilder lpConsoleTitle,
[Out] StringBuilder lpBuffer,
[Out] StringBuilder lpCharacter,
[Out] StringBuilder ComputerName, ref uint nSize);
StringBuilder data = new StringBuilder(500);
StringBuilder data = new StringBuilder(500);
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData);
public static extern int LCIDToLocaleName(uint Locale, StringBuilder lpName, int cchName, int dwFlags);
StringBuilder data = new StringBuilder(500);
StringBuilder data = new StringBuilder(500);
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData);
public static extern int LCIDToLocaleName(uint Locale, StringBuilder lpName, int cchName, int dwFlags);
public static extern int ExpandEnvironmentStrings([MarshalAs(UnmanagedType.LPTStr)] String source, [Out] StringBuilder destination, int size);
<MarshalAs(UnmanagedType.LPTStr)>lpDst As System.Text.StringBuilder, _ 31: FindFirstVolume
static extern IntPtr FindFirstVolume([Out] StringBuilder lpszVolumeName,
Declare Function FindFirstVolumeW Lib "kernel32.dll" (ByVal lpszVolumeName As System.Text.StringBuilder, ByVal cchBufferLength As UInteger) As IntPtr
static extern FindVolumeSafeHandle FindFirstVolume([Out] StringBuilder lpszVolumeName, uint cchBufferLength);
static extern bool FindNextVolume(FindVolumeSafeHandle hFindVolume, [Out] StringBuilder lpszVolumeName, uint cchBufferLength);
StringBuilder volume = new StringBuilder((int)bufferLength, (int)bufferLength); 32: FindNextVolume
static extern bool FindNextVolume(IntPtr hFindVolume, [Out] StringBuilder
uint dwMessageId, uint dwLanguageId, [Out] StringBuilder lpBuffer,
static extern uint FormatMessage(uint dwFlags, IntPtr lpSource, uint dwMessageId, uint dwLanguageId, [Out] StringBuilder lpBuffer, uint nSize, string[] Arguments);
Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As StringBuilder, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer
StringBuilder msgBuilder = new StringBuilder(101); 34: FormatMessage
uint dwMessageId, uint dwLanguageId, [Out] StringBuilder lpBuffer,
static extern uint FormatMessage(uint dwFlags, IntPtr lpSource, uint dwMessageId, uint dwLanguageId, [Out] StringBuilder lpBuffer, uint nSize, string[] Arguments);
Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByVal lpSource As IntPtr, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As StringBuilder, ByVal nSize As Integer, ByVal Arguments As IntPtr) As Integer
StringBuilder msgBuilder = new StringBuilder(101);
[MarshalAs(UnmanagedType.LPWStr)] StringBuilder sbAppUserModelID);
StringBuilder sbName = new StringBuilder((int)cchLen);
sbName = new StringBuilder((int)cchLen); 36: GetAtomName
static extern uint GetAtomName(ushort nAtom, [Out] StringBuilder lpBuffer, int nSize); 37: GetComputerName
StringBuilder lpBuffer, ref uint lpnSize);
Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean
StringBuilder lpBuffer, ref uint lpnSize);
StringBuilder name = new StringBuilder(260);
StringBuilder lpBuffer, ref uint lpnSize);
Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean
out StringBuilder lpBuffer, ref uint lpnSize);
StringBuilder name = new StringBuilder(260);
out StringBuilder ExeNameBuffer,
StringBuilder lpConsoleTitle, 41: GetConsoleTitle
StringBuilder lpConsoleTitle,
[MarshalAs(UnmanagedType.LPWStr)] StringBuilder sbAppUserModelID);
[Out] StringBuilder lpBuffer); static extern uint GetCurrentDirectoryW(uint nBufferLength, StringBuilder lpBuffer); StringBuilder nameBuffer = new StringBuilder((int)MAX_DEEP_PATH + 3); 44: GetDateFormat
static extern int GetDateFormat(uint locale, uint dwFlags, ref SystemTime date, string format, StringBuilder sb, int sbSize);
string lpFormat, StringBuilder lpDateStr, int cchDate
StringBuilder sb = new StringBuilder(format.Length + 16);
sb = new StringBuilder(res);
[Out] StringBuilder lpBuffer, uint nSize); 46: GetFullPathName
[Out] StringBuilder lpBuffer, out StringBuilder lpFilePart);
Shared Function GetFullPathName(ByVal lpFileName As String, ByVal nBufferLength As Int32, <Out()> ByVal lpBuffer As System.Text.StringBuilder, <Out()> ByVal lpFilePart As System.Text.StringBuilder) As Int32
StringBuilder sbFull = new StringBuilder(bufsz); // Full resolved path will go here
StringBuilder sbFile = new StringBuilder(bufsz); // Filename will go here
sbFull = new StringBuilder(bufsz); // Re-create objects w/ proper size
sbFile = new StringBuilder(bufsz); // " 47: GetLocaleInfo
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData);
StringBuilder data = new StringBuilder(500);
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData); 48: GetLocaleInfoEx
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData);
StringBuilder data = new StringBuilder(500);
public static extern int GetLocaleInfoEx(String lpLocaleName, LCTYPE LCType, StringBuilder lpLCData, int cchData); 49: GetLogicalDrives DO NOT define using a StringBuilder, because only the first string would be returned.
static extern uint GetLogicalDriveStrings(uint bufferLength, [Out] StringBuilder buffer);
// [Out] StringBuilder lpBuffer); --- Don't do this!
// if we were to use the StringBuilder, only the first string would be returned 51: GetLongPathName
StringBuilder lpszLongPath,
StringBuilder builder = new StringBuilder(255);
builder = new StringBuilder(result);
StringBuilder lpFilename,
Public Function GetModuleFileName(<[In]()> ByVal hModule As IntPtr, <Out()> ByVal lpFilename As StringBuilder, <[In]()> <MarshalAs(UnmanagedType.U4)> ByVal nSize As Integer) As UInteger
StringBuilder fileName = new StringBuilder(255);
Dim sb As New StringBuilder
Dim sb As New StringBuilder
StringBuilder lpReturnedString,
ByVal lpReturnedString As StringBuilder, _
StringBuilder^ lpReturnedString, To avoid casting of the StringBuilder.Capacity to uint you can also declare the nSize parameter as int. If you need to get all the section names by passing a null lpAppName or all the key names by passing a null lpKeyName, then you'll need to use a technique like is shown for [GetPrivateProfileSection] to handle the double null-terminated result. .NET's marshaler will truncate the StringBuilder at the first null it finds, so to get back the full double null-terminated result string, you have to manage your own memory buffer. An alternative to the technique above is to use a char[] in place of a StringBuilder when you need to obtain all key names or all section names. The char[] will not truncate at the first null it finds.
StringBuilder sb = new StringBuilder(500);
string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
ByVal lpReturnedString As StringBuilder, _
Dim sb As StringBuilder
sb = New StringBuilder(500) 56: GetShortPathName
StringBuilder lpszShortPath,
static extern int GetShortPathName(string pathName, System.Text.StringBuilder shortName, int cbShortName);
<MarshalAs(UnmanagedType.LPTStr)> ByVal ShortPath As System.Text.StringBuilder, _
Declare Unicode Function GetShortPathName Lib "kernel32.dll" Alias "GetShortPathNameW" (ByVal longPath As String, <MarshalAs(UnmanagedType.LPTStr)> ByVal ShortPath As System.Text.StringBuilder, <MarshalAs(UnmanagedType.U4)> ByVal bufferSize As Integer) As Integer
System::Text::StringBuilder^ lpszShortPath,
// don“t allocate stringbuilder here but outside of the function for fast access
StringBuilder shortNameBuffer = new StringBuilder((int)bufferSize);
var sb = new StringBuilder(sz + 1);
ByVal ShortPath As System.Text.StringBuilder, _
Dim sb As New System.Text.StringBuilder(1024)
static extern uint GetSystemDirectory([Out] StringBuilder lpBuffer,
Public Function GetSystemDirectory(<MarshalAs(UnmanagedType.LPTSTR)>lpBuffer As System.Text.StringBuilder, _
StringBuilder sbSystemDir = new StringBuilder(256);
StringBuilder pwszLanguagesBuffer,
StringBuilder languagesBuffer = new StringBuilder();
public static extern int GetSystemWow64Directory([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder lpBuffer, [MarshalAs(UnmanagedType.U4)] uint size);
private static extern int GetSystemWow64Directory([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder lpBuffer, [MarshalAs(UnmanagedType.U4)] uint size);
var buffer = new StringBuilder(260); // MAX_PATH 60: GetTempFileName
uint uUnique, [Out] StringBuilder lpTempFileName);
static extern uint GetTempFileName(string lpPathName, string lpPrefixString, uint uUnique, [Out] StringBuilder lpTempFileName);
StringBuilder sb = new StringBuilder(260); Cut off search results after 60. Please refine your search. |