pub unsafe extern "C" fn FspServiceCreate(
    ServiceName: PWSTR,
    OnStart: FSP_SERVICE_START,
    OnStop: FSP_SERVICE_STOP,
    OnControl: FSP_SERVICE_CONTROL,
    PService: *mut *mut FSP_SERVICE
) -> NTSTATUS
Expand description

Create a service object.

@param ServiceName The name of the service. @param OnStart Function to call when the service starts. @param OnStop Function to call when the service stops. @param OnControl Function to call when the service receives a service control code. @param PService [out] Pointer that will receive the service object created on successful return from this call. @return STATUS_SUCCESS or error code.