|
| Either my registry question stumped everyone or this board no longer functions |
 |
Wed, 12 Mar 2008 21:05:29 -070 |
I hope it is not the later.....
|
| Post Reply
|
| Re: Either my registry question stumped everyone or this board no longer functions |
 |
Thu, 13 Mar 2008 14:38:48 -070 |
It is within the subkeys that I would like several strings to be
within a single key. Actually just need to read it.
Paperport has the following key/subkeys I get to:
HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
Preferences
Within that subkey are perhaps 20 or so values for different strings
on a Sinlge subkey.
I cannot seem to read them with the lib functions provided or am doing
something wrong.
One of the strings within that key is: ImpEpxDir and its Data is
a directory on my computer.
Just need help reading the info from some of these keys.
On Thu, 13 Mar 2008 15:50:41 +0900, "John Roberts"
<remjohnr@iinet.net.au> wrote:
>
>"Tony" <tanos_8@hotmail.com> wrote in message
>news:pu9ht39mkr1gu55a48e83mus4s9fo6pkj9@4ax.com...
>>I hope it is not the later.....
>>
>>
>>I can see how to create, add, edit keys with the reglib32.sbp and
>>thats great, but how can I add several additional strings to the same
>>key instead of just manipulating the Default? Am I missing something
>>in the lib?
>
>Your question was little difficult to decipher because you cannot have
>several additional strings on one key. The registry is one string per key.
>
>If you want more than one string per key then you need to create sub keys
>and write to these.
>
>You have to use a 3 step process to modify existing strings
>1. read the string from the registry key
>2. change it or add to it etc
>3. write back to the registry key.
>
>Cheers, John
|
| Post Reply
|
| Re: Either my registry question stumped everyone or this board no longer functions |
 |
Thu, 13 Mar 2008 15:50:41 +090 |
"Tony" <tanos_8@hotmail.com> wrote in message
news:pu9ht39mkr1gu55a48e83mus4s9fo6pkj9@4ax.com...
>I hope it is not the later.....
>
>
>I can see how to create, add, edit keys with the reglib32.sbp and
>thats great, but how can I add several additional strings to the same
>key instead of just manipulating the Default? Am I missing something
>in the lib?
Your question was little difficult to decipher because you cannot have
several additional strings on one key. The registry is one string per key.
If you want more than one string per key then you need to create sub keys
and write to these.
You have to use a 3 step process to modify existing strings
1. read the string from the registry key
2. change it or add to it etc
3. write back to the registry key.
Cheers, John
|
| Post Reply
|
| Re: Either my registry question stumped everyone or this board no longer functions |
 |
Fri, 14 Mar 2008 08:50:58 -070 |
Yes I am stuck. I cannot even get the written example to run. Comes
up with invalid Registry Key when running the supplied sample for the
2 files REGVW32.SBP and REGLIB32.SBP
I have an older part of my program that creates are reads keys fine. I
was adding some functionality for some PDF files and need to read a
key that PaperPort has within the Windows Registry.
The key is:
HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
Preferences
The String value I need from that key is: ImpEpxDi
It is a string and holds a directory I need to know.
Any help would be greatly appreciated. Thanks
On Fri, 14 Mar 2008 15:49:19 +0900, "John Roberts"
<remjohnr@iinet.net.au> wrote:
>The max length for a string buffer is 255 in the registry so 20 comma or
>whatever separated values + separator doesn't leave much space for each.
>> HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
>> Preferences
>However, if you can read other string keys using RegQuerySVal&% there
should
>be no reason you cannot read that one unless it is the spaces in the key
>label "PaperPort User
>Preferences" causing the problem. I avoid spaces and use the
"_" character
>instead.
>Let us know if you are still stuck with this one.
>
>"Tony" <tanos_8@hotmail.com> wrote in message
>news:ov6jt3hbb7ak7h0q5is2oluru15ibtd8ar@4ax.com...
>> It is within the subkeys that I would like several strings to be
>> within a single key. Actually just need to read it.
>>
>> Paperport has the following key/subkeys I get to:
>>
>>
>> HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
>> Preferences
>>
>> Within that subkey are perhaps 20 or so values for different strings
>> on a Sinlge subkey.
>>
>> I cannot seem to read them with the lib functions provided or am doing
>> something wrong.
>>
>> One of the strings within that key is: ImpEpxDir and its Data is
>> a directory on my computer.
>>
>> Just need help reading the info from some of these keys.
>>
>>
>>
>>
>>
>> On Thu, 13 Mar 2008 15:50:41 +0900, "John Roberts"
>> <remjohnr@iinet.net.au> wrote:
>>
>>>
>>>"Tony" <tanos_8@hotmail.com> wrote in message
>>>news:pu9ht39mkr1gu55a48e83mus4s9fo6pkj9@4ax.com...
>>>>I hope it is not the later.....
>>>>
>>>>
>>>>I can see how to create, add, edit keys with the reglib32.sbp
and
>>>>thats great, but how can I add several additional strings to the
same
>>>>key instead of just manipulating the Default? Am I missing
something
>>>>in the lib?
>>>
>>>Your question was little difficult to decipher because you cannot
have
>>>several additional strings on one key. The registry is one string
per key.
>>>
>>>If you want more than one string per key then you need to create sub
keys
>>>and write to these.
>>>
>>>You have to use a 3 step process to modify existing strings
>>>1. read the string from the registry key
>>>2. change it or add to it etc
>>>3. write back to the registry key.
>>>
>>>Cheers, John
>>>
|
| Post Reply
|
| Re: Either my registry question stumped everyone or this board no longer functions |
 |
