public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygqrysrv
@ 2001-11-15 15:06 Guy Harrison
  2001-11-15 15:20 ` cygqrysrv Gerrit P. Haase
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-15 15:06 UTC (permalink / raw)
  To: cygwin


Hi folks,

I've a need for this myself - so I'm writing one (C++). Here's its
"usage"...

Usage: cygqrysrv
--machine           machine-name
--database          database-name
--access-level      GENERIC_ [ READ WRITE EXEC ]
                    SC_MANAGER_
                    [
                    ALL_ACCESS
                    CONNECT
                    CREATE_SERVICE
                    ENUMERATE_SERVICE
                    LOCK
                    QUERY_LOCK_STATUS
                    ]
--service-type      SERVICE_ [ WIN32 DRIVER ]
--service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
*** EOF(0) ***

Any need?


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:06 cygqrysrv Guy Harrison
@ 2001-11-15 15:20 ` Gerrit P. Haase
  2001-11-25  3:50   ` cygqrysrv Gerrit P. Haase
  2001-11-15 15:23 ` cygqrysrv Ralf Habacker
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-15 15:20 UTC (permalink / raw)
  To: (Guy Harrison); +Cc: cygwin

Hallo Guy,

Am 2001-11-25 um 02:10 schriebst du:

> I've a need for this myself - so I'm writing one (C++). Here's its
> "usage"...

> Usage: cygqrysrv
> --machine           machine-name
> --database          database-name
> --access-level      GENERIC_ [ READ WRITE EXEC ]
>                     SC_MANAGER_
>                     [
>                     ALL_ACCESS
>                     CONNECT
>                     CREATE_SERVICE
>                     ENUMERATE_SERVICE
>                     LOCK
>                     QUERY_LOCK_STATUS
>                     ]
> --service-type      SERVICE_ [ WIN32 DRIVER ]
> --service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
> *** EOF(0) ***

> Any need?

Cool, afaik there is nothing like this included with windows or
the resource kit.

Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* RE: cygqrysrv
  2001-11-15 15:06 cygqrysrv Guy Harrison
  2001-11-15 15:20 ` cygqrysrv Gerrit P. Haase
@ 2001-11-15 15:23 ` Ralf Habacker
  2001-11-20  7:46   ` cygqrysrv Guy Harrison
  2001-11-25 12:05   ` cygqrysrv Ralf Habacker
  2001-11-20  7:29 ` cygqrysrv Guy Harrison
  2001-11-24 17:16 ` cygqrysrv Guy Harrison
  3 siblings, 2 replies; 25+ messages in thread
From: Ralf Habacker @ 2001-11-15 15:23 UTC (permalink / raw)
  To: Cygwin

Hi, 
Can you explain, what name "cygqrysrv" mean ?

Regards 
Ralf 

> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Guy Harrison
> Sent: Sunday, November 25, 2001 2:10 AM
> To: cygwin@cygwin.com
> Subject: cygqrysrv
> 
> 
> 
> Hi folks,
> 
> I've a need for this myself - so I'm writing one (C++). Here's its
> "usage"...
> 
> Usage: cygqrysrv
> --machine           machine-name
> --database          database-name
> --access-level      GENERIC_ [ READ WRITE EXEC ]
>                     SC_MANAGER_
>                     [
>                     ALL_ACCESS
>                     CONNECT
>                     CREATE_SERVICE
>                     ENUMERATE_SERVICE
>                     LOCK
>                     QUERY_LOCK_STATUS
>                     ]
> --service-type      SERVICE_ [ WIN32 DRIVER ]
> --service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
> *** EOF(0) ***
> 
> Any need?
> 
> 
> -- 
> swamp-dog@ntlworld.com
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:06 cygqrysrv Guy Harrison
  2001-11-15 15:20 ` cygqrysrv Gerrit P. Haase
  2001-11-15 15:23 ` cygqrysrv Ralf Habacker
