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
![]()
MyWorkplace Solutions Pty Limited
Level 5, 11 Queens Road
Melbourne Victoria 3004
Ph. 1300 733 731
Mob. 0400 398 188
Making Service our Priority
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.
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.
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.
*****************************************************************************************************************
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
*****************************************************************************************************************
Hi Martin,
Can you please send me the sample userclass?
Thanks.
Regards,
Vijitha
![]()
MyWorkplace Solutions Pty Limited
Level 5, 11 Queens Road
Melbourne Victoria 3004
Ph. 1300 733 731
Fax. 03 9710 1112
Making Service our Priority
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.