diff options
author | Luke Leighton <lkcl@samba.org> | 1999-01-27 20:31:58 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-01-27 20:31:58 +0000 |
commit | 05040640856b8eb1bebc26afa2a2e210241b4838 (patch) | |
tree | 51983e9edc476b5ba7b6e8dcaad9819e2aa99277 /source3/rpcclient/display.c | |
parent | f6c646467d3b6a4ad296e50a1bf89a36ce9551bc (diff) | |
download | samba-05040640856b8eb1bebc26afa2a2e210241b4838.tar.gz samba-05040640856b8eb1bebc26afa2a2e210241b4838.tar.xz samba-05040640856b8eb1bebc26afa2a2e210241b4838.zip |
Service Control Manager - service enumeration.
(This used to be commit f4dd8f6b566961890b2933b7a413241bf9b93797)
Diffstat (limited to 'source3/rpcclient/display.c')
-rw-r--r-- | source3/rpcclient/display.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c index 8a5844f9438..800b89e563b 100644 --- a/source3/rpcclient/display.c +++ b/source3/rpcclient/display.c @@ -1535,6 +1535,30 @@ void display_reg_key_info(FILE *out_hnd, enum action_type action, } } +/**************************************************************************** + display structure + ****************************************************************************/ +void display_svc_info(FILE *out_hnd, enum action_type action, ENUM_SRVC_STATUS *svc) +{ + switch (action) + { + case ACTION_HEADER: + { + break; + } + case ACTION_ENUMERATE: + { + fprintf(out_hnd, "\t%s:", unistr2(svc->uni_srvc_name .buffer)); /* service name unicode string */ + fprintf(out_hnd, "\t%s\n", unistr2(svc->uni_disp_name .buffer)); /* display name unicode string */ + break; + } + case ACTION_FOOTER: + { + break; + } + } +} + #if COPY_THIS_TEMPLATE /**************************************************************************** display structure |