AuroraRuntime/Source/Processes/Open.Win32.cpp
2021-06-27 22:25:29 +01:00

26 lines
541 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: Open.Win32.cpp
Date: 2021-6-12
Author: Reece
***/
#include <RuntimeInternal.hpp>
#include "Processes.hpp"
#include "Open.Win32.hpp"
#include <shellapi.h>
#include <tlhelp32.h>
namespace Aurora::Processes
{
AUKN_SYM void OpenUri(const AuString &uri)
{
ShellExecuteW(NULL, NULL, Locale::ConvertFromUTF8(uri).c_str(), NULL, NULL, 0);
}
AUKN_SYM void OpenFile(const AuString &file)
{
OpenUri(file);
}
}