Win registry read in 16 bits ???? 
Author Message
 Win registry read in 16 bits ????

Hi
I try to retrieve the modem brand from Hkey Local Machine ENUM but I can not
retrieve the value for that key the problem I do not know how  retrieve the
value in CW2.003 16 bits app I try with this

RegQueryValue(long, *cstring,*cstring, *long)

call with

string_one='CLSID\{{4D36E96D-E325-11CE-BFC1-08002BE10318}'
if RegQueryValue(1, string_one ,string_two , long_var_one) .

but when it returns I do not have any value in the string_two

the key location I analize is
MyComputer
+HKEY_LOCAL_MACHINE
   +ENUM
      +SERENUM
        +USR0063
           +BIOS&PNP0501&09

The values there are

(Default)                         (Value not set)
Capabilities                  14 00 00 00
Class                             "Modem"
ClassGUID                    "{4D36E96D-E325-11CE-BFC1-08002BE10318}"
CompatibleIDs              "PNPC107"
ConfigFlags                   00 00 00 00
DeviceDesc                  "Standard modem #2"
Driver                             "Modem\0006"
FriendlyName               "Standard modem #2"
HardwareID                   "SERENUM\USR0063"
Mfg                                 "Standard Modem Types"
PnP Rev                         "1.00"
Serial Number                "A2F0C3A3"

I must open the key first ? ( how in 16 bits)
I must analize another key
I must export the register to texta and  then parsing and analize the key

Any help is welcome
TIA



Tue, 25 Dec 2001 03:00:00 GMT  
 Win registry read in 16 bits ????
Quote:

> I try to retrieve the modem brand from Hkey Local Machine ENUM but I can not
> retrieve the value for that key the problem I do not know how  retrieve the
> value in CW2.003 16 bits app I try with this

In 16 bit you can only read the default value for a key which in your case is
blank.  You need to use 32 bit code to get at that value.
Jim Kane  - TeamTopSpeed
Productive Software Solutions
Can't Find that Message?
Get Organized, Get ForKeeps!
www.fkeeps.com


Tue, 25 Dec 2001 03:00:00 GMT  
 Win registry read in 16 bits ????
I see thank you.


Quote:

> > I try to retrieve the modem brand from Hkey Local Machine ENUM but I can
not
> > retrieve the value for that key the problem I do not know how  retrieve
the
> > value in CW2.003 16 bits app I try with this

> In 16 bit you can only read the default value for a key which in your case
is
> blank.  You need to use 32 bit code to get at that value.
> Jim Kane  - TeamTopSpeed
> Productive Software Solutions
> Can't Find that Message?
> Get Organized, Get ForKeeps!
> www.fkeeps.com



Fri, 28 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. 16 bits integer read/write in OCaml

2. 16 bits vs 32 bits apps

3. 16 bits Version faster than 32 bits ?????

4. 16 bits versus 32 bits instructions

5. String Instructions 16 bits or 32 bits ???

6. 16 bits versus 32 bits instructions

7. ST/V WIN 16 TO WIN 32 UPGRADE

8. 16 bits Dos EXE run problem / Problème d'execution d'un EXE Dos 16 bits

9. CW2.003 Btrive 6.15 from 16 to 32 bits

10. Dynamic pool limit exceeded isl.plists when compiling .app at 16-bits

11. 16-32 bits API to retrieve PNP modem Brand on W95/98

 

 
Powered by phpBB® Forum Software