memex
Loading...
Searching...
No Matches
utility Namespace Reference

This file contains utility functions for the memex library. More...

Functions

std::expected< std::uint32_t, memex::ErrorFindPidByName (typed::tstring_view processName)
 Find a process ID using its name.
 

Detailed Description

This file contains utility functions for the memex library.

Function Documentation

◆ FindPidByName()

std::expected< std::uint32_t, memex::Error > utility::FindPidByName ( typed::tstring_view processName)

Find a process ID using its name.

Parameters
processNameThe name of the process to search for.
Note
either a wide string or a narrow string can be used.
Returns
std::expected<std::uint32_t, memex::Error> The process ID if found, or an error if not.
Here is the caller graph for this function: