add launcher project

This commit is contained in:
Bill Zissimopoulos
2016-05-09 16:20:52 -07:00
parent d3ff12bf60
commit 2a69ad6710
4 changed files with 260 additions and 0 deletions

40
src/launcher/launcher.c Normal file
View File

@ -0,0 +1,40 @@
/**
* @file launcher.c
*
* @copyright 2015-2016 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License version 3 as published by the
* Free Software Foundation.
*
* Licensees holding a valid commercial license may use this file in
* accordance with the commercial license agreement provided with the
* software.
*/
#include <winfsp/winfsp.h>
#define PROGNAME "winfsp-launcher"
NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
{
return STATUS_SUCCESS;
}
NTSTATUS SvcStop(FSP_SERVICE *Service)
{
return STATUS_SUCCESS;
}
int wmain(int argc, wchar_t **argv)
{
return FspServiceRun(L"" PROGNAME, SvcStart, SvcStop, 0);
}
int wmainCRTStartup(void)
{
return wmain(0, 0);
}