/* utility structures for RPCs */
-/*
- * "struct SERVICE_STATUS" comes from librpc/gen_ndr/svcctl.h
- */
-
-typedef struct SERVICE_STATUS SERVICE_STATUS;
-
typedef struct {
UNISTR servicename;
UNISTR displayname;
- SERVICE_STATUS status;
+ struct SERVICE_STATUS status;
} ENUM_SERVICES_STATUS;
/* rpc structures */
typedef struct {
/* functions for enumerating subkeys and values */
- WERROR (*stop_service)( const char *service, SERVICE_STATUS *status );
+ WERROR (*stop_service)( const char *service, struct SERVICE_STATUS *status );
WERROR (*start_service) ( const char *service );
- WERROR (*service_status)( const char *service, SERVICE_STATUS *status );
+ WERROR (*service_status)( const char *service, struct SERVICE_STATUS *status );
} SERVICE_CONTROL_OPS;
/* structure to store the service handle information */
/*******************************************************************
********************************************************************/
-static bool svcctl_io_service_status( const char *desc, SERVICE_STATUS *status, prs_struct *ps, int depth )
+static bool svcctl_io_service_status( const char *desc, struct SERVICE_STATUS *status, prs_struct *ps, int depth )
{
prs_debug(ps, depth, desc, "svcctl_io_service_status");
size += size_of_relative_string( &status->servicename );
size += size_of_relative_string( &status->displayname );
- size += sizeof(SERVICE_STATUS);
+ size += sizeof(struct SERVICE_STATUS);
return size;
}
/*********************************************************************
*********************************************************************/
-static WERROR netlogon_status( const char *service, SERVICE_STATUS *service_status )
+static WERROR netlogon_status( const char *service, struct SERVICE_STATUS *service_status )
{
ZERO_STRUCTP( service_status );
/*********************************************************************
*********************************************************************/
-static WERROR netlogon_stop( const char *service, SERVICE_STATUS *service_status )
+static WERROR netlogon_stop( const char *service, struct SERVICE_STATUS *service_status )
{
netlogon_status( service, service_status );
/*********************************************************************
*********************************************************************/
-static WERROR rcinit_stop( const char *service, SERVICE_STATUS *status )
+static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status )
{
char *command = NULL;
int ret, fd;
/*********************************************************************
*********************************************************************/
-static WERROR rcinit_status( const char *service, SERVICE_STATUS *status )
+static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status )
{
char *command = NULL;
int ret, fd;
/*********************************************************************
*********************************************************************/
-static WERROR spoolss_stop( const char *service, SERVICE_STATUS *service_status )
+static WERROR spoolss_stop( const char *service, struct SERVICE_STATUS *service_status )
{
ZERO_STRUCTP( service_status );
/*********************************************************************
*********************************************************************/
-static WERROR spoolss_status( const char *service, SERVICE_STATUS *service_status )
+static WERROR spoolss_status( const char *service, struct SERVICE_STATUS *service_status )
{
ZERO_STRUCTP( service_status );
/*********************************************************************
*********************************************************************/
-static WERROR winreg_stop( const char *service, SERVICE_STATUS *service_status )
+static WERROR winreg_stop( const char *service, struct SERVICE_STATUS *service_status )
{
return WERR_ACCESS_DENIED;
}
/*********************************************************************
*********************************************************************/
-static WERROR winreg_status( const char *service, SERVICE_STATUS *service_status )
+static WERROR winreg_status( const char *service, struct SERVICE_STATUS *service_status )
{
ZERO_STRUCTP( service_status );
/*********************************************************************
*********************************************************************/
-static WERROR wins_status( const char *service, SERVICE_STATUS *service_status )
+static WERROR wins_status( const char *service, struct SERVICE_STATUS *service_status )
{
ZERO_STRUCTP( service_status );
/*********************************************************************
*********************************************************************/
-static WERROR wins_stop( const char *service, SERVICE_STATUS *service_status )
+static WERROR wins_stop( const char *service, struct SERVICE_STATUS *service_status )
{
wins_status( service, service_status );
uint32 *state )
{
POLICY_HND hService;
- SERVICE_STATUS service_status;
+ struct SERVICE_STATUS service_status;
WERROR result = WERR_GENERAL_FAILURE;
NTSTATUS status;
POLICY_HND hService;
WERROR result = WERR_GENERAL_FAILURE;
NTSTATUS status;
- SERVICE_STATUS service_status;
+ struct SERVICE_STATUS service_status;
uint32 state = 0;
/* Open the Service */
POLICY_HND hSCM, hService;
WERROR result = WERR_GENERAL_FAILURE;
NTSTATUS status;
- SERVICE_STATUS service_status;
+ struct SERVICE_STATUS service_status;
struct QUERY_SERVICE_CONFIG config;
uint32_t buf_size = sizeof(config);
uint32_t ret_size = 0;