12#define DO_TEST(Res, hToken, TestStr, ExpStr, Len) \
14 BOOL ret = PathUnExpandEnvStringsForUserW((hToken), (TestStr), OutStr, Len); \
15 ok(ret == (Res), "Tested %s, expected returned value %d, got %d\n", \
16 wine_dbgstr_w((TestStr)), (Res), ret); \
18 ok(_wcsicmp(OutStr, (ExpStr)) == 0, "Tested %s, expected %s, got %s\n", \
19 wine_dbgstr_w((TestStr)), wine_dbgstr_w((ExpStr)), wine_dbgstr_w(OutStr)); \
35 skip(
"shlwapi.dll was not loaded\n");
44 trace(
"PathUnExpandEnvStringsForUserW is not public\n");
50 skip(
"PathUnExpandEnvStringsForUserW was not found\n");
54#define PathUnExpandEnvStringsForUserW (*pPathUnExpandEnvStringsForUserW)
#define DO_TEST(Res, hToken, TestStr, ExpStr, Len)
PATHUNEXPANDENVSTRINGSFORUSERW pPathUnExpandEnvStringsForUserW
BOOL(WINAPI * PATHUNEXPANDENVSTRINGSFORUSERW)(HANDLE hToken, LPCWSTR pszPath, LPWSTR pszUnExpanded, INT cchUnExpanded)
#define GetEnvironmentVariableW(x, y, z)
#define GetProcAddress(x, y)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
STRSAFEAPI StringCbCatW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)