Fri, 14 Mar 2008 12:53:50 -070 |
After some research I have found out that the api calls in the
provided library for SHELL.DLL (RegQueryValue) do not work for
retrieving information from anything but the DEFAULT value in any
registry KEY.
I need some examples from the RegOpenKeyEx and RegQueryKeyValueEx from
the "ADVAPI32.DLL". I found a few from the snipets, but they have no
explanation, nor do they have one for RegQueryKeyValueEx
Any help with this would be great. I have spent about 4 hours on it
so far, and just cannot get the syntax correct to retrieve info.
On Fri, 14 Mar 2008 08:50:58 -0700, Tony <tanos_8@hotmail.com> wrote:
>Yes I am stuck. I cannot even get the written example to run. Comes
>up with invalid Registry Key when running the supplied sample for the
>2 files REGVW32.SBP and REGLIB32.SBP
>
>I have an older part of my program that creates are reads keys fine. I
>was adding some functionality for some PDF files and need to read a
>key that PaperPort has within the Windows Registry.
>
>The key is:
> HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
>Preferences
>
>The String value I need from that key is: ImpEpxDi
>It is a string and holds a directory I need to know.
>
>Any help would be greatly appreciated. Thanks
>
>
>
>
>
>
>On Fri, 14 Mar 2008 15:49:19 +0900, "John Roberts"
><remjohnr@iinet.net.au> wrote:
>
>>The max length for a string buffer is 255 in the registry so 20 comma or
>>whatever separated values + separator doesn't leave much space for
each.
>>> HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
>>> Preferences
>>However, if you can read other string keys using RegQuerySVal&%
there should
>>be no reason you cannot read that one unless it is the spaces in the key
>>label "PaperPort User
>>Preferences" causing the problem. I avoid spaces and use the
"_" character
>>instead.
>>Let us know if you are still stuck with this one.
>>
>>"Tony" <tanos_8@hotmail.com> wrote in message
>>news:ov6jt3hbb7ak7h0q5is2oluru15ibtd8ar@4ax.com...
>>> It is within the subkeys that I would like several strings to be
>>> within a single key. Actually just need to read it.
>>>
>>> Paperport has the following key/subkeys I get to:
>>>
>>>
>>> HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User
>>> Preferences
>>>
>>> Within that subkey are perhaps 20 or so values for different
strings
>>> on a Sinlge subkey.
>>>
>>> I cannot seem to read them with the lib functions provided or am
doing
>>> something wrong.
>>>
>>> One of the strings within that key is: ImpEpxDir and its Data is
>>> a directory on my computer.
>>>
>>> Just need help reading the info from some of these keys.
>>>
>>>
>>>
>>>
>>>
>>> On Thu, 13 Mar 2008 15:50:41 +0900, "John Roberts"
>>> <remjohnr@iinet.net.au> wrote:
>>>
>>>>
>>>>"Tony" <tanos_8@hotmail.com> wrote in message
>>>>news:pu9ht39mkr1gu55a48e83mus4s9fo6pkj9@4ax.com...
>>>>>I hope it is not the later.....
>>>>>
>>>>>
>>>>>I can see how to create, add, edit keys with the
reglib32.sbp and
>>>>>thats great, but how can I add several additional strings to
the same
>>>>>key instead of just manipulating the Default? Am I missing
something
>>>>>in the lib?
>>>>
>>>>Your question was little difficult to decipher because you
cannot have
>>>>several additional strings on one key. The registry is one
string per key.
>>>>
>>>>If you want more than one string per key then you need to create
sub keys
>>>>and write to these.
>>>>
>>>>You have to use a 3 step process to modify existing strings
>>>>1. read the string from the registry key
>>>>2. change it or add to it etc
>>>>3. write back to the registry key.
>>>>
>>>>Cheers, John
>>>>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|