ReactOS 0.4.16-dev-106-g10b08aa
|
#include "ntstatus.h"
#include "wine/test.h"
#include <winbase.h>
#include <windef.h>
#include <winnt.h>
#include <winternl.h>
#include <winnls.h>
#include <stdio.h>
#include "oaidl.h"
#include "initguid.h"
Go to the source code of this file.
Classes | |
struct | detailed_info_t |
struct | info_in_assembly |
struct | runlevel_info_t |
struct | strsection_header |
struct | string_index |
struct | guidsection_header |
struct | guid_index |
struct | wndclass_redirect_data |
struct | dllredirect_data |
struct | tlibredirect_data |
struct | progidredirect_data |
struct | comclassredirect_data |
struct | clrclass_data |
struct | ifacepsredirect_data |
struct | clrsurrogate_data |
struct | _test_act_ctx_compat_info |
Macros | |
#define | WIN32_NO_STATUS |
#define | ARCH "none" |
#define | X(f) if (!(p##f = (void*)GetProcAddress(hLibrary, #f))) return FALSE; |
Typedefs | |
typedef struct _test_act_ctx_compat_info | test_act_ctx_compat_info |
Enumerations | |
enum | comclass_threadingmodel { ThreadingModel_Apartment = 1 , ThreadingModel_Free = 2 , ThreadingModel_No = 3 , ThreadingModel_Both = 4 , ThreadingModel_Neutral = 5 , ThreadingModel_Apartment = 1 , ThreadingModel_Free = 2 , ThreadingModel_No = 3 , ThreadingModel_Both = 4 , ThreadingModel_Neutral = 5 , ThreadingModel_Apartment = 1 , ThreadingModel_Free = 2 , ThreadingModel_No = 3 , ThreadingModel_Both = 4 , ThreadingModel_Neutral = 5 } |
enum | comclass_miscfields { MiscStatus = 1 , MiscStatusIcon = 2 , MiscStatusContent = 4 , MiscStatusThumbnail = 8 , MiscStatusDocPrint = 16 , MiscStatus = 1 , MiscStatusIcon = 2 , MiscStatusContent = 4 , MiscStatusThumbnail = 8 , MiscStatusDocPrint = 16 , MiscStatus = 1 , MiscStatusIcon = 2 , MiscStatusContent = 4 , MiscStatusThumbnail = 8 , MiscStatusDocPrint = 16 } |
enum | ifaceps_mask { NumMethods = 1 , BaseIface = 2 , NumMethods = 1 , BaseIface = 2 } |
Functions | |
static | BOOL (WINAPI *pActivateActCtx)(HANDLE |
static ULONG_PTR *static | HANDLE (WINAPI *pCreateActCtxA)(PCACTCTXA) |
static SIZE_T *static | VOID (WINAPI *pReleaseActCtx)(HANDLE) |
static | NTSTATUS (NTAPI *pRtlFindActivationContextSectionString)(DWORD |
static | BOOLEAN (NTAPI *pRtlCreateUnicodeStringFromAsciiz)(PUNICODE_STRING |
static | VOID (NTAPI *pRtlFreeUnicodeString)(PUNICODE_STRING) |
static const char * | strw (LPCWSTR x) |
DEFINE_GUID (IID_CoTest, 0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x33) | |
DEFINE_GUID (IID_CoTest2, 0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x34) | |
DEFINE_GUID (CLSID_clrclass, 0x22345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x33) | |
DEFINE_GUID (IID_TlibTest, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55) | |
DEFINE_GUID (IID_TlibTest2, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x56) | |
DEFINE_GUID (IID_TlibTest3, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x57) | |
DEFINE_GUID (IID_TlibTest4, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x58) | |
DEFINE_GUID (IID_Iifaceps, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55) | |
DEFINE_GUID (IID_Ibifaceps, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x57) | |
DEFINE_GUID (IID_Iifaceps2, 0x76666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55) | |
DEFINE_GUID (IID_Iifaceps3, 0x86666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55) | |
DEFINE_GUID (IID_Iiface, 0x96666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55) | |
DEFINE_GUID (IID_PS32, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x56) | |
DEFINE_GUID (VISTA_COMPAT_GUID, 0xe2011457, 0x1546, 0x43c5, 0xa5, 0xfe, 0x00, 0x8d, 0xee, 0xe3, 0xd3, 0xf0) | |
DEFINE_GUID (WIN7_COMPAT_GUID, 0x35138b9a, 0x5d96, 0x4fbd, 0x8e, 0x2d, 0xa2, 0x44, 0x02, 0x25, 0xf9, 0x3a) | |
DEFINE_GUID (WIN8_COMPAT_GUID, 0x4a2f28e3, 0x53b9, 0x4441, 0xba, 0x9c, 0xd6, 0x9d, 0x4a, 0x4a, 0x6e, 0x38) | |
DEFINE_GUID (WIN81_COMPAT_GUID, 0x1f676c76, 0x80e1, 0x4239, 0x95, 0xbb, 0x83, 0xd0, 0xf6, 0xd0, 0xda, 0x78) | |
DEFINE_GUID (WIN10_COMPAT_GUID, 0x8e0f7a12, 0xbfb3, 0x4fe8, 0xb9, 0xa5, 0x48, 0xfd, 0x50, 0xa1, 0x5a, 0x9a) | |
DEFINE_GUID (OTHER_COMPAT_GUID, 0x12345566, 0x1111, 0x2222, 0x33, 0x33, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44) | |
static int | strcmp_aw (LPCWSTR strw, const char *stra) |
static DWORD | strlen_aw (const char *str) |
static BOOL | create_manifest_file (const char *filename, const char *manifest, int manifest_len, const char *depfile, const char *depmanifest) |
static BOOL | create_wide_manifest (const char *filename, const char *manifest, BOOL fBOM, BOOL fReverse) |
static void | test_detailed_info (HANDLE handle, const detailed_info_t *exinfo, int line) |
static void | test_info_in_assembly (HANDLE handle, DWORD id, const info_in_assembly *exinfo, int line) |
static void | test_file_info (HANDLE handle, ULONG assid, ULONG fileid, LPCWSTR filename, int line) |
static void | test_runlevel_info (HANDLE handle, const runlevel_info_t *exinfo, int line) |
static HANDLE | test_create (const char *file) |
static void | test_create_and_fail (const char *manifest, const char *depmanifest, int todo, BOOL is_broken) |
static void | test_create_wide_and_fail (const char *manifest, BOOL fBOM) |
static void | test_create_fail (void) |
static void | test_find_dll_redirection (HANDLE handle, LPCWSTR libname, ULONG exid, int line) |
static void | test_find_window_class (HANDLE handle, LPCWSTR clsname, ULONG exid, int line) |
static void | test_find_string_fail (void) |
static void | test_basic_info (HANDLE handle, int line) |
static void | test_find_com_redirection (HANDLE handle, const GUID *clsid, const GUID *tlid, const WCHAR *progid, ULONG exid, int line) |
static void | test_find_ifaceps_redirection (HANDLE handle, const GUID *iid, const GUID *tlbid, const GUID *base, const GUID *ps32, ULONG exid, int line) |
static void | test_find_surrogate (HANDLE handle, const GUID *clsid, const WCHAR *name, const WCHAR *version, ULONG exid, int line) |
static void | test_find_progid_redirection (HANDLE handle, const GUID *clsid, const char *progid, ULONG exid, int line) |
static void | test_wndclass_section (void) |
static void | test_dllredirect_section (void) |
static void | test_typelib_section (void) |
static void | test_allowDelayedBinding (void) |
static void | test_actctx (void) |
static void | test_app_manifest (void) |
static HANDLE | create_manifest (const char *filename, const char *data, int line) |
static void | kernel32_find (ULONG section, const char *string_to_find, BOOL should_find, int line) |
static void | ntdll_find (ULONG section, const char *string_to_find, BOOL should_find, int line) |
static void | test_findsectionstring (void) |
static void | run_child_process (void) |
static void | init_paths (void) |
static void | write_manifest (const char *filename, const char *manifest) |
static void | delete_manifest_file (const char *filename) |
static void | test_CreateActCtx (void) |
static BOOL | init_funcs (void) |
static void | test_ZombifyActCtx (void) |
static void | test_no_compat (HANDLE handle, int line) |
static void | test_with_compat (HANDLE handle, DWORD num_compat, const GUID *expected_compat[], int line) |
static void | test_compatibility (void) |
START_TEST (actctx) | |
Definition at line 1371 of file actctx.c.
Definition at line 1363 of file actctx.c.
Enumerator | |
---|---|
NumMethods | |
BaseIface | |
NumMethods | |
BaseIface |
Definition at line 2320 of file actctx.c.
Referenced by test_findsectionstring(), and test_ZombifyActCtx().
|
static |
Definition at line 486 of file actctx.c.
Referenced by create_manifest(), create_wide_manifest(), run_child_process(), test_actctx(), test_allowDelayedBinding(), test_compatibility(), test_create_and_fail(), test_dllredirect_section(), test_LoadRegTypeLib(), test_typelib_section(), and test_wndclass_section().
|
static |
Definition at line 522 of file actctx.c.
Referenced by test_actctx(), and test_create_wide_and_fail().
DEFINE_GUID | ( | CLSID_clrclass | , |
0x22345678 | , | ||
0x1234 | , | ||
0x5678 | , | ||
0x12 | , | ||
0x34 | , | ||
0x11 | , | ||
0x11 | , | ||
0x22 | , | ||
0x22 | , | ||
0x33 | , | ||
0x33 | |||
) |
DEFINE_GUID | ( | IID_CoTest | , |
0x12345678 | , | ||
0x1234 | , | ||
0x5678 | , | ||
0x12 | , | ||
0x34 | , | ||
0x11 | , | ||
0x11 | , | ||
0x22 | , | ||
0x22 | , | ||
0x33 | , | ||
0x33 | |||
) |
DEFINE_GUID | ( | IID_CoTest2 | , |
0x12345678 | , | ||
0x1234 | , | ||
0x5678 | , | ||
0x12 | , | ||
0x34 | , | ||
0x11 | , | ||
0x11 | , | ||
0x22 | , | ||
0x22 | , | ||
0x33 | , | ||
0x34 | |||
) |
DEFINE_GUID | ( | IID_Ibifaceps | , |
0x66666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x57 | |||
) |
DEFINE_GUID | ( | IID_Iiface | , |
0x96666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | |||
) |
DEFINE_GUID | ( | IID_Iifaceps | , |
0x66666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | |||
) |
DEFINE_GUID | ( | IID_Iifaceps2 | , |
0x76666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | |||
) |
DEFINE_GUID | ( | IID_Iifaceps3 | , |
0x86666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | |||
) |
DEFINE_GUID | ( | IID_PS32 | , |
0x66666666 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x56 | |||
) |
DEFINE_GUID | ( | IID_TlibTest | , |
0x99999999 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | |||
) |
DEFINE_GUID | ( | IID_TlibTest2 | , |
0x99999999 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x56 | |||
) |
DEFINE_GUID | ( | IID_TlibTest3 | , |
0x99999999 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x57 | |||
) |
DEFINE_GUID | ( | IID_TlibTest4 | , |
0x99999999 | , | ||
0x8888 | , | ||
0x7777 | , | ||
0x66 | , | ||
0x66 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x55 | , | ||
0x58 | |||
) |
DEFINE_GUID | ( | OTHER_COMPAT_GUID | , |
0x12345566 | , | ||
0x1111 | , | ||
0x2222 | , | ||
0x33 | , | ||
0x33 | , | ||
0x44 | , | ||
0x44 | , | ||
0x44 | , | ||
0x44 | , | ||
0x44 | , | ||
0x44 | |||
) |
DEFINE_GUID | ( | VISTA_COMPAT_GUID | , |
0xe2011457 | , | ||
0x1546 | , | ||
0x43c5 | , | ||
0xa5 | , | ||
0xfe | , | ||
0x00 | , | ||
0x8d | , | ||
0xee | , | ||
0xe3 | , | ||
0xd3 | , | ||
0xf0 | |||
) |
DEFINE_GUID | ( | WIN10_COMPAT_GUID | , |
0x8e0f7a12 | , | ||
0xbfb3 | , | ||
0x4fe8 | , | ||
0xb9 | , | ||
0xa5 | , | ||
0x48 | , | ||
0xfd | , | ||
0x50 | , | ||
0xa1 | , | ||
0x5a | , | ||
0x9a | |||
) |
DEFINE_GUID | ( | WIN7_COMPAT_GUID | , |
0x35138b9a | , | ||
0x5d96 | , | ||
0x4fbd | , | ||
0x8e | , | ||
0x2d | , | ||
0xa2 | , | ||
0x44 | , | ||
0x02 | , | ||
0x25 | , | ||
0xf9 | , | ||
0x3a | |||
) |
DEFINE_GUID | ( | WIN81_COMPAT_GUID | , |
0x1f676c76 | , | ||
0x80e1 | , | ||
0x4239 | , | ||
0x95 | , | ||
0xbb | , | ||
0x83 | , | ||
0xd0 | , | ||
0xf6 | , | ||
0xd0 | , | ||
0xda | , | ||
0x78 | |||
) |
DEFINE_GUID | ( | WIN8_COMPAT_GUID | , |
0x4a2f28e3 | , | ||
0x53b9 | , | ||
0x4441 | , | ||
0xba | , | ||
0x9c | , | ||
0xd6 | , | ||
0x9d | , | ||
0x4a | , | ||
0x4a | , | ||
0x6e | , | ||
0x38 | |||
) |
Definition at line 2515 of file actctx.c.
Referenced by test_CreateActCtx().
Definition at line 2651 of file actctx.c.
Referenced by START_TEST().
Definition at line 2476 of file actctx.c.
Referenced by START_TEST().
|
static |
Definition at line 2333 of file actctx.c.
Referenced by test_findsectionstring().
|
static |
Definition at line 2383 of file actctx.c.
Referenced by test_findsectionstring().
Definition at line 2438 of file actctx.c.
Referenced by START_TEST().
START_TEST | ( | actctx | ) |
Definition at line 2922 of file actctx.c.
Definition at line 472 of file actctx.c.
Referenced by test_info_in_assembly().
Definition at line 49 of file actctx.c.
Referenced by exec_fontname(), get_doc_string(), html_src_compare(), is_prefix_wa(), str_eq_wa(), strcmp_aw(), strcmp_wa(), stricmp_wa(), test_detailed_info(), test_HexFromBin(), test_info_in_assembly(), and wstr_contains().
Definition at line 1970 of file actctx.c.
Referenced by START_TEST().
Definition at line 1947 of file actctx.c.
Referenced by test_actctx().
Definition at line 2302 of file actctx.c.
Referenced by START_TEST().
Definition at line 1327 of file actctx.c.
Referenced by test_actctx(), test_allowDelayedBinding(), test_app_manifest(), and test_compatibility().
Definition at line 2800 of file actctx.c.
Referenced by START_TEST().
|
static |
Definition at line 955 of file actctx.c.
Referenced by test_create_fail().
Definition at line 1004 of file actctx.c.
Referenced by START_TEST().
Definition at line 984 of file actctx.c.
Referenced by test_create_fail().
Definition at line 2524 of file actctx.c.
Referenced by START_TEST().
|
static |
Definition at line 575 of file actctx.c.
Referenced by test_actctx(), and test_app_manifest().
Definition at line 1823 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 829 of file actctx.c.
|
static |
Definition at line 1414 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 1127 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 1572 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 1704 of file actctx.c.
Referenced by test_actctx().
Definition at line 1289 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 1643 of file actctx.c.
Referenced by test_actctx().
Definition at line 1192 of file actctx.c.
Referenced by test_actctx().
Definition at line 2405 of file actctx.c.
Referenced by START_TEST().
|
static |
Definition at line 716 of file actctx.c.
Referenced by test_actctx(), and test_app_manifest().
Definition at line 2755 of file actctx.c.
Referenced by test_compatibility().
|
static |
Definition at line 898 of file actctx.c.
Referenced by test_actctx().
Definition at line 1878 of file actctx.c.
Referenced by test_actctx().
|
static |
Definition at line 2771 of file actctx.c.
Referenced by test_compatibility().
Definition at line 1758 of file actctx.c.