16 lines
402 B
C++
16 lines
402 B
C++
#include <winfsp/winfsp.h>
|
|
|
|
#include "seafile/fs/winfsp_adapter.hpp"
|
|
|
|
using namespace seafile::fs;
|
|
|
|
auto wmain(int argc, wchar_t** argv) -> int
|
|
{
|
|
if (!NT_SUCCESS(FspLoad(nullptr)))
|
|
return ERROR_DELAY_LOAD_FAILED;
|
|
|
|
FspDebugLogSetHandle(GetStdHandle(STD_ERROR_HANDLE));
|
|
|
|
return FspServiceRun(const_cast<PWSTR>(L"SeaDisk"), WinFSPAdapter::SvcStart, WinFSPAdapter::SvcStop, nullptr);
|
|
}
|