Type Alias winfsp_sys::FSP_SERVICE
source · pub type FSP_SERVICE = _FSP_SERVICE;
Expand description
@group Service Framework
User mode file systems typically are run as Windows services. WinFsp provides an API to make the creation of Windows services easier. This API is provided for convenience and is not necessary to expose a user mode file system to Windows.
Aliased Type§
struct FSP_SERVICE {Show 13 fields
pub Version: u16,
pub UserContext: *mut c_void,
pub OnStart: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE, _: u32, _: *mut *mut u16) -> i32>,
pub OnStop: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE) -> i32>,
pub OnControl: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE, _: u32, _: u32, _: *mut c_void) -> i32>,
pub AcceptControl: u32,
pub ExitCode: u32,
pub StatusHandle: *mut SERVICE_STATUS_HANDLE__,
pub ServiceStatus: _SERVICE_STATUS,
pub ServiceStatusGuard: _RTL_CRITICAL_SECTION,
pub ServiceStopGuard: _RTL_CRITICAL_SECTION,
pub AllowConsoleMode: u8,
pub ServiceName: __IncompleteArrayField<u16>,
}
Fields§
§Version: u16
§UserContext: *mut c_void
§OnStart: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE, _: u32, _: *mut *mut u16) -> i32>
§OnStop: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE) -> i32>
§OnControl: Option<unsafe extern "C" fn(_: *mut _FSP_SERVICE, _: u32, _: u32, _: *mut c_void) -> i32>
§AcceptControl: u32
§ExitCode: u32
§StatusHandle: *mut SERVICE_STATUS_HANDLE__
§ServiceStatus: _SERVICE_STATUS
§ServiceStatusGuard: _RTL_CRITICAL_SECTION
§ServiceStopGuard: _RTL_CRITICAL_SECTION
§AllowConsoleMode: u8
§ServiceName: __IncompleteArrayField<u16>