Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #16  
Old 04-30-2014, 04:58 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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 ??
Reply With Quote
  #17  
Old 04-30-2014, 05:31 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #18  
Old 05-01-2014, 01:22 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Quote:
Originally Posted by kinook View Post
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

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?
Reply With Quote
  #19  
Old 05-01-2014, 01:30 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Quote:
Originally Posted by Shiamak View Post
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?
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.
Reply With Quote
  #20  
Old 05-01-2014, 05:52 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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?
Reply With Quote
  #21  
Old 05-01-2014, 06:23 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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.
Reply With Quote
  #22  
Old 05-01-2014, 07:23 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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).
Attached Files
File Type: bld svc.bld (796 Bytes, 2064 views)
Reply With Quote
  #23  
Old 05-01-2014, 07:30 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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?
Reply With Quote
  #24  
Old 05-01-2014, 07:32 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
All 8.x updates are included with a v8 purchase. Latest version is at
http://www.kinook.com/VisBuildPro/download.html
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:07 AM.


Copyright © 1999-2023 Kinook Software, Inc.