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 "StringBuilder" in [All]

dtl

.

static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

        var msg = new StringBuilder(256);

.

        var definition = new StringBuilder(256);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

        var msg = new StringBuilder(256);

.

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

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

        var msg = new StringBuilder(256);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

        var msg = new StringBuilder(256);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

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

.

    public static int DtlVersion(StringBuilder versionText, int maxCharsToReturn)

.

    public static int DtlCDefine(ref int nameId, StringBuilder defString)

.

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

.

        static extern public int DTL_VERSION(StringBuilder sb, int maxChars);

.

        static extern public int DTL_C_DEFINE(ref int name_id, StringBuilder def);

.

        var msg = new StringBuilder(256);

netapi32

.

        StringBuilder referencedDomainName = new StringBuilder();

.

        StringBuilder Name,

.

        StringBuilder ReferencedDomainName,

.

        StringBuilder sbName = new StringBuilder();

.

        StringBuilder sbReferencedDomainName = new StringBuilder();

.

            StringBuilder Name,

.

            StringBuilder ReferencedDomainName,

.

            StringBuilder sbName = new StringBuilder();

.

            StringBuilder sbReferencedDomainName = new StringBuilder();

.

            StringBuilder Name,

.

            StringBuilder ReferencedDomainName,

.

            StringBuilder sbName = new StringBuilder();

.

            StringBuilder sbReferencedDomainName = new StringBuilder();

.

     StringBuilder ServerName,

.

            (ByVal ServerName As StringBuilder, _

.

        ByVal ServerName As StringBuilder, _

.

Dim SvrNameBldr As New StringBuilder(ServerName)

.

     StringBuilder server = new StringBuilder(textBox1.Text);

.

         StringBuilder ServerName,

.

        StringBuilder server = new StringBuilder(Server);

.

        (ByVal ServerName As StringBuilder, _

.

    Dim svr As New StringBuilder(server)

quickusb

.

private static extern int QuickUsbFindModules(StringBuilder nameList, int bufferLength);

userenv

.

            StringBuilder testData = new StringBuilder("");

.

    static extern int CreateProfile( [MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath);

.

        System.Text.StringBuilder s= new System.Text.StringBuilder(260);

.

            public static extern int CreateProfile([MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath);

.

    $ProfilePath = New-Object System.Text.StringBuilder($intSizeOfProfilePath)

.

static extern bool GetProfilesDirectory(StringBuilder path, ref int size);

.

   StringBuilder path = new StringBuilder(4*1024);

rasapi32

.

    StringBuilder lpszErrorString,  // buffer to hold error string

.

                StringBuilder sb=new StringBuilder(512);

coredll

.

        int dwMessageId, int dwLanguageId, System.Text.StringBuilder lpBuffer, int nSize, IntPtr[] Arguments);

.

        int dwMessageId, int dwLanguageId, System.Text.StringBuilder lpBuffer, int nSize, IntPtr[] Arguments);

.

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

.

   public static extern int GetClassName(IntPtr hWnd, StringBuilder buf, int nMaxCount);

.

   (hWnd as IntPtr, buf As StringBuilder, nMaxCount As Integer) As Integer

.

   StringBuilder strClassName = new StringBuilder(256);

.

static extern int GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, StringBuilder lpFilename, int nSize);

.

Declare Function GetModuleFileNameEx Lib "coredll.dll" (ByVal hProcess As IntPtr, ByVal hModule As IntPtr, ByVal lpFileName As System.Text.StringBuilder, ByVal nSize As Int32) As Int32

.

static extern int GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, StringBuilder lpFilename, int nSize);

.

Declare Function GetModuleFileNameEx Lib "coredll.dll" (ByVal hProcess As IntPtr, ByVal hModule As IntPtr, ByVal lpFileName As System.Text.StringBuilder, ByVal nSize As Int32) As Int32

. .

   IntPtr hKey, [Out()]StringBuilder lpClass, ref uint lpcchClass,

.

OutAttribute is used with [StringBuilder] parameters because StringBuilder is a reference type. Using the out keyword will result in passing the reference by-reference, but in this case the reference must be passed by-value.

.

static extern int RegQueryValueEx( UIntPtr hkey, String lpValueName, IntPtr lpReserved, ref KeyType lpType, StringBuilder lpData, ref uint lpcbData );

.

We pass a StringBuilder for lpData to deal with null-terminated strings that normally come back from this operation.

.
LPSTR String or StringBuilder*
.
LPTSTR String or StringBuilder
.
LPWSTR String or StringBuilder
.

static extern int SHCreateShortcut(StringBuilder szShortcut, StringBuilder szTarget);

.

Private Declare Function SHCreateShortcut% Lib "coredll" (ByVal szShortcut As System.Text.StringBuilder, ByVal szTarget As System.Text.StringBuilder)!!!!User-Defined Types:

.

    static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate);

.

    static extern int SHCreateShortcut(StringBuilder szShortcut, StringBuilder szTarget);

.

    StringBuilder programs = new StringBuilder(255);

.

    StringBuilder shortcutLocation = new StringBuilder(Path.Combine(programs.ToString(), "Foo.lnk");

.

    StringBuilder shortcutTarget = new StringBuilder("\"" + @"\Program Files\Foo\Foo.exe" + "\"");

.

static extern bool SHGetShortcutTarget(StringBuilder szShortcut, StringBuilder szTarget, int cbMax);

.

StringBuilders are generally used in place of LPTSTR's in PInvoke signatures. szShortcut is a full path to a shortcut file (which usually has the extension .lnk), szTarget is a buffer to receive the target path, and cbMax is the length of the szTarget buffer. The function returns success/failure; it isn't documented whether it returns failure if cbMax is too small, or if the target-path is truncated or what.

.

static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate);

.

        StringBuilder resultPath = new StringBuilder(255);

winfax

.

   [Out] StringBuilder buffer, out int BufferSize,

.

   [Out] StringBuilder RoutingInfoBuffer, out int RoutingInfoBufferSize);

.

   [Out] StringBuilder RoutingInfoBuffer, int RoutingInfoBufferSize);

crypt32

.

static extern UInt32 CertGetNameString(IntPtr CertContext, UInt32 lType, UInt32 lFlags, IntPtr pTypeParameter, System.Text.StringBuilder str, UInt32 cch);

.

        StringBuilder Buffer = new StringBuilder(255);

.

    private static extern uint _certNameToStr(uint dwCertEncodingType, IntPtr pName, uint dwStrType, StringBuilder psz, uint csz);

.

        StringBuilder psz = null;

.

            psz = new StringBuilder((int)ret);

.

        StringBuilder ppszError);

.

    Public Shared Function CertStrToName(dwCertEncodingType As UInteger, pszX500 As String, dwStrType As UInteger, pvReserved As IntPtr, pbEncoded As Byte(), ByRef pcbEncoded As UInteger, ppszError As StringBuilder) As Boolean

.

    StringBuilder szDataDescr,

.

     ByVal szDataDescr As StringBuilder, _

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

.

StringBuilder         errorMesg        = new StringBuilder( 512 ) ;

.

Dim errorMsg As New StringBuilder(512)

oleacc

.

public static extern uint GetRoleText( uint dwRole, [Out] StringBuilder lpszRole, uint cchRoleMax);

.

    Private Shared Function GetRoleText(ByVal role As Integer, ByVal outRole As StringBuilder, ByVal outRoleSize As Integer) As Integer

.

public static extern uint GetStateText( uint dwStateBit, [Out] StringBuilder lpszStateBit, uint cchStateBitMax );

msi

.

            StringBuilder szPatchCode,

.

            StringBuilder szTargetProductCode,

.

            StringBuilder szTargetUserSid,

.

            StringBuilder szPatchCode = new StringBuilder(40);

.

            StringBuilder szTargetProductCode = new StringBuilder(40);

.

            StringBuilder szTargetUserSid = new StringBuilder(300);

.

    private static extern UInt32 MsiEnumRelatedProducts(string strUpgradeCode, int reserved, int iIndex, StringBuilder sbProductCode);

.

StringBuilder sbProductCode = new StringBuilder(39);

.

[Out] StringBuilder szXMLData,

.

StringBuilder szXMLData = new StringBuilder((int)pcchXMLData);

.

   [Out] StringBuilder szResultBuf, ref int pcchResultBuf);

.

public static extern UInt32 MsiGetComponentPath(string szProduct, string szComponent, [Out] StringBuilder lpPathBuf,  ref UInt32 pcchBuf);

.

StringBuilder sbPc = new StringBuilder(50);

.

StringBuilder sbFeat = new StringBuilder(100);

.

StringBuilder sbComp = new StringBuilder(50);

.

StringBuilder sbPth = new StringBuilder(500);

.

static extern int MsiGetFileVersion(string szFilePath, System.Text.StringBuilder lpVersionBuf, ref int pcchVersionBuf, System.Text.StringBuilder lpLangBuf, ref int pcchLangBuf);

.

    [Out] StringBuilder lpValue,

.

   StringBuilder returnValue = new StringBuilder((int)pcchValue);

.

static extern Int32 MsiGetProductInfo(string product, string property, [Out] StringBuilder valueBuf, ref Int32 len);

.

System.Text.StringBuilder builder = new System.Text.StringBuilder(len);

.

static extern int MsiGetProductProperty(IntPtr hProduct, string szProperty, StringBuilder lpValueBuf, ref uint pcchValueBuf);

.

   [Out] StringBuilder szValueBuf, ref int pchValueBuf);

.

StringBuilder sb = new StringBuilder();

.

    [Out] StringBuilder szProductCode, [Out] StringBuilder szFeatureId, [Out] StringBuilder szComponentCode);

.

  StringBuilder sbPc = new StringBuilder(50);

.

  StringBuilder sbFeat = new StringBuilder(100);

.

  StringBuilder sbComp = new StringBuilder(50);

.

   [Out] StringBuilder szPathBuf, ref int pcchPathBuf);

.

   [Out] StringBuilder szPathBuf, ref int pcchPathBuf);

.

static extern uint MsiProvideAssembly(string assembly, string context, uint mode, int info, System.Text.StringBuilder path, ref int pathSize);

.

    StringBuilder path = new StringBuilder(1024);

.

   StringBuilder szValueBuf, ref int pcchValueBuf);

.

        var builder = new StringBuilder(length + 1);

advapi32

.
Dissent
Don't use an IntPtr like above, just use a System.Text.StringBuilder. You shouldn't need to worry about calling LocalFree in this case either, but I have not confirmed this 100%.
.

        StringBuilder strSid = new StringBuilder();

.

                           <[In](), Out(), [Optional]()> ByVal lpCommandLine As StringBuilder, _

.

Use StringBuilder for lpCommandLine parameter for unicode version of this function.

.

    StringBuilder pszProvName,

.

    StringBuilder pszProvName,

.

    StringBuilder pszProvName,

.

    StringBuilder pszName;

.

        pszName = new StringBuilder(cbName);

.

         System.Text.StringBuilder pszProvName,

.

         System.Text.StringBuilder pszTypeName,

.

     $pszTypeName = New-Object Text.StringBuilder

.

     $pszProvName = New-Object Text.Stringbuilder

.

    System.Text.StringBuilder pszTypeName,

.

    StringBuilder pszProvName,

.

StringBuilder providerName = new StringBuilder(255);

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


 
Access PInvoke.net directly from VS: