summaryrefslogtreecommitdiffstats
path: root/remoting/host/win/entry_point.cc
blob: 0d711f27807d54efeece6c29533675cf75759202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <windows.h>

#include "remoting/host/host_main.h"

// The common entry point for remoting_host.exe and remoting_desktop.exe. In
// order to be really small the app doesn't link against the CRT.
void HostEntryPoint() {
  // CommandLine::Init() ignores the passed parameters on Windows, so it is safe
  // to pass nullptr here.
  int exit_code = remoting::HostMain(0, nullptr);
  ExitProcess(exit_code);
}