Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Registry Settings Programming


Message #1 by helga@k... on Tue, 30 Jul 2002 12:53:50
Creating file associations with default icon

http://www.vbsquare.com/files/tip458.html


----- Original Message -----
From: "Bullock, John Roger" <jrbullo@s...>
To: "professional vb" <pro_vb@p...>
Sent: Wednesday, July 31, 2002 12:02 AM
Subject: [pro_vb] RE: Registry Settings Programming


> Here is a group of API declarations to use.
>
>
> Public Declare Function RegCloseKey Lib "advapi32.dll" _
> (ByVal hKey As Long) As Long
>
> Public Declare Function RegCreateKey Lib "advapi32.dll" _
> Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey _
> As String, phkResult As Long) As Long
>
> Public Declare Function RegDeleteKey Lib "advapi32.dll" _
> Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey _
> As String) As Long
>
> Public Declare Function RegDeleteValue Lib "advapi32.dll" _
> Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal _
> lpValueName As String) As Long
>
> Public Declare Function RegOpenKey Lib "advapi32.dll" _
> Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey _
> As String, phkResult As Long) As Long
>
> Public Declare Function RegQueryValueEx Lib "advapi32.dll" _
> Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName _
> As String, ByVal lpReserved As Long, lpType As Long, lpData _
> As Any, lpcbData As Long) As Long
>
> Public Declare Function RegSetValueEx Lib "advapi32.dll" _
> Alias "RegSetValueExA" (ByVal hKey As Long, ByVal _
> lpValueName As String, ByVal Reserved As Long, ByVal _
> dwType As Long, lpData As Any, ByVal cbData As Long) As Long
>
>
> There are a number of Web sites to help, here is one but it is just one
that
> I happened to remember:
>
> http://216.26.168.92/vbapi/ref/index.html
>
> I am afraid that I don't know the key that contains association
information.
>
> -----Original Message-----
> From: helga@k... [mailto:helga@k...]
> Sent: July 30, 2002 6:54 AM
> To: professional vb
> Subject: [pro_vb] Registry Settings Programming
>
>
> Hi
>
> I wonder if someone can help me as a matter of extreme urgency.
>
> I'm looking for an good example that does the following:
> 1.  Add's a setting to the registry associating a file with my app i.e.
>     .abc files should open with app1.
> 2.  Then, when the user opens such a file, how my app should handle it.  I
> know someone gave me a example re the commandline string but it does'nt
> work for me.  Is there some command line arguments applicable when
> creating p&d or how.
>
> Thanks very much
> Helga
>
> ---
> Visual C# - A Guide for VB6 Developers
> This book will make it easy to transfer your skills
> from Visual Basic 6 to C#, the language of choice
> of the .NET Framework.
> http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059
>
>
>
>
> ---
> Visual C# - A Guide for VB6 Developers
> This book will make it easy to transfer your skills
> from Visual Basic 6 to C#, the language of choice
> of the .NET Framework.
> http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/2002

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

  Return to Index