a child process with its handles, started and waited for; mmcss inside it is what a streaming thread of this process registers with the multimedia scheduler as
More...
#include <dx_sync.h>
|
| static bool | admin () |
| ::HANDLE | current () |
| | Windows current process bill thinks its a good idea to return pseudo handle -1 @ GetCurrentProcessHandle(). This converts the pseudo process handle into a real process handle that is valid in the context of other processes, or that can be inherited by other processes.
|
| static void | headless (bool own_process=true) noexcept |
| | redirects OS/CRT error reporting - unhandled fault, abort(), assert(), debug heap corruption - from a blocking dialog nobody's there to click, to a plain diagnostic on stderr instead, and keeps the terminal colour probe (dx::tty::color(), run at the colours' first use) from querying a terminal nobody answers for. Call once at startup of a process this call owns outright. own_process gates ::SetErrorMode(): it's a process-wide Win32 setting, not scoped to this module's own statically linked CRT instance like the rest of this function - pass false from code that may be loaded into a host process it doesn't own (e.g. an in-process COM DLL).
|
| static std::string | name (pid_t pid) |
| static std::string | path () |
| static std::string | path (const std::string &filename) |
| static ::DWORD | pid () noexcept |
| ::DWORD | session () |
a child process with its handles, started and waited for; mmcss inside it is what a streaming thread of this process registers with the multimedia scheduler as
◆ process() [1/4]
◆ process() [2/4]
| dx::process::process |
( |
const char * | path, |
|
|
const char * | cmd = nullptr ) |
|
inlinenoexcept |
◆ process() [3/4]
| dx::process::process |
( |
const char * | path, |
|
|
char * | cmd = nullptr ) |
|
inline |
◆ process() [4/4]
| dx::process::process |
( |
pid_t | id, |
|
|
::DWORD | access = PROCESS_QUERY_LIMITED_INFORMATION ) |
|
inline |
◆ ~process()
| dx::process::~process |
( |
| ) |
|
|
inline |
◆ admin()
| bool dx::process::admin |
( |
| ) |
|
|
inlinestatic |
◆ current()
Windows current process bill thinks its a good idea to return pseudo handle -1 @ GetCurrentProcessHandle(). This converts the pseudo process handle into a real process handle that is valid in the context of other processes, or that can be inherited by other processes.
◆ free()
|
|
inlinevirtualnoexceptinherited |
Reimplemented in dx::coreaudio::pod::stream< device_t, circular_t >, dx::shared::memory< buffer_t >, dx::shared::memory< buffer_t >, dx::shared::memory< circular_t >, dx::shared::memory< circular_t >, dx::shared::memory< dx::circular >, dx::shared::memory< dx::stream::clock::monitor >, dx::shared::memory< dx::stream::clock::monitor >, dx::stream::shared::stream< device_t, circular_t, super_stream_t, event_t >, dx::stream::shared::stream< device_t, circular_t >, dx::stream::shared::stream< device_t, circular_t, super_stream_t, event_t >, and dx::stream::shared::stream< device_t, dx::circular >.
◆ headless()
| void dx::process::headless |
( |
bool | own_process = true | ) |
|
|
inlinestaticnoexcept |
redirects OS/CRT error reporting - unhandled fault, abort(), assert(), debug heap corruption - from a blocking dialog nobody's there to click, to a plain diagnostic on stderr instead, and keeps the terminal colour probe (dx::tty::color(), run at the colours' first use) from querying a terminal nobody answers for. Call once at startup of a process this call owns outright. own_process gates ::SetErrorMode(): it's a process-wide Win32 setting, not scoped to this module's own statically linked CRT instance like the rest of this function - pass false from code that may be loaded into a host process it doesn't own (e.g. an in-process COM DLL).
◆ kill()
◆ name() [1/2]
| std::string dx::process::name |
( |
| ) |
|
|
inline |
◆ name() [2/2]
| std::string dx::process::name |
( |
pid_t | pid | ) |
|
|
inlinestatic |
◆ operator const os_event()
◆ operator os_event()
◆ operator::HANDLE()
◆ path() [1/2]
| std::string dx::process::path |
( |
| ) |
|
|
inlinestatic |
◆ path() [2/2]
| std::string dx::process::path |
( |
const std::string & | filename | ) |
|
|
inlinestatic |
◆ pid()
| ::DWORD dx::process::pid |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ session()
| ::DWORD dx::process::session |
( |
| ) |
|
|
inlinestatic |
◆ wait()
◆ handle
The documentation for this class was generated from the following file: