Go to the source code of this file.
◆ SetUnreadMailInfo()
static VOID SetUnreadMailInfo |
( |
PDWORD |
pdwDisposition | ) |
|
|
static |
Definition at line 10 of file SHGetUnreadMailCountW.cpp.
11{
14 HKEY_CURRENT_USER,
L"Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\example.com",
17
21
26
31
33}
#define ok_long(expression, result)
#define RegCloseKey(hKey)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
#define HKEY_CURRENT_USER
Referenced by START_TEST().
◆ START_TEST()
Definition at line 35 of file SHGetUnreadMailCountW.cpp.
36{
38
41
44
50
57
58 dwCount = 0;
62
65
67 dwCount = 0;
71
75
77 {
79 L"Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\example.com");
80 }
81}
static VOID SetUnreadMailInfo(PDWORD pdwDisposition)
#define ok_hex(expression, result)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
EXTERN_C HRESULT WINAPI SHGetUnreadMailCountW(_In_opt_ HKEY hKeyUser, _In_opt_ PCWSTR pszMailAddress, _Out_opt_ PDWORD pdwCount, _Inout_opt_ PFILETIME pFileTime, _Out_writes_opt_(cchShellExecuteCommand) PWSTR pszShellExecuteCommand, _In_ INT cchShellExecuteCommand)
#define REG_CREATED_NEW_KEY