#16
|
|||
|
|||
What "operation" do you have to perfrom to get SERVICE_START_TYPE ?
I did try "Query Status" I did get the value of SERVICE_STATUS but VB did not recognize SERVICE_START_TYPE ?? |
#17
|
|||
|
|||
It is the Query status operation.
http://www.kinook.com/VisBuildPro/Ma...icemaintab.htm I tried it with the Windows Update service and got these temporary macros: SERVICE_START_TYPE = 2 SERVICE_STATUS = 4 |
#18
|
|||
|
|||
Quote:
I am still not seeing SERVICE_START_TYPE, though I do see SERVICE_STATUS, I am using VBP 8.6.. What I may be missing? |
#19
|
|||
|
|||
OK, you are right, when I attempted with wuauserv (windows update service) I got values for both system variables, but when I attempted the same with our custom NT service, I am only getting SERVICE_STATUS, whyz this?
Last edited by Shiamak; 05-01-2014 at 05:09 PM. |
#20
|
|||
|
|||
The Service action looks for the startup type in the registry at HKEY_LOCAL_MACHINE\System\CurrentControlSet\servic es\<servicename>
looking for a DWORD value named Start under that key. The action will attempt to convert the Service name property to the key name via the GetServiceKeyName API and use that if available. Maybe that value isn't defined for your custom service? |
#21
|
|||
|
|||
I do see DWORD value set as 2 in the registry for our custom services.......:-(..
I dont wanna spend time writing complete code to get status, so any help getting it done via VBP 8.6 is totally appreciated. Last edited by Shiamak; 05-01-2014 at 07:19 PM. |
#22
|
|||
|
|||
Strange. In the latest build (VisBuildAct.dll 8.6.0.4), the Service action has been modified to use the QueryServiceConfig API instead of a registry lookup to get the startup type. If that doesn't work, you might try using the Read Registry action (something like the attached).
|
#23
|
|||
|
|||
That is what I started doing since I got your last reply which has worked, how do I get the latest build? do I have to pay or update will be free?
|
#24
|
|||
|
|||
All 8.x updates are included with a v8 purchase. Latest version is at
http://www.kinook.com/VisBuildPro/download.html |
Thread Tools | |
Display Modes | Rate This Thread |
|
|