Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12721 > unrolled thread
| Started by | Stefan Ungemach <stefan.ungemach@bingo-ev.de> |
|---|---|
| First post | 2019-12-06 03:07 -0800 |
| Last post | 2019-12-07 01:35 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Accessing WMI objects Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2019-12-06 03:07 -0800
Re: Accessing WMI objects "Jamal" <nospam@example.com> - 2019-12-07 00:11 -0500
Re: Accessing WMI objects Steve <steven_emmett@yahoo.co.uk> - 2019-12-07 01:35 -0800
| From | Stefan Ungemach <stefan.ungemach@bingo-ev.de> |
|---|---|
| Date | 2019-12-06 03:07 -0800 |
| Subject | Accessing WMI objects |
| Message-ID | <fb55079e-286a-43ff-9a61-b12d803933f3@googlegroups.com> |
Hi all, has anyone successfully accessed WMI objects (by API) from VO? I need to query the install path of a running service on my machine from within a VO application. I can do this with a Powershell script, but I cannot be sure that scripting is enabled on customer machines as well. The very problem is to find out if an Advantage Database Server is 32 or 64 bit. The management API only provides information about serial number, server type etc., but there is no way to ask the server for that specific information. The only way for me to do it would be to check the running services from another VO program which is supposed to run on the server as well. Any help is highly appreciated! Stefan
[toc] | [next] | [standalone]
| From | "Jamal" <nospam@example.com> |
|---|---|
| Date | 2019-12-07 00:11 -0500 |
| Message-ID | <qsfc9k$v6p$1@gioia.aioe.org> |
| In reply to | #12721 |
Hi Stefan, Unless I am mistaken, a windows service AFAIK does not have 32 64 bit info unless you can distinguish it by name. Do you know how to create COM components in C# or X#? If so, you can write a class that uses .NET System.ServiceProcess to see a service status and much more. Jamal "Stefan Ungemach" wrote in message news:fb55079e-286a-43ff-9a61-b12d803933f3@googlegroups.com... Hi all, has anyone successfully accessed WMI objects (by API) from VO? I need to query the install path of a running service on my machine from within a VO application. I can do this with a Powershell script, but I cannot be sure that scripting is enabled on customer machines as well. The very problem is to find out if an Advantage Database Server is 32 or 64 bit. The management API only provides information about serial number, server type etc., but there is no way to ask the server for that specific information. The only way for me to do it would be to check the running services from another VO program which is supposed to run on the server as well. Any help is highly appreciated! Stefan
[toc] | [prev] | [next] | [standalone]
| From | Steve <steven_emmett@yahoo.co.uk> |
|---|---|
| Date | 2019-12-07 01:35 -0800 |
| Message-ID | <5e6bb7c8-a8cf-4ef5-a194-22655bbbb9b6@googlegroups.com> |
| In reply to | #12721 |
On Friday, December 6, 2019 at 11:07:26 AM UTC, Stefan Ungemach wrote: > Hi all, > > has anyone successfully accessed WMI objects (by API) from VO? > > I need to query the install path of a running service on my machine from within a VO application. I can do this with a Powershell script, but I cannot be sure that scripting is enabled on customer machines as well. > > The very problem is to find out if an Advantage Database Server is 32 or 64 bit. The management API only provides information about serial number, server type etc., but there is no way to ask the server for that specific information. The only way for me to do it would be to check the running services from another VO program which is supposed to run on the server as well. > > Any help is highly appreciated! > > Stefan Hi Stefan, AFAIK, the Windows Services API could be used (look at the VO services example to learn how to use it) and by using the Windows QueryServiceConfig2A function I believe that this would return the configuration information including the path. https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc- queryserviceconfig2a Steve
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web