Flutter Engine
The Flutter Engine
Functions
SkGetExecutablePath_win.cpp File Reference
#include "tools/SkGetExecutablePath.h"
#include <windows.h>

Go to the source code of this file.

Functions

std::string SkGetExecutablePath ()
 

Function Documentation

◆ SkGetExecutablePath()

std::string SkGetExecutablePath ( )

Returns a fully-qualified path to the currently-running executable.

Definition at line 11 of file SkGetExecutablePath_win.cpp.

11 {
12 char executableFileBuf[MAX_PATH];
13 DWORD executablePathLen = GetModuleFileNameA(nullptr, executableFileBuf, MAX_PATH);
14 return (executablePathLen > 0) ? std::string(executableFileBuf) : std::string();
15}
Definition: ref_ptr.h:256
#define MAX_PATH
unsigned long DWORD
Definition: windows_types.h:22