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

Function shCustomGetFileAttributesW

source/dllmain.cpp:2923–2938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2921 }
2922
2923 DWORD WINAPI shCustomGetFileAttributesW(LPCWSTR lpFileName)
2924 {
2925 auto raddr = _ReturnAddress();
2926 auto bRecursive = isRecursive(raddr);
2927 if (!bRecursive && HasVirtualFiles() && IsVirtualFile(lpFileName))
2928 {
2929 if (GetVirtualFileByPath(lpFileName))
2930 {
2931 return FILE_ATTRIBUTE_NORMAL;
2932 }
2933 SetLastError(ERROR_FILE_NOT_FOUND);
2934 return INVALID_FILE_ATTRIBUTES;
2935 }
2936 auto r = GetFilePathForOverload(lpFileName, bRecursive);
2937 return mhGetFileAttributesW->get_original<decltype(GetFileAttributesW)>()(value_orW(r, lpFileName));
2938 }
2939
2940 BOOL WINAPI shCustomGetFileAttributesExA(LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
2941 {

Callers

nothing calls this directly

Calls 5

isRecursiveFunction · 0.85
HasVirtualFilesFunction · 0.85
IsVirtualFileFunction · 0.85
GetVirtualFileByPathFunction · 0.85
GetFilePathForOverloadFunction · 0.85

Tested by

no test coverage detected