src/srkcomm/manageService.cpp
BOOL QdUnloadDriver()
{
	BOOL ReturnValue = FALSE;

	LOG_TRACE(L"Entering");

	//
	// Unload the driver.
	//
	ReturnValue = QdStopService();
	if (ReturnValue == FALSE)
	{
		LOG_ERROR(L"TcStopService failed");
		goto Exit;
	}

	//
	// Delete the service.
	//
	ReturnValue = QdDeleteService();
	if (ReturnValue == FALSE)
	{
		LOG_ERROR(L"QdDeleteService failed");
		goto Exit;
	}

	ReturnValue = TRUE;

Exit:
	LOG_TRACE(L"Exiting");
	return ReturnValue;
}
///////////////////////////////////////////////////////////////////////////////
///
///  Unload the driver and delete the service
///
///////////////////////////////////////////////////////////////////////////////
Unload the driver and delete the service
Unload the driver and delete the service
BOOL QdUnloadDriver()
{
	BOOL ReturnValue = FALSE;
	LOG_TRACE(L"Entering");
	 Unload the driver.
	ReturnValue = QdStopService();
	if (ReturnValue == FALSE)
	{
		LOG_ERROR(L"TcStopService failed");
		goto Exit;
	}
	 Delete the service.
	ReturnValue = QdDeleteService();
	if (ReturnValue == FALSE)
	{
		LOG_ERROR(L"QdDeleteService failed");
		goto Exit;
	}
	ReturnValue = TRUE;
Exit:
	LOG_TRACE(L"Exiting");
	return ReturnValue;
}
BOOL QdUnloadDriver ( ) { BOOL ReturnValue = FALSE ; LOG_TRACE ( L" " ) ; ReturnValue = QdStopService ( ) ; if ( ReturnValue == FALSE ) { LOG_ERROR ( L" " ) ; goto Exit ; } ReturnValue = QdDeleteService ( ) ; if ( ReturnValue == FALSE ) { LOG_ERROR ( L" " ) ; goto Exit ; } ReturnValue = TRUE ; Exit : LOG_TRACE ( L" " ) ; return ReturnValue ; }
Unload the driver and delete the service
Unload the driver and delete the service
// // Unload the driver. // // // Delete the service. //