ReactOS 0.4.16-dev-88-ga65b6ae
|
#include <ntstatus.h>
#include <windows.h>
#include <shlwapi.h>
#include <winnt.h>
#include <winternl.h>
#include <winerror.h>
#include <stdio.h>
#include <initguid.h>
#include <shlguid.h>
#include <shobjidl.h>
#include <pseh/pseh2.h>
#include "wine/test.h"
#include "apphelp_apitest.h"
Go to the source code of this file.
Classes | |
struct | tagATTRINFO |
Typedefs | |
typedef struct tagATTRINFO | ATTRINFO |
typedef struct tagATTRINFO * | PATTRINFO |
Functions | |
static | BOOL (WINAPI *pApphelpCheckShellObject)(REFCLSID |
static ULONGLONG *static | LPCWSTR (WINAPI *pSdbTagToString)(TAG tag) |
static | HRESULT (WINAPI *pSdbGetAppPatchDir)(PVOID hsdb |
DEFINE_GUID (GUID_DATABASE_MSI, 0xd8ff6d16, 0x6a3a, 0x468a, 0x8b, 0x44, 0x01, 0x71, 0x4d, 0xdc, 0x49, 0xea) | |
DEFINE_GUID (GUID_DATABASE_SHIM, 0x11111111, 0x1111, 0x1111, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11) | |
DEFINE_GUID (GUID_DATABASE_DRIVERS, 0xf9ab2228, 0x3312, 0x4a73, 0xb6, 0xf9, 0x93, 0x6d, 0x70, 0xe1, 0x12, 0xef) | |
DEFINE_GUID (GUID_NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) | |
DEFINE_GUID (test_Microsoft_Browser_Architecture, 0xa5e46e3a, 0x8849, 0x11d1, 0x9d, 0x8c, 0x00, 0xc0, 0x4f, 0xc9, 0x9d, 0x61) | |
DEFINE_GUID (test_UserAssist, 0xdd313e04, 0xfeff, 0x11d1, 0x8e, 0xcd, 0x00, 0x00, 0xf8, 0x7a, 0x47, 0x0c) | |
DEFINE_GUID (CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4) | |
static void | test_ApphelpCheckShellObject (void) |
static void | test_SdbTagToString (void) |
static int | strcmp_wa (LPCWSTR strw, const char *stra) |
void | test_tag (TAG base, const char *names[], size_t upperlimit, int line) |
static void | test_SdbTagToStringAllTags (void) |
static void | test_GuidFunctions (void) |
static DWORD | find_tag (TAG tag) |
static void | expect_tag_skip_imp (PATTRINFO pattr, TAG tag) |
static void | expect_tag_empty_imp (PATTRINFO pattr, TAG tag) |
static void | expect_tag_dword_imp (PATTRINFO pattr, TAG tag, DWORD value) |
static void | expect_tag_qword_imp (PATTRINFO pattr, TAG tag, QWORD value) |
static void | expect_tag_str_imp (PATTRINFO pattr, TAG tag, const WCHAR *value) |
void | test_onefile (WCHAR *filename) |
static void | test_crc_imp (size_t len, DWORD expected) |
static void | test_crc2_imp (DWORD len, int fill, DWORD expected) |
static void | test_ApplicationAttributes (void) |
static void | test_SdbGetAppPatchDir (void) |
START_TEST (apphelp) | |
Variables | |
static HMODULE | hdll |
static | BOOL |
static PWSTR | GuidString |
static PWSTR SIZE_T | Length |
static GUID * | Guid |
static PATTRINFO * | ppAttrInfo |
static PATTRINFO LPDWORD | pdwAttrCount |
static LPWSTR | path |
static LPWSTR DWORD | size |
static DWORD | g_AttrInfoSize |
static const CLSID * | objects [] |
struct { | |
TAG base | |
DWORD upper_limit | |
DWORD line | |
DWORD min_ver | |
DWORD max_ver | |
const char * tags [7 *8] | |
} | data [] |
static TAG | g_Tags_26 [] |
static TAG | g_Tags_28 [] |
#define expect_tag_dword (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_tag_dword_imp |
#define expect_tag_empty (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_tag_empty_imp |
#define expect_tag_qword (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_tag_qword_imp |
#define expect_tag_skip (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_tag_skip_imp |
#define expect_tag_str (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_tag_str_imp |
#define RESOLVE | ( | fnc | ) | do { p##fnc = (void *) GetProcAddress(hdll, #fnc); ok(!!p##fnc, #fnc " not found.\n"); } while (0) |
#define TAG_16BIT_DESCRIPTION (0x17 | TAG_TYPE_STRINGREF) |
#define TAG_16BIT_MODULE_NAME (0x20 | TAG_TYPE_STRINGREF) |
#define TAG_BIN_FILE_VERSION (0x2 | TAG_TYPE_QWORD) |
#define TAG_BIN_PRODUCT_VERSION (0x3 | TAG_TYPE_QWORD) |
#define TAG_CHECKSUM (0x3 | TAG_TYPE_DWORD) |
#define TAG_COMPANY_NAME (0x9 | TAG_TYPE_STRINGREF) |
#define TAG_EXE_WRAPPER (0x31 | TAG_TYPE_DWORD) |
#define TAG_EXPORT_NAME (0x24 | TAG_TYPE_STRINGREF) |
#define TAG_FILE_DESCRIPTION (0x12 | TAG_TYPE_STRINGREF) |
#define TAG_FILE_VERSION (0x13 | TAG_TYPE_STRINGREF) |
#define TAG_INTERNAL_NAME (0x15 | TAG_TYPE_STRINGREF) |
#define TAG_LEGAL_COPYRIGHT (0x16 | TAG_TYPE_STRINGREF) |
#define TAG_LINK_DATE (0x1D | TAG_TYPE_DWORD) |
#define TAG_LINKER_VERSION (0x1C | TAG_TYPE_DWORD) |
#define TAG_MODULE_TYPE (0x6 | TAG_TYPE_DWORD) |
#define TAG_NAME (0x1 | TAG_TYPE_STRINGREF) |
#define TAG_ORIGINAL_FILENAME (0x14 | TAG_TYPE_STRINGREF) |
#define TAG_PE_CHECKSUM (0xB | TAG_TYPE_DWORD) |
#define TAG_PRODUCT_NAME (0x10 | TAG_TYPE_STRINGREF) |
#define TAG_PRODUCT_VERSION (0x11 | TAG_TYPE_STRINGREF) |
#define TAG_SIZE (0x1 | TAG_TYPE_DWORD) |
#define TAG_UPTO_BIN_FILE_VERSION (0xD | TAG_TYPE_QWORD) |
#define TAG_UPTO_BIN_PRODUCT_VERSION (0x6 | TAG_TYPE_QWORD) |
#define TAG_UPTO_LINK_DATE (0x1E | TAG_TYPE_DWORD) |
#define TAG_VER_LANGUAGE (0x12 | TAG_TYPE_DWORD) |
#define TAG_VERDATEHI (0x7 | TAG_TYPE_DWORD) |
#define TAG_VERDATELO (0x8 | TAG_TYPE_DWORD) |
#define TAG_VERFILEOS (0x9 | TAG_TYPE_DWORD) |
#define TAG_VERFILETYPE (0xA | TAG_TYPE_DWORD) |
#define test_crc (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_crc_imp |
#define test_crc2 (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_crc2_imp |
typedef struct tagATTRINFO ATTRINFO |
typedef struct tagATTRINFO * PATTRINFO |
DEFINE_GUID | ( | CLSID_InternetSecurityManager | , |
0x7b8a2d94 | , | ||
0x0ac9 | , | ||
0x11d1 | , | ||
0x89 | , | ||
0x6c | , | ||
0x00 | , | ||
0xc0 | , | ||
0x4f | , | ||
0xB6 | , | ||
0xbf | , | ||
0xc4 | |||
) |
DEFINE_GUID | ( | GUID_DATABASE_DRIVERS | , |
0xf9ab2228 | , | ||
0x3312 | , | ||
0x4a73 | , | ||
0xb6 | , | ||
0xf9 | , | ||
0x93 | , | ||
0x6d | , | ||
0x70 | , | ||
0xe1 | , | ||
0x12 | , | ||
0xef | |||
) |
DEFINE_GUID | ( | GUID_DATABASE_MSI | , |
0xd8ff6d16 | , | ||
0x6a3a | , | ||
0x468a | , | ||
0x8b | , | ||
0x44 | , | ||
0x01 | , | ||
0x71 | , | ||
0x4d | , | ||
0xdc | , | ||
0x49 | , | ||
0xea | |||
) |
DEFINE_GUID | ( | GUID_DATABASE_SHIM | , |
0x11111111 | , | ||
0x1111 | , | ||
0x1111 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | , | ||
0x11 | |||
) |
DEFINE_GUID | ( | GUID_NULL | , |
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DEFINE_GUID | ( | test_Microsoft_Browser_Architecture | , |
0xa5e46e3a | , | ||
0x8849 | , | ||
0x11d1 | , | ||
0x9d | , | ||
0x8c | , | ||
0x00 | , | ||
0xc0 | , | ||
0x4f | , | ||
0xc9 | , | ||
0x9d | , | ||
0x61 | |||
) |
DEFINE_GUID | ( | test_UserAssist | , |
0xdd313e04 | , | ||
0xfeff | , | ||
0x11d1 | , | ||
0x8e | , | ||
0xcd | , | ||
0x00 | , | ||
0x00 | , | ||
0xf8 | , | ||
0x7a | , | ||
0x47 | , | ||
0x0c | |||
) |
Definition at line 609 of file apphelp.c.
Referenced by test_crc2_imp(), and test_crc_imp().
Definition at line 623 of file apphelp.c.
Definition at line 582 of file apphelp.c.
Definition at line 637 of file apphelp.c.
Definition at line 558 of file apphelp.c.
Referenced by expect_tag_dword_imp(), expect_tag_empty_imp(), expect_tag_qword_imp(), expect_tag_skip_imp(), and expect_tag_str_imp().
START_TEST | ( | apphelp | ) |
Definition at line 1066 of file apphelp.c.
Definition at line 187 of file apphelp.c.
Referenced by _test_body_scroll(), _test_button_name(), _test_compatmode(), _test_doc_title(), _test_elem_title(), _test_form_action(), _test_form_encoding(), _test_form_method(), _test_form_name(), _test_framebase_marginheight(), _test_framebase_marginwidth(), _test_framebase_name(), _test_framebase_src(), _test_iframe_height(), _test_iframe_width(), _test_link_href(), _test_link_media(), _test_link_rel(), _test_link_rev(), _test_link_type(), _test_meta_charset(), _test_meta_content(), _test_meta_httpequiv(), _test_meta_name(), _test_node_get_value_str(), _test_script_text(), _test_table_cell_padding(), _test_table_cell_spacing(), PropertyNotifySink_OnChanged(), test_attr(), test_body_funs(), test_default_body(), test_default_selection(), test_doc_elem(), test_elems(), test_form_target(), test_framebase(), test_label_elem(), test_location(), test_navigator(), test_table_elem(), test_tag(), test_td_elem(), test_tr_elem(), and test_window().
Definition at line 124 of file apphelp.c.
Referenced by START_TEST().
Definition at line 758 of file apphelp.c.
Referenced by START_TEST().
Definition at line 728 of file apphelp.c.
Definition at line 470 of file apphelp.c.
Referenced by START_TEST().
Definition at line 666 of file apphelp.c.
Definition at line 1014 of file apphelp.c.
Referenced by START_TEST().
Definition at line 167 of file apphelp.c.
Referenced by START_TEST().
Definition at line 457 of file apphelp.c.
Referenced by START_TEST().
Definition at line 194 of file apphelp.c.
Referenced by test_SdbTagToStringAllTags().
struct { ... } data[] |
|
static |
Definition at line 99 of file apphelp.c.
Referenced by find_tag(), test_ApplicationAttributes(), test_crc2_imp(), and test_crc_imp().
|
static |
|
static |
Definition at line 526 of file apphelp.c.
Referenced by find_tag().
PWSTR GuidString |
Definition at line 93 of file apphelp.c.
Referenced by ApphelpCheckShellObject(), BcdOpenObject(), BiConvertRegistryDataToElement(), CreateNewVolumeName(), CreateNoDriveLetterEntry(), DumpAutomationTable(), EfiInitpCreateApplicationEntry(), GetInterfaceNameInternal(), CPortPinWavePci::HandleKsProperty(), CPortPinWaveRT::HandleKsProperty(), IKsClock_DispatchDeviceIoControl(), IKsFilter_DispatchDeviceIoControl(), IKsPin_DispatchDeviceIoControl(), InitializeMachineInformation(), IopOpenInterfaceKey(), IopStartRamdisk(), IoRegisterDeviceInterface(), IoSetDeviceInterfaceState(), KsCacheMedium(), KspCreatePin(), KspEnableEvent(), KspPinPropertyHandler(), KspReadMediaCategory(), KspValidateConnectRequest(), MMixerGetDeviceNameWithComponentId(), ok_keys_(), OpenRegistryHandlesFromSymbolicLink(), PciQueryInterface(), PcNewPort(), CUnregisterPhysicalConnection::QueryInterface(), CDrmPort2::QueryInterface(), CInterruptSync::QueryInterface(), CPortDMus::QueryInterface(), CPortTopology::QueryInterface(), CPortWaveCyclic::QueryInterface(), CPortWavePci::QueryInterface(), CPortWaveRT::QueryInterface(), CRegistryKey::QueryInterface(), CResourceList::QueryInterface(), CServiceGroup::QueryInterface(), CUnregisterSubdevice::QueryInterface(), CPortClsVersion::QueryInterface(), RamdiskCreateDiskDevice(), RtlStringFromGUID(), SdbGUIDFromString(), SdbGUIDToString(), SysAudioHandleProperty(), test_GetInterfaceName(), USBAudioInitComponentId(), WINTRUST_Guid2Wstr(), WINTRUST_ReadProviderFromReg(), WINTRUST_RemoveProviderFromReg(), WINTRUST_WriteProviderToReg(), WintrustAddActionID(), WintrustAddDefaultForUsage(), WintrustLoadFunctionPointers(), WintrustRemoveActionID(), WmipGUIDFromString(), and WmipOpenGuidObjectByName().
|
static |
Definition at line 90 of file apphelp.c.
Referenced by START_TEST(), and test_onefile().
DWORD max_ver |
Definition at line 215 of file apphelp.c.
Referenced by test_SdbTagToStringAllTags().
DWORD min_ver |
Definition at line 214 of file apphelp.c.
Referenced by test_SdbTagToStringAllTags(), and test_source_iface().
Definition at line 112 of file apphelp.c.
Referenced by d3dx_parse_effect_annotation(), d3dx_parse_effect_parameter(), d3dx_parse_effect_pass(), d3dx_parse_effect_technique(), d3dx_parse_init_value(), d3dx_parse_sampler(), d3dx_parse_state(), d3dx_parse_value(), ps_parser_load_field(), ps_parser_load_field_table(), sink_Indicate(), t1_load_keyword(), t42_load_keyword(), and test_ApphelpCheckShellObject().
Definition at line 216 of file apphelp.c.
Referenced by _test_items_ok(), _test_shape_ok(), Decompose_Curve(), FT_Outline_Decompose(), ft_stroke_border_export(), ft_stroke_border_get_counts(), FT_Stroker_ParseOutline(), load_OT_feature(), load_truetype_glyph(), psh_glyph_save_points(), sendmail_extended_mapi(), test_IProp(), test_ScriptGetFontFunctions(), test_ScriptShapeOpenType(), test_Sdb(), and test_SdbTagToStringAllTags().
DWORD upper_limit |
Definition at line 212 of file apphelp.c.
Referenced by ext3_max_bitmap_size(), ext3_max_size(), ext4_max_size(), and test_SdbTagToStringAllTags().