Function winfsp_sys::FspServiceLoop

source ·
pub unsafe extern "C" fn FspServiceLoop(
    Service: *mut FSP_SERVICE
) -> NTSTATUS
Expand description

Run a service main loop.

This function starts and runs a service. It executes the Windows StartServiceCtrlDispatcher API to connect the service process to the Service Control Manager. If the Service Control Manager is not available (and console mode is allowed) it will enter console mode.

This function should be called once per process.

@param Service The service object. @return STATUS_SUCCESS or error code.