AuroraRuntime/Source/Processes/Open.Win32.cpp

26 lines
541 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
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);
}
}