Solved

How to use advapi32.dll in VB.NET

Posted on 2003-10-29
5
829 Views
Last Modified: 2012-06-21
In my VB6 appliction I used function RegSetValueEx from "advapi32.dll" for Open Registry Key and got successfull result.
But when I try to use this function in VB.NET I failed, instead of return value equal to 0  I get strange huge number.

What is wrong? Can I use advapi32 in VB.NET or I need use something else ?
0
Comment
Question by:ulitsky
  • 2
5 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9642425
0
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 500 total points
ID: 9648138
You can use advapi32 in VB.NET with this

Microsoft.Win32.RegistryKey.SetValue

Thanks,
~Fantasy~
0
 

Author Comment

by:ulitsky
ID: 9648160
Thank you, it's work
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 10163366
I beleive my answer is OK.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question