MCPcopy Create free account
hub / github.com/ThirteenAG/Ultimate-ASI-Loader / shCustomCreateFileA

Function shCustomCreateFileA

source/dllmain.cpp:2866–2874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2864 }
2865
2866 HANDLE WINAPI shCustomCreateFileA(LPCSTR lpFileName, DWORD dwAccess, DWORD dwSharing, LPSECURITY_ATTRIBUTES saAttributes, DWORD dwCreation, DWORD dwAttributes, HANDLE hTemplate)
2867 {
2868 auto raddr = _ReturnAddress();
2869 auto bRecursive = isRecursive(raddr);
2870 if (!bRecursive && HasVirtualFiles() && IsVirtualFile(lpFileName))
2871 return CreateVirtualHandle(lpFileName, dwAccess, dwCreation);
2872 auto r = GetFilePathForOverload(lpFileName, bRecursive);
2873 return mhCreateFileA->get_original<decltype(CreateFileA)>()(value_orA(r, lpFileName), dwAccess, dwSharing, saAttributes, dwCreation, dwAttributes, hTemplate);
2874 }
2875
2876 HANDLE WINAPI shCustomCreateFileW(LPCWSTR lpFileName, DWORD dwAccess, DWORD dwSharing, LPSECURITY_ATTRIBUTES saAttributes, DWORD dwCreation, DWORD dwAttributes, HANDLE hTemplate)
2877 {

Callers

nothing calls this directly

Calls 5

isRecursiveFunction · 0.85
HasVirtualFilesFunction · 0.85
IsVirtualFileFunction · 0.85
CreateVirtualHandleFunction · 0.85
GetFilePathForOverloadFunction · 0.85

Tested by

no test coverage detected