doc/WinFsp-API-launch.h.md
WinFsp Launch API.
In order to use the WinFsp Launch API a program must include <winfsp/launch.h> and link with the winfsp_x64.dll (or winfsp_x86.dll) library.
FSP_API NTSTATUS FspLaunchCallLauncherPipe(
WCHAR Command,
ULONG Argc,
PWSTR *Argv,
ULONG *Argl,
PWSTR Buffer,
PULONG PSize,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
Discussion
This function is used to send a command to the launcher and receive a response.
</blockquote> </details> <details> <summary> <b>FspLaunchCallLauncherPipeEx</b> - Call launcher pipe. </summary> <blockquote>FSP_API NTSTATUS FspLaunchCallLauncherPipeEx(
WCHAR Command,
ULONG Argc,
PWSTR *Argv,
ULONG *Argl,
PWSTR Buffer,
PULONG PSize,
BOOLEAN AllowImpersonation,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
Discussion
This function is used to send a command to the launcher and receive a response.
</blockquote> </details> <details> <summary> <b>FspLaunchGetInfo</b> - Get information about a service instance. </summary> <blockquote>FSP_API NTSTATUS FspLaunchGetInfo(
PWSTR ClassName,
PWSTR InstanceName,
PWSTR Buffer,
PULONG PSize,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
Discussion
The information is a list of NULL-terminated strings: the class name of the service instance, the instance name of the service instance and the full command line used to start the service instance.
</blockquote> </details> <details> <summary> <b>FspLaunchGetNameList</b> - List service instances. </summary> <blockquote>FSP_API NTSTATUS FspLaunchGetNameList(
PWSTR Buffer,
PULONG PSize,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
Discussion
The information is a list of pairs of NULL-terminated strings. Each pair contains the class name and instance name of a service instance. All currently running service instances are listed.
</blockquote> </details> <details> <summary> <b>FspLaunchStart</b> - Start a service instance. </summary> <blockquote>FSP_API NTSTATUS FspLaunchStart(
PWSTR ClassName,
PWSTR InstanceName,
ULONG Argc,
PWSTR *Argv,
BOOLEAN HasSecret,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
</blockquote> </details> <details> <summary> <b>FspLaunchStartEx</b> - Start a service instance. </summary> <blockquote>FSP_API NTSTATUS FspLaunchStartEx(
PWSTR ClassName,
PWSTR InstanceName,
ULONG Argc,
PWSTR *Argv,
BOOLEAN HasSecret,
BOOLEAN AllowImpersonation,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
</blockquote> </details> <details> <summary> <b>FspLaunchStop</b> - Stop a service instance. </summary> <blockquote>FSP_API NTSTATUS FspLaunchStop(
PWSTR ClassName,
PWSTR InstanceName,
PULONG PLauncherError);
Parameters
Return Value
STATUS_SUCCESS if the command is sent successfully to the launcher, even if the launcher returns an error. Other status codes indicate a communication error. Launcher errors are reported through PLauncherError.
</blockquote> </details>FSP_API VOID FspLaunchRegFreeRecord(
FSP_LAUNCH_REG_RECORD *Record);
Parameters
See Also
FSP_API NTSTATUS FspLaunchRegGetRecord(
PWSTR ClassName,
PWSTR Agent,
FSP_LAUNCH_REG_RECORD **PRecord);
Parameters
Return Value
STATUS_SUCCESS or error code.
See Also
FSP_API NTSTATUS FspLaunchRegSetRecord(
PWSTR ClassName,
const FSP_LAUNCH_REG_RECORD *Record);
Parameters
Return Value
STATUS_SUCCESS or error code.
</blockquote> </details>typedef struct _FSP_LAUNCH_REG_RECORD {
PWSTR Agent;
PWSTR Executable;
PWSTR CommandLine;
PWSTR WorkDirectory;
PWSTR RunAs;
PWSTR Security;
PWSTR AuthPackage;
PWSTR Stderr;
PVOID Reserved0[4];
ULONG JobControl;
ULONG Credentials;
ULONG AuthPackageId;
ULONG Recovery;
ULONG Reserved1[4];
UINT8 Buffer[];
} FSP_LAUNCH_REG_RECORD;
Generated with <a href="https://github.com/billziss-gh/prettydoc">prettydoc</a> </sub>
</p>