ReactOS 0.4.17-dev-304-g69474b3
MapWin32ErrorToSTG.c File Reference
#include <apitest.h>
#include <shlwapi.h>
Include dependency graph for MapWin32ErrorToSTG.c:

Go to the source code of this file.

Typedefs

typedef HRESULT(WINAPIFN_MapWin32ErrorToSTG) (HRESULT)
 

Functions

 START_TEST (MapWin32ErrorToSTG)
 

Variables

static FN_MapWin32ErrorToSTG s_fnMapWin32ErrorToSTG = NULL
 

Typedef Documentation

◆ FN_MapWin32ErrorToSTG

typedef HRESULT(WINAPI * FN_MapWin32ErrorToSTG) (HRESULT)

Definition at line 11 of file MapWin32ErrorToSTG.c.

Function Documentation

◆ START_TEST()

START_TEST ( MapWin32ErrorToSTG  )

Definition at line 14 of file MapWin32ErrorToSTG.c.

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
HRESULT hr
Definition: delayimp.cpp:582
#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
#define ERROR_ALREADY_EXISTS
Definition: disk.h:80
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
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

Variable Documentation

◆ s_fnMapWin32ErrorToSTG

FN_MapWin32ErrorToSTG s_fnMapWin32ErrorToSTG = NULL
static

Definition at line 12 of file MapWin32ErrorToSTG.c.

Referenced by START_TEST().