Flutter Engine
The Flutter Engine
third_party
skia
tools
SkGetExecutablePath_win.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2022 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "
tools/SkGetExecutablePath.h
"
9
#include <windows.h>
10
11
std::string
SkGetExecutablePath
() {
12
char
executableFileBuf[
MAX_PATH
];
13
DWORD
executablePathLen = GetModuleFileNameA(
nullptr
, executableFileBuf,
MAX_PATH
);
14
return
(executablePathLen > 0) ? std::string(executableFileBuf) : std::string();
15
}
SkGetExecutablePath.h
SkGetExecutablePath
std::string SkGetExecutablePath()
Definition:
SkGetExecutablePath_win.cpp:11
MAX_PATH
#define MAX_PATH
Definition:
windows_types.h:148
DWORD
unsigned long DWORD
Definition:
windows_types.h:22
Generated on Sun Jun 23 2024 21:56:50 for Flutter Engine by
1.9.4