@ 2001-11-20  7:29 ` Guy Harrison
  2001-11-29 14:41   ` cygqrysrv Guy Harrison
  2001-11-24 17:16 ` cygqrysrv Guy Harrison
  3 siblings, 1 reply; 25+ messages in thread
From: Guy Harrison @ 2001-11-20  7:29 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 01:10:14 GMT, swamp-dog@ntlworld.com (Guy Harrison)
wrote:

Hi again folks (he says after a week - sorry about that),

I have some questions at the end.

>I've a need for this myself - so I'm writing one (C++). Here's its
>"usage"...
>
>Usage: cygqrysrv
>--machine           machine-name
>--database          database-name
>--access-level      GENERIC_ [ READ WRITE EXEC ]
>                    SC_MANAGER_
>                    [
>                    ALL_ACCESS
>                    CONNECT
>                    CREATE_SERVICE
>                    ENUMERATE_SERVICE
>                    LOCK
>                    QUERY_LOCK_STATUS
>                    ]
>--service-type      SERVICE_ [ WIN32 DRIVER ]
>--service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]

I've not said much about the code so far so here goes. I have two needs:

a) A command line version.
b) A GUI version (later).

All the common functionality will be residing inside a "Service" class
so that (a) & (b) will differ only in the gathering of their input and
emission of their output. The initial design implemented everything via
a single class. This is no longer the case. It has been split into
three; four if you include the class which helps turn bitfields into
their "names".

ServiceControl is the front-end. The transparent ServiceControlDatabase
ensures the service manager gets closed again. ServiceControlBuffer
holds the information we want. Finally ServiceStatus can be used to help
format that data. Example...

static void FC
Display(const ServiceControlBuffer & scb)
{
 for (size_t i = 0; i < scb.Size(); i++)    {
    const ServiceStatus ss  (scb[i].ServiceStatus);

    cout
        << scb[i].lpServiceName << '\n'
        << scb[i].lpDisplayName << '\n'
        << ss.dwServiceType.AsText() << '\n'
        << ss.dwCurrentState.AsText() << '\n'
        << ss.dwControlsAccepted.AsText() << '\n'
    ;
 }
}

..churns out this kind of output...

Browser
Computer Browser
SERVICE_WIN32_SHARE_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_STOP,SERVICE_ACCEPT_SHUTDOWN,
EventLog
EventLog
SERVICE_WIN32_SHARE_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_SHUTDOWN,
 <snip>
TapiSrv
Telephony Service
SERVICE_WIN32_OWN_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_STOP,SERVICE_ACCEPT_PAUSE_CONTINUE,

Obtaining the ServicControlBuffer 'scb' to pass to Display can be
achieved thus (error/exception checking omitted)...

/*[$PROTO external]*/
const int FC
ccMain(
    const char  *   const   machine,
    const char  *   const   database,
    const sd::uint32        access_level,
    const sd::uint32        service_type,
    const sd::uint32        service_state
)
/*[]*/
{
 ServiceControl sc (
                    machine,database,
                    access_level,
                    service_type,service_state
                   );

 sc.Active(true);
 Display(sc);

 return //whatever;
}

..in the above the service manager is is invoked to open the database
when the Active(true) method is called. Active(false) will close it but
this will occur automatically when the underlying ServiceControlDatabase
destructs. I can find nothing in the winapi docs(*) concerning the
effect of having the database open/locked when something else attempts
to do similar so I'm assuming that doing so is detrimental - therefore
it will be possible to copy the information elsewhere and get it closed
asap.

(*) I've been bitten by this kind of microsoft "omission" more than once
before.


The questions...

C++ exceptions - I use them a lot and will create my own when the need
arises. Is this okay?

C++ datatypes - std::string being the most obvious. Offhand I do not
recall seeing any being used in cygwin application sources. Can somebody
elaborate?

Multiple platforms - this last one has had me going round in circles. I
have a preliminary version and need some feedback on how to deliver it.
My primary development environment is C++ Builder. It just so happens it
is relatively painless to have both the borland and gcc compiler using
the same source tree: borland generates .obj extenders for its object
files by default so with Builder making use of a "project file" and gcc
using the "makefile" they co-exist nicely. It has just dawned on me why
I'm having so much trouble with this last question - it isn't specific
to me...

How does Mr Windoze Programmer deliver his windoze app when it contains
a subset that is best targeted as a cygwin package? ;-)


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:23 ` cygqrysrv Ralf Habacker
@ 2001-11-20  7:46   ` Guy Harrison
  2001-11-29 14:41     ` cygqrysrv Guy Harrison
  2001-11-25 12:05   ` cygqrysrv Ralf Habacker
  1 sibling, 1 reply; 25+ messages in thread
From: Guy Harrison @ 2001-11-20  7:46 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 21:10:35 +0100, "Ralf Habacker"
<Ralf.Habacker@freenet.de> wrote:

>Hi, 
>Can you explain, what name "cygqrysrv" mean ?

CYGwin QueRY SeRVice. I forgot to mention that ;-)

My initial idea was that it simply be "sc query" (as in 'SC.exe' from
the NT Resource Kit) because I can never remember the SC syntax. The
remaining functionality is provided by cygrunsrv.


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* cygqrysrv
  2001-11-15 15:06 cygqrysrv Guy Harrison
                   ` (2 preceding siblings ...)
  2001-11-20  7:29 ` cygqrysrv Guy Harrison
@ 2001-11-24 17:16 ` Guy Harrison
  3 siblings, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-24 17:16 UTC (permalink / raw)
  To: cygwin

Hi folks,

I've a need for this myself - so I'm writing one (C++). Here's its
"usage"...

Usage: cygqrysrv
--machine           machine-name
--database          database-name
--access-level      GENERIC_ [ READ WRITE EXEC ]
                    SC_MANAGER_
                    [
                    ALL_ACCESS
                    CONNECT
                    CREATE_SERVICE
                    ENUMERATE_SERVICE
                    LOCK
                    QUERY_LOCK_STATUS
                    ]
--service-type      SERVICE_ [ WIN32 DRIVER ]
--service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
*** EOF(0) ***

Any need?


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:20 ` cygqrysrv Gerrit P. Haase
@ 2001-11-25  3:50   ` Gerrit P. Haase
  0 siblings, 0 replies; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-25  3:50 UTC (permalink / raw)
  To: (Guy Harrison); +Cc: cygwin

Hallo Guy,

Am 2001-11-25 um 02:10 schriebst du:

> I've a need for this myself - so I'm writing one (C++). Here's its
> "usage"...

> Usage: cygqrysrv
> --machine           machine-name
> --database          database-name
> --access-level      GENERIC_ [ READ WRITE EXEC ]
>                     SC_MANAGER_
>                     [
>                     ALL_ACCESS
>                     CONNECT
>                     CREATE_SERVICE
>                     ENUMERATE_SERVICE
>                     LOCK
>                     QUERY_LOCK_STATUS
>                     ]
> --service-type      SERVICE_ [ WIN32 DRIVER ]
> --service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
> *** EOF(0) ***

> Any need?

Cool, afaik there is nothing like this included with windows or
the resource kit.

Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* RE: cygqrysrv
  2001-11-15 15:23 ` cygqrysrv Ralf Habacker
  2001-11-20  7:46   ` cygqrysrv Guy Harrison
@ 2001-11-25 12:05   ` Ralf Habacker
  1 sibling, 0 replies; 25+ messages in thread
From: Ralf Habacker @ 2001-11-25 12:05 UTC (permalink / raw)
  To: Cygwin

Hi, 
Can you explain, what name "cygqrysrv" mean ?

Regards 
Ralf 

> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [ mailto:cygwin-owner@sources.redhat.com]On Behalf Of Guy Harrison
> Sent: Sunday, November 25, 2001 2:10 AM
> To: cygwin@cygwin.com
> Subject: cygqrysrv
> 
> 
> 
> Hi folks,
> 
> I've a need for this myself - so I'm writing one (C++). Here's its
> "usage"...
> 
> Usage: cygqrysrv
> --machine           machine-name
> --database          database-name
> --access-level      GENERIC_ [ READ WRITE EXEC ]
>                     SC_MANAGER_
>                     [
>                     ALL_ACCESS
>                     CONNECT
>                     CREATE_SERVICE
>                     ENUMERATE_SERVICE
>                     LOCK
>                     QUERY_LOCK_STATUS
>                     ]
> --service-type      SERVICE_ [ WIN32 DRIVER ]
> --service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]
> *** EOF(0) ***
> 
> Any need?
> 
> 
> -- 
> swamp-dog@ntlworld.com
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:29 ` cygqrysrv Guy Harrison
@ 2001-11-29 14:41   ` Guy Harrison
  0 siblings, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-29 14:41 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 01:10:14 GMT, swamp-dog@ntlworld.com (Guy Harrison)
wrote:

Hi again folks (he says after a week - sorry about that),

I have some questions at the end.

>I've a need for this myself - so I'm writing one (C++). Here's its
>"usage"...
>
>Usage: cygqrysrv
>--machine           machine-name
>--database          database-name
>--access-level      GENERIC_ [ READ WRITE EXEC ]
>                    SC_MANAGER_
>                    [
>                    ALL_ACCESS
>                    CONNECT
>                    CREATE_SERVICE
>                    ENUMERATE_SERVICE
>                    LOCK
>                    QUERY_LOCK_STATUS
>                    ]
>--service-type      SERVICE_ [ WIN32 DRIVER ]
>--service-state     SERVICE_ [ ACTIVE INACTIVE STATE_ALL ]

I've not said much about the code so far so here goes. I have two needs:

a) A command line version.
b) A GUI version (later).

All the common functionality will be residing inside a "Service" class
so that (a) & (b) will differ only in the gathering of their input and
emission of their output. The initial design implemented everything via
a single class. This is no longer the case. It has been split into
three; four if you include the class which helps turn bitfields into
their "names".

ServiceControl is the front-end. The transparent ServiceControlDatabase
ensures the service manager gets closed again. ServiceControlBuffer
holds the information we want. Finally ServiceStatus can be used to help
format that data. Example...

static void FC
Display(const ServiceControlBuffer & scb)
{
 for (size_t i = 0; i < scb.Size(); i++)    {
    const ServiceStatus ss  (scb[i].ServiceStatus);

    cout
        << scb[i].lpServiceName << '\n'
        << scb[i].lpDisplayName << '\n'
        << ss.dwServiceType.AsText() << '\n'
        << ss.dwCurrentState.AsText() << '\n'
        << ss.dwControlsAccepted.AsText() << '\n'
    ;
 }
}

..churns out this kind of output...

Browser
Computer Browser
SERVICE_WIN32_SHARE_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_STOP,SERVICE_ACCEPT_SHUTDOWN,
EventLog
EventLog
SERVICE_WIN32_SHARE_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_SHUTDOWN,
 <snip>
TapiSrv
Telephony Service
SERVICE_WIN32_OWN_PROCESS,
SERVICE_RUNNING
SERVICE_ACCEPT_STOP,SERVICE_ACCEPT_PAUSE_CONTINUE,

Obtaining the ServicControlBuffer 'scb' to pass to Display can be
achieved thus (error/exception checking omitted)...

/*[$PROTO external]*/
const int FC
ccMain(
    const char  *   const   machine,
    const char  *   const   database,
    const sd::uint32        access_level,
    const sd::uint32        service_type,
    const sd::uint32        service_state
)
/*[]*/
{
 ServiceControl sc (
                    machine,database,
                    access_level,
                    service_type,service_state
                   );

 sc.Active(true);
 Display(sc);

 return //whatever;
}

..in the above the service manager is is invoked to open the database
when the Active(true) method is called. Active(false) will close it but
this will occur automatically when the underlying ServiceControlDatabase
destructs. I can find nothing in the winapi docs(*) concerning the
effect of having the database open/locked when something else attempts
to do similar so I'm assuming that doing so is detrimental - therefore
it will be possible to copy the information elsewhere and get it closed
asap.

(*) I've been bitten by this kind of microsoft "omission" more than once
before.


The questions...

C++ exceptions - I use them a lot and will create my own when the need
arises. Is this okay?

C++ datatypes - std::string being the most obvious. Offhand I do not
recall seeing any being used in cygwin application sources. Can somebody
elaborate?

Multiple platforms - this last one has had me going round in circles. I
have a preliminary version and need some feedback on how to deliver it.
My primary development environment is C++ Builder. It just so happens it
is relatively painless to have both the borland and gcc compiler using
the same source tree: borland generates .obj extenders for its object
files by default so with Builder making use of a "project file" and gcc
using the "makefile" they co-exist nicely. It has just dawned on me why
I'm having so much trouble with this last question - it isn't specific
to me...

How does Mr Windoze Programmer deliver his windoze app when it contains
a subset that is best targeted as a cygwin package? ;-)


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:46   ` cygqrysrv Guy Harrison
@ 2001-11-29 14:41     ` Guy Harrison
  0 siblings, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-29 14:41 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 21:10:35 +0100, "Ralf Habacker"
<Ralf.Habacker@freenet.de> wrote:

>Hi, 
>Can you explain, what name "cygqrysrv" mean ?

CYGwin QueRY SeRVice. I forgot to mention that ;-)

My initial idea was that it simply be "sc query" (as in 'SC.exe' from
the NT Resource Kit) because I can never remember the SC syntax. The
remaining functionality is provided by cygrunsrv.


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:55     ` cygqrysrv Peter Wohlers
  2001-11-20 12:34       ` cygqrysrv Gerrit P. Haase
  2001-11-29 15:16       ` cygqrysrv Peter Wohlers
