11{
16 L"Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\example.com",
20
23
25 L"Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\example.com",
26 0,
30
31 DWORD dwValue, cbValue =
sizeof(dwValue);
35
37 cbValue = sizeof(FileTime);
41
43 cbValue = sizeof(szValue);
47
49
52
54 {
56 L"Software\\Microsoft\\Windows\\CurrentVersion\\UnreadMail\\example.com");
57 }
58}
#define ok_hex(expression, result)
#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)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
EXTERN_C HRESULT WINAPI SHSetUnreadMailCountW(_In_ PCWSTR pszMailAddress, _In_ DWORD dwCount, _In_ PCWSTR pszShellExecuteCommand)
#define REG_CREATED_NEW_KEY
#define HKEY_CURRENT_USER