473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

WritePrivateProfileString in NET framework 2.0

Hi,

Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?

Thanks
Nhan
Jul 29 '07 #1
4 3372
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:e3**************@TK2MSFTNGP06.phx.gbl...
Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?
Yes - same as any other API function i.e. via p/invoke:
http://www.pinvoke.net/default.aspx/...ileString.html
[DllImport("kernel32.dll")]
static extern bool WritePrivateProfileString(string lpAppName, string
lpKeyName, string lpString, string lpFileName);

bool blnReturn = WritePrivateProfileString("AppName", "KeyName", "Value",
"FileName")
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 29 '07 #2
Thanh-Nhan Le wrote:
Hi,

Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?

Thanks
Nhan

http://pinvoke.net/default.aspx/kern...ileString.html

--
-glenn-
Jul 29 '07 #3
Thanks very much.

"Thanh-Nhan Le" <tn*******@yahoo.deschrieb im Newsbeitrag
news:e3**************@TK2MSFTNGP06.phx.gbl...
Hi,

Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?

Thanks
Nhan


Jul 29 '07 #4
On Jul 29, 9:44 am, "Thanh-Nhan Le" <tnle_2...@yahoo.dewrote:
Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?
You might be interested in nini:

http://nini.sourceforge.net/

Eric

Jul 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravindra | last post by:
Well I installed the framework provided by microsoft , the problem is I am able to activate the smart tag in the doc file but when I Click on the Show Detils option in the information bridge the...
3
by: CMan | last post by:
Hi, We are currently trying to install .Net Framework v.1.1 on a server which already has v1.0. We are receiving the following error. Error 1704.An installation for Microsoft .NET Framework...
18
by: Cameron Laird | last post by:
QOTW: "... So I started profiling the code and the slowdown was actually taking place at places where I didn't expect it." -- Guyon Mor?e (and about twenty-three thousand others) " suggestion...
2
by: E. W via DotNetMonster.com | last post by:
Hi, is it possible with C# to use such Winapi-Functions like WritePrivateProfilestring (and how) Thanks ew -- Message posted via http://www.dotnetmonster.com
6
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
0
by: Bexm | last post by:
Hello Yes I know before you say I know INI files are outdated and xml should be used instead, but I have a very specific reason and an INI file must be used as it is also being used by an old VB...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.