@ 2001-12-01  5:13       ` Guy Harrison
  2 siblings, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-12-01  5:13 UTC (permalink / raw)
  To: cygwin

On Thu, 29 Nov 2001 15:15:39 -0800, Peter Wohlers <pedro@whack.org>
wrote:

>
>
>Guy Harrison wrote:
>> 
>> On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
>> <gp@familiehaase.de> wrote:
>> 
>> >Now I'm only missing one, how to get a list of ALL services with name
>> >& displayed name?
>> 
>> Er - pass! I can never remember its syntax - which was the initial
>> reason wanting my own version. Moreover, SC has another (infuriating)
>> feature. I'll elaborate on this in the next episode <g>
>> 
>
From the RK
>
>D:\>netsvc
>Controls and displays the status of services.
>
>NETSVC servicename \\computername /command
>
>   servicename  Name of the service
>   computername Name of the computer to administer.
>   /command     One of the following:
>                /query    Queries the status of the service.
>                /start    Starts the service.
>                /stop     Stops the service.
>                /pause    Pauses the service.
>                /continue Starts the paused service.
>                /list     Lists installed services (omit servicename)
>
>Example: NETSVC server  \\joes486 /query
>Example: NETSVC "Clipbook Server" \\popcorn /stop
>Example: NETSVC alerter \\joes486 /pause
>Example: NETSVC /list \\joes486
>
>Arguments are allowed in any order.

I'm afraid NETSVC doesn't appear to exist in the free RK. Incidentally,
has NETSVC ever exhibited this kind of behaviour?

 >sc query
 >[2 or 3 pages of data]
 >Enum: more data, need 660 bytes start resume at index 128

..where 660 and 128 vary.


 
-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20 12:34       ` cygqrysrv Gerrit P. Haase
@ 2001-11-30  0:51         ` Gerrit P. Haase
  0 siblings, 0 replies; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-30  0:51 UTC (permalink / raw)
  To: cygwin

Hallo Peter,

Am 2001-11-30 um 00:15 schriebst du:

>> >Now I'm only missing one, how to get a list of ALL services with name
>> >& displayed name?
>> 
>> Er - pass! I can never remember its syntax - which was the initial
>> reason wanting my own version. Moreover, SC has another (infuriating)
>> feature. I'll elaborate on this in the next episode <g>
>> 

> From the RK

>D:\>netsvc
> Controls and displays the status of services.

Oops, yes thats it, I should buy a book about the RK.  There are so
many tools...

Thanks,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:55     ` cygqrysrv Peter Wohlers
  2001-11-20 12:34       ` cygqrysrv Gerrit P. Haase
@ 2001-11-29 15:16       ` Peter Wohlers
  2001-12-01  5:13       ` cygqrysrv Guy Harrison
  2 siblings, 0 replies; 25+ messages in thread
From: Peter Wohlers @ 2001-11-29 15:16 UTC (permalink / raw)
  To: swamp-dog; +Cc: cygwin

Guy Harrison wrote:
> 
> On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
> <gp@familiehaase.de> wrote:
> 
> >Now I'm only missing one, how to get a list of ALL services with name
> >& displayed name?
> 
> Er - pass! I can never remember its syntax - which was the initial
> reason wanting my own version. Moreover, SC has another (infuriating)
> feature. I'll elaborate on this in the next episode <g>
> 

From the RK

D:\>netsvc
Controls and displays the status of services.

NETSVC servicename \\computername /command

   servicename  Name of the service
   computername Name of the computer to administer.
   /command     One of the following:
                /query    Queries the status of the service.
                /start    Starts the service.
                /stop     Stops the service.
                /pause    Pauses the service.
                /continue Starts the paused service.
                /list     Lists installed services (omit servicename)

Example: NETSVC server  \\joes486 /query
Example: NETSVC "Clipbook Server" \\popcorn /stop
Example: NETSVC alerter \\joes486 /pause
Example: NETSVC /list \\joes486

Arguments are allowed in any order.


-- 
Peter Wohlers

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:31   ` cygqrysrv Guy Harrison
@ 2001-11-29 14:41     ` Guy Harrison
  0 siblings, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-29 14:41 UTC (permalink / raw)
  To: Corinna Vinschen

On Sun, 25 Nov 2001 22:06:37 +0100, Corinna Vinschen <cygwin@cygwin.com>
wrote:

>On Sun, Nov 25, 2001 at 12:26:42PM -0800, Katherina O'Connor wrote:
>> > Usage: cygqrysrv
>> 
>> >Cool, afaik there is nothing like this included with >windows or the resource kit.
>> 
>> ... apropos sc.exe (NT4 resource kit/1996) ?
>
>Yeah but sc (it's now shipped with XP, btw) has a disadvantage.
>It doesn't play nicely with CYGWIN=tty mode. That is a problem
>when connecting to a NT box with ssh for example.  So it would
>be nice to have a Cygwin native tool which handles all the
>service related stuff as sc does.

I've reworked the design slightly so that theoretically it could support
other operations than "query". Admittedly I have so far been thinking of
it as a companion to cygrunsrv but it's early days and the design can
easily be changed.

I wasn't sure there'd by any interest at all so I think what I need to
do now is compose a more detailed email. ;-)


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:20   ` cygqrysrv Guy Harrison
  2001-11-20  7:55     ` cygqrysrv Peter Wohlers
@ 2001-11-29 14:40     ` Guy Harrison
  1 sibling, 0 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-29 14:40 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
