mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 13:15:39 +00:00
[SC] Implement missing query/queryex options
- PrintService: Print optional display name. - MainUsage: Print missing query options. - Parse query options and use them to enumerate services.
This commit is contained in:
parent
ef8b17ed0d
commit
4728157154
6 changed files with 261 additions and 116 deletions
|
@ -11,11 +11,15 @@
|
|||
|
||||
VOID
|
||||
PrintService(LPCTSTR lpServiceName,
|
||||
LPCTSTR lpDisplayName,
|
||||
LPSERVICE_STATUS_PROCESS pStatus,
|
||||
BOOL bExtended)
|
||||
{
|
||||
_tprintf(_T("SERVICE_NAME: %s\n"), lpServiceName);
|
||||
|
||||
if (lpDisplayName)
|
||||
_tprintf(_T("DISPLAY_NAME: %s\n"), lpDisplayName);
|
||||
|
||||
// Re-use PrintServiceStatus(), as SERVICE_STATUS_PROCESS is in fact an extension of SERVICE_STATUS.
|
||||
PrintServiceStatus((LPSERVICE_STATUS)pStatus);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue