MCPcopy Create free account
hub / github.com/qilingframework/qiling / hook_PathFindFileNameA

Function hook_PathFindFileNameA

qiling/os/windows/dlls/shlwapi.py:46–52  ·  view source on GitHub ↗
(ql: Qiling, address: int, params)

Source from the content-addressed store, hash-verified

44 'pszPath' : POINTER # LPCSTR
45})
46def hook_PathFindFileNameA(ql: Qiling, address: int, params):
47 pointer = params["pszPath"]
48 pathname = ql.os.utils.read_cstring(pointer)
49 #params["pszPath"] = pathname
50
51 # return a pointer to the filename, or to the path if there is dir prefix
52 return pointer + len(f'\\{pathname}'.rsplit('\\', 1)[0])
53
54# LPCSTR PathFindFileNameW(
55# LPWSTR pszPath

Callers

nothing calls this directly

Calls 1

read_cstringMethod · 0.80

Tested by

no test coverage detected