<gp@familiehaase.de> wrote:

>Hallo Katherina,
>
>Am 2001-11-25 um 21:33 schriebst du:
>
>>> Usage: cygqrysrv
>
>>>Cool, afaik there is nothing like this included with windows or the resource kit.
>
>> ... apropos sc.exe (NT4 resource kit/1996) ?
>
>Ok., more cool, I have it;)

>Guy, need a copy?

I have it already thanks. :-)

>$ sc.exe GetKeyName "O&O Defrag 2000"
>GetServiceKeyName Success!  Name = OOD2000
>
>Now I'm only missing one, how to get a list of ALL services with name
>& displayed name?

Er - pass! I can never remember its syntax - which was the initial
reason wanting my own version. Moreover, SC has another (infuriating)
feature. I'll elaborate on this in the next episode <g>


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:33 ` cygqrysrv Corinna Vinschen
  2001-11-20  7:31   ` cygqrysrv Guy Harrison
@ 2001-11-25 13:07   ` Corinna Vinschen
  1 sibling, 0 replies; 25+ messages in thread
From: Corinna Vinschen @ 2001-11-25 13:07 UTC (permalink / raw)
  To: cygwin

On Sun, Nov 25, 2001 at 12:26:42PM -0800, Katherina O'Connor wrote:
> > Usage: cygqrysrv
> 
> >Cool, afaik there is nothing like this included with >windows or the resource kit.
> 
> ... apropos sc.exe (NT4 resource kit/1996) ?

Yeah but sc (it's now shipped with XP, btw) has a disadvantage.
It doesn't play nicely with CYGWIN=tty mode.  That is a problem
when connecting to a NT box with ssh for example.  So it would
be nice to have a Cygwin native tool which handles all the
service related stuff as sc does.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
  2001-11-20  7:20   ` cygqrysrv Guy Harrison
@ 2001-11-25 12:55   ` Gerrit P. Haase
  1 sibling, 0 replies; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-25 12:55 UTC (permalink / raw)
  To: swamp-dog; +Cc: cygwin

Hallo Katherina,

Am 2001-11-25 um 21:33 schriebst du:

>> Usage: cygqrysrv

>>Cool, afaik there is nothing like this included with windows or the resource kit.

> ... apropos sc.exe (NT4 resource kit/1996) ?

Ok., more cool, I have it;)

Guy, need a copy?

$ sc.exe GetKeyName "O&O Defrag 2000"
GetServiceKeyName Success!  Name = OOD2000

Now I'm only missing one, how to get a list of ALL services with name
& displayed name?

$ sc.exe
DESCRIPTION:
        SC is a command line program used for communicating with the
        NT Service Controller and services.
USAGE:
        sc <server> [command] [service name] <option1> <option2>...

        The option <server> has the form "\\ServerName"
        Further help on commands can be obtained by typing: "sc [command]"
        Commands:
          query-----------Queries the status for a service, or
                          enumerates the status for types of services.
          start-----------Starts a service.
          pause-----------Sends a PAUSE control request to a service.
          interrogate-----Sends an INTERROGATE control request to a service.
          continue--------Sends a CONTINUE control request to a service.
          stop------------Sends a STOP request to a service.
          config----------Changes the configuration of a service (persistant).
          qc--------------Queries the configuration information for a service.
          delete----------Deletes a service (from the registry).
          create----------Creates a service. (adds it to the registry).
          control---------Sends a control to a service.
          GetDisplayName--Gets the DisplayName for a service.
          GetKeyName------Gets the ServiceKeyName for a service.
          EnumDepend------Enumerates Service Dependencies.

        The following commands don't require a service name:
        sc <server> <command> <option>
          boot------------(ok | bad) Indicates whether the last boot should
                          be saved as the last-known-good boot configuration
          Lock------------Locks the Service Database
          QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
        sc start MyService

Would you like to see help for the QUERY command? [ y | n ]: y
QUERY OPTIONS :
        If the query command is followed by a service name, the status
        for that service is returned.  Further options do not apply in
        this case.  If the query command is followed nothing or one of
        the options listed below, the services are enumerated.
    type=    Type of services to enumerate (driver, service, all)
             (default = service)
    state=   State of services to enumerate (inactive, all)
             (default = active)
    bufsize= The size (in bytes) of the enumeration buffer
             (default = 1024)
    ri=      The resume index number at which to begin the enumeration
             (default = 0)
    group=   Service group to enumerate
             (default = all groups)
SYNTAX EXAMPLES
sc query                - Enumerates status for active services & drivers
sc query messenger      - Displays status for the messenger service
sc query type= driver   - Enumerates only active drivers
sc query type= service  - Enumerates only Win32 services
sc query state= all     - Enumerates only all services & drivers
sc query bufsize= 50    - Enumerates with a 50 byte buffer.
sc query ri= 14         - Enumerates with resume index = 14
sc query type= service type= interact - Enumerates all interactive services
sc query type= driver group= NDIS     - Enumerates all NDIS drivers


Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:24 cygqrysrv Katherina O'Connor
  2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
  2001-11-15 15:33 ` cygqrysrv Corinna Vinschen
@ 2001-11-25 12:26 ` Katherina O'Connor
  2 siblings, 0 replies; 25+ messages in thread
From: Katherina O'Connor @ 2001-11-25 12:26 UTC (permalink / raw)
  To: cygwin

> Usage: cygqrysrv

>Cool, afaik there is nothing like this included with >windows or the resource kit.

... apropos sc.exe (NT4 resource kit/1996) ?

-Kathy


______________________________________________________
Kein Schwein klickt mich an? Tragen Sie Ihre Site doch einfach im
Fireballkatalog ein! http://www.fireball.de/katalogeintrag.html



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:55     ` cygqrysrv Peter Wohlers
@ 2001-11-20 12:34       ` Gerrit P. Haase
  2001-11-30  0:51         ` cygqrysrv Gerrit P. Haase
  2001-11-29 15:16       ` cygqrysrv Peter Wohlers
  2001-12-01  5:13       ` cygqrysrv Guy Harrison
  2 siblings, 1 reply; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-20 12:34 UTC (permalink / raw)
  To: cygwin

Hallo Peter,

Am 2001-11-30 um 00:15 schriebst du:

>> >Now I'm only missing one, how to get a list of ALL services with name
>> >& displayed name?
>> 
>> Er - pass! I can never remember its syntax - which was the initial
>> reason wanting my own version. Moreover, SC has another (infuriating)
>> feature. I'll elaborate on this in the next episode <g>
>> 

> From the RK

>D:\>netsvc
> Controls and displays the status of services.

Oops, yes thats it, I should buy a book about the RK.  There are so
many tools...

