/*****************************************************************************
* Preamble
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
"(common values are: logger, sap, rc, http)")
vlc_module_begin();
"(common values are: logger, sap, rc, http)")
vlc_module_begin();
set_category( CAT_INTERFACE );
set_subcategory( SUBCAT_INTERFACE_CONTROL );
add_bool( "ntservice-install", 0, NULL,
set_category( CAT_INTERFACE );
set_subcategory( SUBCAT_INTERFACE_CONTROL );
add_bool( "ntservice-install", 0, NULL,
add_bool( "ntservice-uninstall", 0, NULL,
add_bool( "ntservice-uninstall", 0, NULL,
add_string ( "ntservice-name", VLCSERVICENAME, NULL,
add_string ( "ntservice-name", VLCSERVICENAME, NULL,
add_string ( "ntservice-options", NULL, NULL,
add_string ( "ntservice-options", NULL, NULL,
add_string ( "ntservice-extraintf", NULL, NULL,
add_string ( "ntservice-extraintf", NULL, NULL,
set_capability( "interface", 0 );
set_callbacks( Activate, Close );
set_capability( "interface", 0 );
set_callbacks( Activate, Close );
intf_StopThread( p_extraintf );
vlc_object_detach( p_extraintf );
vlc_object_release( p_extraintf );
intf_StopThread( p_extraintf );
vlc_object_detach( p_extraintf );
vlc_object_release( p_extraintf );
strcat( psz_path, " --ntservice-extraintf " );
strcat( psz_path, psz_extra );
}
strcat( psz_path, " --ntservice-extraintf " );
strcat( psz_path, psz_extra );
}
psz_extra = config_GetPsz( p_intf, "ntservice-options" );
if( psz_extra && *psz_extra )
psz_extra = config_GetPsz( p_intf, "ntservice-options" );
if( psz_extra && *psz_extra )
SC_HANDLE service =
CreateService( handle, p_sys->psz_service, p_sys->psz_service,
SC_HANDLE service =
CreateService( handle, p_sys->psz_service, p_sys->psz_service,
sprintf( psz_temp, "%s,none", psz_module );
/* Try to create the interface */
sprintf( psz_temp, "%s,none", psz_module );
/* Try to create the interface */
/* Initialization complete - report running status */
p_sys->status.dwCurrentState = SERVICE_RUNNING;
/* Initialization complete - report running status */
p_sys->status.dwCurrentState = SERVICE_RUNNING;