Skip to content

Latest commit

 

History

History
98 lines (71 loc) · 3.14 KB

nf-shellapi-shenumerateunreadmailaccountsw.md

File metadata and controls

98 lines (71 loc) · 3.14 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shellapi.SHEnumerateUnreadMailAccountsW
SHEnumerateUnreadMailAccountsW function (shellapi.h)
Enumerates the user accounts that have unread email. (Unicode)
SHEnumerateUnreadMailAccounts
SHEnumerateUnreadMailAccounts function [Windows Shell]
SHEnumerateUnreadMailAccountsW
_shell_SHEnumerateUnreadMailAccounts
shell.SHEnumerateUnreadMailAccounts
shellapi/SHEnumerateUnreadMailAccounts
shellapi/SHEnumerateUnreadMailAccountsW
shell\SHEnumerateUnreadMailAccounts.htm
shell
67ec8355-f902-4b71-972f-94e403701f96
12/05/2018
SHEnumerateUnreadMailAccounts, SHEnumerateUnreadMailAccounts function [Windows Shell], SHEnumerateUnreadMailAccountsA, SHEnumerateUnreadMailAccountsW, _shell_SHEnumerateUnreadMailAccounts, shell.SHEnumerateUnreadMailAccounts, shellapi/SHEnumerateUnreadMailAccounts, shellapi/SHEnumerateUnreadMailAccountsA, shellapi/SHEnumerateUnreadMailAccountsW
shellapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
SHEnumerateUnreadMailAccountsW (Unicode) and SHEnumerateUnreadMailAccountsA (ANSI)
Shell32.lib
Shell32.dll
Windows
19H1
SHEnumerateUnreadMailAccountsW
shellapi/SHEnumerateUnreadMailAccountsW
c++
APIRef
kbSyntax
DllExport
Shell32.dll
SHEnumerateUnreadMailAccounts
SHEnumerateUnreadMailAccountsA
SHEnumerateUnreadMailAccountsW

SHEnumerateUnreadMailAccountsW function

-description

Enumerates the user accounts that have unread email.

-parameters

-param hKeyUser [in, optional]

Type: HKEY

A valid HKEY for a given user.

-param dwIndex

Type: DWORD

The index of the user account.

-param pszMailAddress [out]

Type: LPTSTR

A pointer to a Unicode string that specifies the email address of an account belonging to the specified user.

-param cchMailAddress

Type: int

The number of characters in the email address.

-returns

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

The hKeyUser parameter is the HKEY for the root of the user's information, for example HKEY_CURRENT_USER, or any key enumerated under HKEY_USERS.

Note

The shellapi.h header defines SHEnumerateUnreadMailAccounts as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.