MCPcopy Create free account
hub / github.com/InWILL/Locale_Remulator / HookCreateFileA

Function HookCreateFileA

LRHook/LRHookFunc.cpp:1309–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307}
1308
1309HANDLE WINAPI HookCreateFileA(
1310 _In_ LPCSTR lpFileName,
1311 _In_ DWORD dwDesiredAccess,
1312 _In_ DWORD dwShareMode,
1313 _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
1314 _In_ DWORD dwCreationDisposition,
1315 _In_ DWORD dwFlagsAndAttributes,
1316 _In_opt_ HANDLE hTemplateFile
1317)
1318{
1319 LPWSTR lpFileNameW = MultiByteToWideCharInternal(lpFileName,Original.CodePage);
1320 HANDLE ret = CreateFileW(
1321 lpFileNameW,
1322 dwDesiredAccess,
1323 dwShareMode,
1324 lpSecurityAttributes,
1325 dwCreationDisposition,
1326 dwFlagsAndAttributes,
1327 hTemplateFile
1328 );
1329 if (lpFileNameW)
1330 {
1331 FreeStringInternal(lpFileNameW);
1332 }
1333 return ret;
1334}
1335
1336int WINAPI HookGetLocaleInfoA(
1337 _In_ LCID Locale,

Callers

nothing calls this directly

Calls 2

FreeStringInternalFunction · 0.85

Tested by

no test coverage detected