Thanks,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-20  7:20   ` cygqrysrv Guy Harrison
@ 2001-11-20  7:55     ` Peter Wohlers
  2001-11-20 12:34       ` cygqrysrv Gerrit P. Haase
                         ` (2 more replies)
  2001-11-29 14:40     ` cygqrysrv Guy Harrison
  1 sibling, 3 replies; 25+ messages in thread
From: Peter Wohlers @ 2001-11-20  7:55 UTC (permalink / raw)
  To: swamp-dog; +Cc: cygwin



Guy Harrison wrote:
> 
> On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
> <gp@familiehaase.de> wrote:
> 
> >Now I'm only missing one, how to get a list of ALL services with name
> >& displayed name?
> 
> Er - pass! I can never remember its syntax - which was the initial
> reason wanting my own version. Moreover, SC has another (infuriating)
> feature. I'll elaborate on this in the next episode <g>
> 

From the RK

D:\>netsvc
Controls and displays the status of services.

NETSVC servicename \\computername /command

   servicename  Name of the service
   computername Name of the computer to administer.
   /command     One of the following:
                /query    Queries the status of the service.
                /start    Starts the service.
                /stop     Stops the service.
                /pause    Pauses the service.
                /continue Starts the paused service.
                /list     Lists installed services (omit servicename)

Example: NETSVC server  \\joes486 /query
Example: NETSVC "Clipbook Server" \\popcorn /stop
Example: NETSVC alerter \\joes486 /pause
Example: NETSVC /list \\joes486

Arguments are allowed in any order.


-- 
Peter Wohlers

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:33 ` cygqrysrv Corinna Vinschen
@ 2001-11-20  7:31   ` Guy Harrison
  2001-11-29 14:41     ` cygqrysrv Guy Harrison
  2001-11-25 13:07   ` cygqrysrv Corinna Vinschen
  1 sibling, 1 reply; 25+ messages in thread
From: Guy Harrison @ 2001-11-20  7:31 UTC (permalink / raw)
  To: Corinna Vinschen

On Sun, 25 Nov 2001 22:06:37 +0100, Corinna Vinschen <cygwin@cygwin.com>
wrote:

>On Sun, Nov 25, 2001 at 12:26:42PM -0800, Katherina O'Connor wrote:
>> > Usage: cygqrysrv
>> 
>> >Cool, afaik there is nothing like this included with >windows or the resource kit.
>> 
>> ... apropos sc.exe (NT4 resource kit/1996) ?
>
>Yeah but sc (it's now shipped with XP, btw) has a disadvantage.
>It doesn't play nicely with CYGWIN=tty mode. That is a problem
>when connecting to a NT box with ssh for example.  So it would
>be nice to have a Cygwin native tool which handles all the
>service related stuff as sc does.

I've reworked the design slightly so that theoretically it could support
other operations than "query". Admittedly I have so far been thinking of
it as a companion to cygrunsrv but it's early days and the design can
easily be changed.

I wasn't sure there'd by any interest at all so I think what I need to
do now is compose a more detailed email. ;-)


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
@ 2001-11-20  7:20   ` Guy Harrison
  2001-11-20  7:55     ` cygqrysrv Peter Wohlers
  2001-11-29 14:40     ` cygqrysrv Guy Harrison
  2001-11-25 12:55   ` cygqrysrv Gerrit P. Haase
  1 sibling, 2 replies; 25+ messages in thread
From: Guy Harrison @ 2001-11-20  7:20 UTC (permalink / raw)
  To: cygwin

On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
<gp@familiehaase.de> wrote:

>Hallo Katherina,
>
>Am 2001-11-25 um 21:33 schriebst du:
>
>>> Usage: cygqrysrv
>
>>>Cool, afaik there is nothing like this included with windows or the resource kit.
>
>> ... apropos sc.exe (NT4 resource kit/1996) ?
>
>Ok., more cool, I have it;)

>Guy, need a copy?

I have it already thanks. :-)

>$ sc.exe GetKeyName "O&O Defrag 2000"
>GetServiceKeyName Success!  Name = OOD2000
>
>Now I'm only missing one, how to get a list of ALL services with name
>& displayed name?

Er - pass! I can never remember its syntax - which was the initial
reason wanting my own version. Moreover, SC has another (infuriating)
feature. I'll elaborate on this in the next episode <g>


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:24 cygqrysrv Katherina O'Connor
  2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
@ 2001-11-15 15:33 ` Corinna Vinschen
  2001-11-20  7:31   ` cygqrysrv Guy Harrison
  2001-11-25 13:07   ` cygqrysrv Corinna Vinschen
  2001-11-25 12:26 ` cygqrysrv Katherina O'Connor
  2 siblings, 2 replies; 25+ messages in thread
From: Corinna Vinschen @ 2001-11-15 15:33 UTC (permalink / raw)
  To: cygwin

On Sun, Nov 25, 2001 at 12:26:42PM -0800, Katherina O'Connor wrote:
> > Usage: cygqrysrv
> 
> >Cool, afaik there is nothing like this included with >windows or the resource kit.
> 
> ... apropos sc.exe (NT4 resource kit/1996) ?

Yeah but sc (it's now shipped with XP, btw) has a disadvantage.
It doesn't play nicely with CYGWIN=tty mode.  That is a problem
when connecting to a NT box with ssh for example.  So it would
be nice to have a Cygwin native tool which handles all the
service related stuff as sc does.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
  2001-11-15 15:24 cygqrysrv Katherina O'Connor
@ 2001-11-15 15:32 ` Gerrit P. Haase
  2001-11-20  7:20   ` cygqrysrv Guy Harrison
  2001-11-25 12:55   ` cygqrysrv Gerrit P. Haase
  2001-11-15 15:33 ` cygqrysrv Corinna Vinschen
  2001-11-25 12:26 ` cygqrysrv Katherina O'Connor
  2 siblings, 2 replies; 25+ messages in thread
From: Gerrit P. Haase @ 2001-11-15 15:32 UTC (permalink / raw)
  To: swamp-dog; +Cc: cygwin

Hallo Katherina,

Am 2001-11-25 um 21:33 schriebst du:

>> Usage: cygqrysrv

>>Cool, afaik there is nothing like this included with windows or the resource kit.

> ... apropos sc.exe (NT4 resource kit/1996) ?

Ok., more cool, I have it;)

Guy, need a copy?

$ sc.exe GetKeyName "O&O Defrag 2000"
GetServiceKeyName Success!  Name = OOD2000

Now I'm only missing one, how to get a list of ALL services with name
& displayed name?

$ sc.exe
DESCRIPTION:
        SC is a command line program used for communicating with the
        NT Service Controller and services.
USAGE:
        sc <server> [command] [service name] <option1> <option2>...

        The option <server> has the form "\\ServerName"
        Further help on commands can be obtained by typing: "sc [command]"
        Commands:
          query-----------Queries the status for a service, or
                          enumerates the status for types of services.
          start-----------Starts a service.
          pause-----------Sends a PAUSE control request to a service.
          interrogate-----Sends an INTERROGATE control request to a service.
          continue--------Sends a CONTINUE control request to a service.
          stop------------Sends a STOP request to a service.
          config----------Changes the configuration of a service (persistant).
          qc--------------Queries the configuration information for a service.
          delete----------Deletes a service (from the registry).
          create----------Creates a service. (adds it to the registry).
          control---------Sends a control to a service.
          GetDisplayName--Gets the DisplayName for a service.
          GetKeyName------Gets the ServiceKeyName for a service.
          EnumDepend------Enumerates Service Dependencies.

        The following commands don't require a service name:
        sc <server> <command> <option>
          boot------------(ok | bad) Indicates whether the last boot should
                          be saved as the last-known-good boot configuration
          Lock------------Locks the Service Database
          QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
        sc start MyService

Would you like to see help for the QUERY command? [ y | n ]: y
QUERY OPTIONS :
        If the query command is followed by a service name, the status
        for that service is returned.  Further options do not apply in
        this case.  If the query command is followed nothing or one of
        the options listed below, the services are enumerated.
    type=    Type of services to enumerate (driver, service, all)
             (default = service)
    state=   State of services to enumerate (inactive, all)
             (default = active)
    bufsize= The size (in bytes) of the enumeration buffer
             (default = 1024)
    ri=      The resume index number at which to begin the enumeration
             (default = 0)
    group=   Service group to enumerate
             (default = all groups)
SYNTAX EXAMPLES
sc query                - Enumerates status for active services & drivers
sc query messenger      - Displays status for the messenger service
sc query type= driver   - Enumerates only active drivers
sc query type= service  - Enumerates only Win32 services
sc query state= all     - Enumerates only all services & drivers
sc query bufsize= 50    - Enumerates with a 50 byte buffer.
sc query ri= 14         - Enumerates with resume index = 14
sc query type= service type= interact - Enumerates all interactive services
sc query type= driver group= NDIS     - Enumerates all NDIS drivers


Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: cygqrysrv
@ 2001-11-15 15:24 Katherina O'Connor
  2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Katherina O'Connor @ 2001-11-15 15:24 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

> Usage: cygqrysrv

>Cool, afaik there is nothing like this included with >windows or the resource kit.

... apropos sc.exe (NT4 resource kit/1996) ?

-Kathy


______________________________________________________
Kein Schwein klickt mich an? Tragen Sie Ihre Site doch einfach im
Fireballkatalog ein! http://www.fireball.de/katalogeintrag.html




[-- Attachment #2: Type: text/plain, Size: 214 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2001-12-01 13:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 15:06 cygqrysrv Guy Harrison
2001-11-15 15:20 ` cygqrysrv Gerrit P. Haase
2001-11-25  3:50   ` cygqrysrv Gerrit P. Haase
2001-11-15 15:23 ` cygqrysrv Ralf Habacker
2001-11-20  7:46   ` cygqrysrv Guy Harrison
2001-11-29 14:41     ` cygqrysrv Guy Harrison
2001-11-25 12:05   ` cygqrysrv Ralf Habacker
2001-11-20  7:29 ` cygqrysrv Guy Harrison
2001-11-29 14:41   ` cygqrysrv Guy Harrison
2001-11-24 17:16 ` cygqrysrv Guy Harrison
2001-11-15 15:24 cygqrysrv Katherina O'Connor
2001-11-15 15:32 ` cygqrysrv Gerrit P. Haase
2001-11-20  7:20   ` cygqrysrv Guy Harrison
2001-11-20  7:55     ` cygqrysrv Peter Wohlers
2001-11-20 12:34       ` cygqrysrv Gerrit P. Haase
2001-11-30  0:51         ` cygqrysrv Gerrit P. Haase
2001-11-29 15:16       ` cygqrysrv Peter Wohlers
2001-12-01  5:13       ` cygqrysrv Guy Harrison
2001-11-29 14:40     ` cygqrysrv Guy Harrison
2001-11-25 12:55   ` cygqrysrv Gerrit P. Haase
2001-11-15 15:33 ` cygqrysrv Corinna Vinschen
2001-11-20  7:31   ` cygqrysrv Guy Harrison
2001-11-29 14:41     ` cygqrysrv Guy Harrison
2001-11-25 13:07   ` cygqrysrv Corinna Vinschen
2001-11-25 12:26 ` cygqrysrv Katherina O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).