File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1061,6 +1061,10 @@ namespace SFSE::WinAPI
1061
1061
bool FreeLibrary (
1062
1062
HMODULE a_module) noexcept ;
1063
1063
1064
+ [[nodiscard]] std::uint32_t GetCurrentDirectory (
1065
+ std::uint32_t a_size,
1066
+ char * a_buffer) noexcept ;
1067
+
1064
1068
[[nodiscard]] void * GetCurrentModule () noexcept ;
1065
1069
1066
1070
[[nodiscard]] void * GetCurrentProcess () noexcept ;
Original file line number Diff line number Diff line change 15
15
#undef ExpandEnvironmentStrings
16
16
#undef FindFirstFile
17
17
#undef FindNextFile
18
+ #undef GetCurrentDirectory
18
19
#undef GetEnvironmentVariable
19
20
#undef GetFileVersionInfo
20
21
#undef GetFileVersionInfoSize
@@ -264,6 +265,16 @@ namespace SFSE::WinAPI
264
265
reinterpret_cast <::HMODULE>(a_module)));
265
266
}
266
267
268
+ std::uint32_t GetCurrentDirectory (
269
+ std::uint32_t a_bufferLen,
270
+ char * a_buffer) noexcept
271
+ {
272
+ return static_cast <std::uint32_t >(
273
+ GetCurrentDirectoryA (
274
+ a_bufferLen,
275
+ a_buffer));
276
+ }
277
+
267
278
void * GetCurrentModule () noexcept
268
279
{
269
280
return std::addressof (__ImageBase);
You can’t perform that action at this time.
0 commit comments