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

kernel32

.
Summary
.

static extern uint GetPrivateProfileString(

.

static extern uint GetPrivateProfileString(

.

    Private Shared Function GetPrivateProfileString(ByVal lpAppName As String, _

.

[DllImport("KERNEL32.DLL", CharSet=CharSet::Auto, EntryPoint="GetPrivateProfileString")]

.

static UInt32 GetPrivateProfileString(

.

       uint res = GetPrivateProfileString("AppName", "KeyName", "", sb, (uint)sb.Capacity, @"c:\test.ini");

.

       static extern uint GetPrivateProfileString(

.

    Private Declare Auto Function GetPrivateProfileString Lib "kernel32" (ByVal lpAppName As String, _

.

    res = GetPrivateProfileString("AppName", "KeyName", "", sb, sb.Capacity, "c:\test.ini")

.
Documentation
[GetPrivateProfileString] on MSDN
.

Private Declare Ansi Function WritePrivateProfileString _

.

      Lib "kernel32.dll" Alias "WritePrivateProfileStringA" _

.

   Private Declare Ansi Function GetPrivateProfileString _

.

      Lib "kernel32.dll" Alias "GetPrivateProfileStringA" _

.

    Private Declare Ansi Function WritePrivateProfileString _

.

      Lib "kernel32.dll" Alias "WritePrivateProfileStringA" _

.

    Private Declare Ansi Function FlushPrivateProfileString _

.

      Lib "kernel32.dll" Alias "WritePrivateProfileStringA" _

.

    intCharCount = GetPrivateProfileString(Section, Key, [Default], objResult, objResult.Capacity, ConfigFile)

.

    WritePrivateProfileString(Section, Key, Value, ConfigFile)

.

    FlushPrivateProfileString(0, 0, 0, ConfigFile)

.
Summary
.

static extern bool WritePrivateProfileString(string lpAppName,

.

Private Shared Function WritePrivateProfileString(ByVal lpAppName As String, _

.

Private Declare Auto Function WritePrivateProfileString Lib "kernel32" (ByVal lpAppName As String, _    

.

[DllImport("KERNEL32.DLL", CharSet=CharSet::Auto, EntryPoint="WritePrivateProfileString")]

.

static Boolean WritePrivateProfileString(String^ lpAppName, String^ lpKeyName, String^ lpString, String^ lpFileName);

.

    Return = WritePrivateProfileString(SectionName,

.

bres = WritePrivateProfileString("AppName", "KeyName", "TestValue", "c:\test.ini")

.

Console.WriteLine("WritePrivateProfileString returned : " & bres.ToString())

.

     WritePrivateProfileString(lpAppname, lpKeyName, lpString, lpFilename)

.
Documentation
[WritePrivateProfileString] on MSDN
.
Summary
.

    Private Shared Function WriteProfileString(ByVal lpAppName As String, _

.

static extern bool WriteProfileString(string lpAppName, string lpKeyName,

.

    Public Function SetProfileString(ByVal filename As String, ByVal section As String, ByVal key As String, ByVal sValue As String) As Boolean

.

        bRslt = WriteProfileString(section, key, sValue)

.

        bRslt = WritePrivateProfileString(section, key, sValue, filename)

.

    Public Function SetProfileString(ByVal section As String, ByVal key As String, ByVal sValue As String) As Boolean

.

    Return SetProfileString("", section, key, sValue)

.

    Public bool SetProfileString(string section, string key, string sValue)

.

        WriteProfileString("", section, key, sValue);

.
Documentation
[WriteProfileString] on MSDN

odbccp32

.
Summary
Gets a list of names of values or data corresponding to a value of the system information (MSDN ODBC Programmer's Reference). This function works similarly to the GetProfileString() Win32 API function.
.

static extern int SQLGetPrivateProfileString(string lpszSection, string lpszEntry, string lpszDefault, [Out] char[] retBuffer, int cbRetBuffer, string lpszFileName);

.

Declare Function SQLGetPrivateProfileString Lib "odbccp32.dll" (TODO) As TODO

.

    SQLGetPrivateProfileString(dataSourceName, "Driver", "", value, value.Length, "odbc.ini");

.
Documentation
[SQLGetPrivateProfileString] on MSDN
.

    SQLGetPrivateProfileString(dataSourceName, "Driver", "", value, value.Length, "odbc.ini");


 
Access PInvoke.net directly from VS: