mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 21:39:05 +08:00
26 lines
600 B
C++
26 lines
600 B
C++
#include "metrics.h"
|
|
#include <filesystem>
|
|
#include "vcpkg_Checks.h"
|
|
#include "vcpkg_Files.h"
|
|
#include <Windows.h>
|
|
|
|
namespace fs = std::tr2::sys;
|
|
using namespace vcpkg;
|
|
|
|
int WINAPI
|
|
WinMain(
|
|
_In_ HINSTANCE hInstance,
|
|
_In_opt_ HINSTANCE hPrevInstance,
|
|
_In_ LPSTR lpCmdLine,
|
|
_In_ int nShowCmd
|
|
)
|
|
{
|
|
LPWSTR* szArgList;
|
|
int argCount;
|
|
|
|
szArgList = CommandLineToArgvW(GetCommandLineW(), &argCount);
|
|
|
|
Checks::check_exit(argCount == 2, "Requires exactly one argument, the path to the payload file");
|
|
Upload(Files::get_contents(szArgList[1]).get_or_throw());
|
|
}
|