AuroraRuntime/Include/Aurora/Process/Paths.hpp
Jamie Reece Wilson 7046ccec11 [*] Refactor some APIs to use string views instead of strings
[+] Added new shell dirs API
[+] AuOptional<AuROString> GetUserDocuments()
[+] AuOptional<AuROString> GetUserDownloads()
[+] AuOptional<AuROString> GetUserDesktop()
[+] AuOptional<AuROString> GetUserPhotos()
[+] AuOptional<AuROString> GetUserVideos()
[+] AuOptional<AuROString> GetUserMusic()
[*] Amend IPCHandle::InitFromSharing (use string view)
[*] AuFS devices API should now use string views
[*] AuProcess, Process APIs now use string views (ModuleLoadRequest, LoadModule, GetProcAddressEx, etc)
[*] AuProcess, Paths APIs now use string views (GetProcessDirectory, GetProcessFullPath, etc)
[*] Fix XP using common my documents vs local user documents
2024-09-24 18:59:54 +01:00

36 lines
837 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: Paths.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
namespace Aurora::Process
{
/**
* @brief Fetches the applications current working directory
* @param path
* @return
*/
AUKN_SYM bool GetWorkingDirectory(AuString &path);
/**
* @brief Fetches the applications binary or package directory
* @return
*/
AUKN_SYM AuOptional<AuROString> GetProcessDirectory();
/**
* @brief Fetches the full-path of the applications binary, if known
* @return
*/
AUKN_SYM AuOptional<AuROString> GetProcessFullPath();
/**
* @brief Fetches the applications primary module name
* @return
*/
AUKN_SYM AuOptional<AuROString> GetProcessName();
}