|
ReactOS 0.4.17-dev-769-g1500a35
|
#include <apitest.h>#include <windef.h>#include <shlwapi.h>#include <pseh/pseh2.h>#include <shlobj.h>#include <shlwapi_undoc.h>
Go to the source code of this file.
Classes | |
| struct | _MY_KEY_NAME_INFORMATION |
Macros | |
| #define | ok_AqkPath(InitF, AssocKey, pszInit, pszExtra, hrExpected, pszExpectedWin32) |
Typedefs | |
| typedef enum _MY_KEY_INFORMATION_CLASS | MY_KEY_INFORMATION_CLASS |
| typedef struct _MY_KEY_NAME_INFORMATION | MY_KEY_NAME_INFORMATION |
| typedef struct _MY_KEY_NAME_INFORMATION * | PMY_KEY_NAME_INFORMATION |
| typedef NTSTATUS(__stdcall * | FN_NtQueryKey) (HANDLE, MY_KEY_INFORMATION_CLASS, PVOID, ULONG, PULONG) |
Enumerations | |
| enum | { HR_FNF = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) , HR_NF = HRESULT_FROM_WIN32(ERROR_NOT_FOUND) , HR_NOASSOC = HRESULT_FROM_WIN32(ERROR_NO_ASSOCIATION) , HR_ACCDENIED = HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) , AF_DEFSTAR = ASSOCF_INIT_DEFAULTTOSTAR , AF_DEFFOLDER = ASSOCF_INIT_DEFAULTTOFOLDER } |
| enum | _MY_KEY_INFORMATION_CLASS { MyKeyBasicInformation = 0 , MyKeyNodeInformation = 1 , MyKeyFullInformation = 2 , MyKeyNameInformation = 3 } |
Functions | |
| static void | Cleanup (void) |
| static BOOL | InitNtQueryKey (VOID) |
| static LPWSTR | GetKeyPath (HKEY hKey) |
| static BOOL | IsValidClassesRootPath (LPCWSTR path) |
| static HRESULT | SHELL_SetRegString (HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszName, UINT Type, LPCWSTR pszData) |
| static HRESULT | AQS (ASSOCF flags, ASSOCSTR str, LPCWSTR pszAsso, LPCWSTR pszExtra, LPWSTR pszOut) |
| static HRESULT | GetAqkPath (UINT InitF, ASSOCKEY AssocKey, LPCWSTR pszInit, LPCWSTR pszExtra, LPWSTR *ppszKey) |
| static HKEY | CreateClassesKey (HKEY hRoot) |
| static HKEY | CreateClassesSubKey (HKEY hRoot, LPCWSTR pszSubKey) |
| static void | TestClassKey (ASSOCKEY AssocKey) |
| static void | TEST_AssocKeys (void) |
| static void | TEST_AssocF_Flags (void) |
| static void | TEST_PszAssoc (void) |
| static void | TEST_InvalidArgs (void) |
| static void | TEST_ByExeName (void) |
| static void | TEST_Class (void) |
| static void | TEST_BaseClass (void) |
| static void | TEST_ShellExecClass (void) |
| START_TEST (AssocQueryKey) | |
Variables | |
| static const WCHAR | pszUniqueExt [] = L".RosTestExtShlwapi" |
| static const WCHAR | pszUniquePid [] = L"FEF31D544EA64C8EBC50B8719887688A" |
| static const WCHAR | pszUniquePid2 [] = L"88FDE0879CD24AEBBEB690988BD87706" |
| static FN_NtQueryKey | g_NtQueryKey = NULL |
| #define ok_AqkPath | ( | InitF, | |
| AssocKey, | |||
| pszInit, | |||
| pszExtra, | |||
| hrExpected, | |||
| pszExpectedWin32 | |||
| ) |
Definition at line 126 of file AssocQueryKey.c.
| typedef NTSTATUS(__stdcall * FN_NtQueryKey) (HANDLE, MY_KEY_INFORMATION_CLASS, PVOID, ULONG, PULONG) |
Definition at line 55 of file AssocQueryKey.c.
| anonymous enum |
| Enumerator | |
|---|---|
| HR_FNF | |
| HR_NF | |
| HR_NOASSOC | |
| HR_ACCDENIED | |
| AF_DEFSTAR | |
| AF_DEFFOLDER | |
Definition at line 30 of file AssocQueryKey.c.
| Enumerator | |
|---|---|
| MyKeyBasicInformation | |
| MyKeyNodeInformation | |
| MyKeyFullInformation | |
| MyKeyNameInformation | |
Definition at line 40 of file AssocQueryKey.c.
|
static |
Definition at line 109 of file AssocQueryKey.c.
Referenced by TestClassKey().
Definition at line 23 of file AssocQueryKey.c.
Referenced by START_TEST(), and TestClassKey().
Definition at line 140 of file AssocQueryKey.c.
Referenced by CreateClassesSubKey().
Definition at line 149 of file AssocQueryKey.c.
Referenced by TestClassKey().
|
static |
Definition at line 115 of file AssocQueryKey.c.
Referenced by TEST_ByExeName(), and TestClassKey().
Definition at line 67 of file AssocQueryKey.c.
Referenced by GetAqkPath(), TEST_AssocF_Flags(), TEST_AssocKeys(), TEST_PszAssoc(), and TEST_ShellExecClass().
Definition at line 58 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 92 of file AssocQueryKey.c.
Referenced by TEST_ShellExecClass().
|
static |
Definition at line 103 of file AssocQueryKey.c.
Referenced by TestClassKey().
| START_TEST | ( | AssocQueryKey | ) |
Definition at line 617 of file AssocQueryKey.c.
Definition at line 359 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 294 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 587 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 547 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 465 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 401 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 596 of file AssocQueryKey.c.
Referenced by START_TEST().
Definition at line 163 of file AssocQueryKey.c.
Referenced by TEST_Class(), and TEST_ShellExecClass().
|
static |
Definition at line 56 of file AssocQueryKey.c.
Referenced by GetKeyPath(), and InitNtQueryKey().
Definition at line 19 of file AssocQueryKey.c.
Referenced by Cleanup(), TEST_BaseClass(), and TestClassKey().
Definition at line 20 of file AssocQueryKey.c.
Referenced by Cleanup(), and TestClassKey().
Definition at line 21 of file AssocQueryKey.c.
Referenced by Cleanup(), and TestClassKey().