ReactOS 0.4.17-dev-301-g9127a53
MapWin32ErrorToSTG.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Tests for MapWin32ErrorToSTG
5 * COPYRIGHT: Copyright 2026 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6 */
7
8#include <apitest.h>
9#include <shlwapi.h>
10
13
15{
16 HRESULT hr;
17 HINSTANCE hSHLWAPI;
18
19 hSHLWAPI = GetModuleHandleA("shlwapi");
21 GetProcAddress(hSHLWAPI, MAKEINTRESOURCEA(485));
23 {
24 skip("MapWin32ErrorToSTG not found\n");
25 return;
26 }
27
30
33
36
39
42
45}
HRESULT(WINAPI * FN_MapWin32ErrorToSTG)(HRESULT)
static FN_MapWin32ErrorToSTG s_fnMapWin32ErrorToSTG
#define ok_long(expression, result)
Definition: atltest.h:133
#define skip(...)
Definition: atltest.h:64
#define START_TEST(x)
Definition: atltest.h:75
HRESULT hr
Definition: delayimp.cpp:582
#define NULL
Definition: types.h:112
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define GetProcAddress(x, y)
Definition: compat.h:753
#define ERROR_ACCESS_DENIED
Definition: compat.h:97
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
EXTERN_C HRESULT WINAPI MapWin32ErrorToSTG(_In_ HRESULT hr)
Definition: utils.cpp:228
#define ERROR_ALREADY_EXISTS
Definition: disk.h:80
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
static HRESULT HRESULT_FROM_WIN32(unsigned int x)
Definition: winerror.h:210
#define ERROR_PATH_NOT_FOUND
Definition: winerror.h:228
#define STG_E_FILEALREADYEXISTS
Definition: winerror.h:3674
#define STG_E_FILENOTFOUND
Definition: winerror.h:3660
#define ERROR_FILE_EXISTS
Definition: winerror.h:287
#define STG_E_ACCESSDENIED
Definition: winerror.h:3663
#define MAKEINTRESOURCEA(i)
Definition: winuser.h:581