Navigation:  thinBasic Modules > OS (Operating System) > OS_Service ... >

OS_ServiceQuery

Previous pageReturn to chapter overviewNext page

 

Description

 

Get the service status.

 

Syntax

 

n = OS_ServiceQuery( [ComputerName, ] ServiceName)

 

Returns

 

Number.

See OS Equates for possible return values

 

Parameters

 

Name

Type

Optional

Meaning

ComputerName

String

Yes

Name of the computer on the LAN. If missed function will work on local computer

ServiceName

String

No

Name of the service

 

Remarks

 

Restrictions

 

Functionality tested only on LAN.

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com