This class provides basic system functionalities on windows platforms.
More...
#include <System.h>
|
| static IO::Directory | currentDirectory () |
| | Returns the current directory used for this process.
|
| static IO::Directory | processDirectory () |
| | Returns the process directory used for this process.
|
| static HMODULE | currentLibraryModule () |
| | Returns the handle to the calling module (a runtime library).
|
| static std::wstring | moduleName (const HMODULE handle) |
| | Returns the corresponding name (the filename) of a given module handle.
|
| static std::string | environmentVariable (const std::string &variable, const bool removeQuotes=true) |
| | Returns a defined environment variable.
|
This class provides basic system functionalities on windows platforms.
◆ currentDirectory()
Returns the current directory used for this process.
- Returns
- Current directory
◆ currentLibraryModule()
| HMODULE Ocean::Platform::Win::System::currentLibraryModule |
( |
| ) |
|
|
static |
Returns the handle to the calling module (a runtime library).
This function returns nullptr if the calling module is an application.
Every valid module handle must be released by an explicit FreeLibrary() call.
- Returns
- The handle of the calling module library, nullptr otherwise
◆ environmentVariable()
| std::string Ocean::Platform::Win::System::environmentVariable |
( |
const std::string & | variable, |
|
|
const bool | removeQuotes = true ) |
|
static |
Returns a defined environment variable.
- Parameters
-
| variable | Environment variable to return |
| removeQuotes | Determines whether all beginning and ending quotes are removed from the environment variable, if existent |
- Returns
- Specified environment variable
◆ moduleName()
| std::wstring Ocean::Platform::Win::System::moduleName |
( |
const HMODULE | handle | ) |
|
|
static |
Returns the corresponding name (the filename) of a given module handle.
- Parameters
-
| handle | The handle for that the corresponding name is returned |
- Returns
- Resulting handle handle, if any
◆ processDirectory()
Returns the process directory used for this process.
- Returns
- Process directory
The documentation for this class was generated from the following file: