Accessing the Registry

16 views
Skip to first unread message

Darren Harvey

unread,
Jul 18, 2011, 1:14:47 AM7/18/11
to openroa...@googlegroups.com

I am looking for a way to access information for a Registry Key, without the use of a Bat file or writing the results to a text file.  I want to do this in an eClient situation, and I would prefer not to have to rely on writing/reading files from the client PC.  My thought is to use the ‘REG QUERY …’ command, but not sure this is possible without reading or writing files.

 

Thanks

 

Darren

 

 

 

 

Regards,

Darren Harvey

 

 email_logo

MyWorkplace Solutions Pty Limited

Level 5, 11 Queens Road

Melbourne Victoria 3004

 

Ph.   1300 733 731

Mob. 0400 398 188

Making Service our Priority

 

www.MyWorkplace.com.au

 

If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.

 

Bodo Bergmann

unread,
Jul 18, 2011, 3:41:38 AM7/18/11
to openroa...@googlegroups.com

Hi Darren,

 

You could try to use the Win32 API functions (from advapi32.dll) as 3GL procedures e.g.:

RegOpenKeyEx (RegOpenKeyExA), RegQueryValueEx (RegQueryValueExA) and RegCloseKey

 

http://msdn.microsoft.com/en-us/library/ms724875(VS.85).aspx

http://support.microsoft.com/kb/145679/en-us

http://support.microsoft.com/kb/143274/en-us

http://www.codeguru.com/forum/showthread.php?t=153473

 

Alternatively, you could use the undocumented RegistryKey class
(have a look at the sources of “asreg” application in the Empire 4GL sources – asreg is accessing the registry using this class).

 

Bodo.

 

Bodo Bergmann | Sr. Software Engineer | Bodo.B...@ingres.com | Ingres Germany GmbH | Ohmstr. 12 | 63225 Langen | GERMANY | +49 6103 9881 0

--
You received this message because you are subscribed to the Google Groups "OpenROAD Users Mailing List" group.
To post to this group, send email to openroa...@googlegroups.com.
To unsubscribe from this group, send email to openroad-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openroad-users?hl=en.

image001.png

Bloomfield, Martin (CRD)

unread,
Jul 18, 2011, 4:01:59 AM7/18/11
to openroa...@googlegroups.com

Darren,

 

I have used some registry access functionality in an eClient application to determine the location of the installed Office (Word, Excel) executables.  The basic functionality was provided by someone else on this group. If you would lie a copy of the userclass and sample calls, I can provide it for you.  This has been written for OpenROAD 2006 (5.0)

 

Regards,

Martin Bloomfield.


This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Cable&Wireless Worldwide in partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.) In case of problems, please call your organisation’s IT Helpdesk.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.

--
You received this message because you are subscribed to the Google Groups "OpenROAD Users Mailing List" group.
To post to this group, send email to openroa...@googlegroups.com.
To unsubscribe from this group, send email to openroad-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openroad-users?hl=en.

************************************************************
The Chemicals Regulation Directorate (CRD) was created on the 1st April 2009.
All our email addresses will follow the following format
Email sent to the previous PSD addresses will continue to be delivered but please update your mailing lists or contacts as soon as you can to reflect the change.

This email may contain sensitive information.  Please ensure that you refer to our Statement of Service Standards for guidance on secure handling of information

*****************************************************************************************************************

Please note : Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications and may be automatically logged, monitored and / or recorded for lawful purposes by the GSI service provider.

 

Interested in Occupational Health and Safety information?

Please visit the HSE website at the following address to keep yourself up to date

 

www.hse.gov.uk

 

*****************************************************************************************************************

 

 


The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by Cable&Wireless Worldwide in partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.) On leaving the GSi this email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.
image001.png

Vijitha

unread,
Aug 1, 2011, 12:42:15 AM8/1/11
to openroa...@googlegroups.com

Hi Martin,

 

Can you please send me the sample userclass?

 

Thanks.

 

Regards,

 

Vijitha

 

cid:image001.jpg@01C71E15.F2F2E6A0

 

MyWorkplace Solutions Pty Limited

Level 5, 11 Queens Road

Melbourne Victoria 3004

 

Ph.   1300 733 731

Fax.  03 9710 1112

Making Service our Priority

 

www.MyWorkplace.com.au

 

If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.

Reply all
Reply to author
Forward
0 new messages