15#define SHIM_NS ShimTest
16#include <setup_shim.inl>
80#define SHIM_NOTIFY_FN SHIM_OBJ_NAME(Notify)
81#define SHIM_NUM_HOOKS 2
82#define SHIM_SETUP_HOOKS \
83 SHIM_HOOK(0, "KERNEL32.DLL", "GetComputerNameA", SHIM_OBJ_NAME(GetComputerNameA)) \
84 SHIM_HOOK(1, "SHLWAPI.DLL", (PCSTR)23, SHIM_OBJ_NAME(SHStringFromGUIDA))
87#include <implement_shim.inl>
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define SHIM_INFO(fmt,...)
#define SHIM_WARN(fmt,...)
static LPSTR PULONG lpnSize
#define SHIM_MSG(fmt,...)
int WINAPI SHIM_OBJ_NAME() SHStringFromGUIDA(REFGUID guid, LPSTR lpszDest, INT cchMax)
BOOL(WINAPI * tGetComputerNameA)(LPSTR lpBuffer, LPDWORD lpnSize)
INT(WINAPI * tSHStringFromGUIDA)(REFGUID guid, LPSTR lpszDest, INT cchMax)
BOOL WINAPI SHIM_OBJ_NAME() GetComputerNameA(LPSTR lpBuffer, LPDWORD lpnSize)
BOOL WINAPI SHIM_OBJ_NAME() Notify(DWORD fdwReason, PVOID ptr)
STRSAFEAPI StringCchCatA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc)
STRSAFEAPI StringCchLengthA(STRSAFE_LPCSTR psz, size_t cchMax, size_t *pcchLength)
STRSAFEAPI StringCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc)