网站首页  词典首页

请输入您要查询的函数:

 

术语 shsetunreadmailcount
释义 SHSetUnreadMailCount
语法:
HRESULT SHSetUnreadMailCount( LPCTSTR pszMailAddress,
DWORD dwCount,
LPCTSTR pszShellExecuteCommand
);
SHSetUnreadMailCount功能
存储当前用户的一个指定的电子邮件在注册表中的电子邮件帐户未读邮件数。
参数
pszMailAddress
[in]一个指向一个Unicode字符串,它包含当前用户的完整的电子邮件地址。
dwCount
[in]的未读邮件的数量。
pszShellExecuteCommand
[in] A pointer to a string in Unicode that contains the full text of a command that can be passed to ShellExecute.这个命令应该开始的电子邮件应用程序,它拥有的pszMailAddress中引用的帐户。
返回值
的hresult,其中包括以下可能的值。
S_OKThe调用成功完成。
E_OUTOFMEMORYInsufficient内存。
E_INVALIDARGInvalid字符串参数,无论是在pszMailAddress或pszShellExecuteCommand参数。
备注
此函数是出口到Shell32.dll中的Unicode,没有ANSI版本。
当此功能更新注册表,新的注册表项会自动打上了当前时间和日期。
如果这个函数被调用由不同的独立软件开发商(ISV)的指定相同的电子邮件名称,只有最后一次调用保存。也就是说,这个函数调用覆盖相同的电子邮件地址的任何以前保存的价值,即使电话是由不同独立软件开发商的。
这是建议,未读邮件的数量将只为用户帐户的主要收件箱设置。邮件在撒哈拉如草稿,或已删除邮件文件夹应该被忽略。
重要的是,电子邮件客户端不设置为0,未读邮件数应用程序退出时,因为这将导致未读邮件的数量为0错误报告。
因为此函数使用HKEY_CURRENT_USER,不应该由一个系统称为模拟用户进程。
功能信息
最低DLL版本 shell32.dll版本5.60或更高版本
自定义ImplementationNo
Headershellapi.h
import libraryshell32.lib
XP的最低经营systemsWindows
UnicodeImplemented为Unicode版本。
==英文原文==SHSetUnreadMailCount Function
Stores the current user's unread message count for a specified e-mail account in the registry.
Syntax
HRESULT SHSetUnreadMailCount( LPCTSTR pszMailAddress,
DWORD dwCount,
LPCTSTR pszShellExecuteCommand
);
Parameters
pszMailAddress
[in] A pointer to a string in Unicode that contains the current user's full e-mail address.
dwCount
[in] The number of unread messages.
pszShellExecuteCommand
[in] A pointer to a string in Unicode that contains the full text of a command that can be passed to ShellExecute. This command should start the e-mail application that owns the account referenced by pszMailAddress.
Return Value
HRESULT, which includes the following possible values.
S_OKThe call completed successfully.
E_OUTOFMEMORYInsufficient memory available.
E_INVALIDARGInvalid string argument in either the pszMailAddress or pszShellExecuteCommand parameters.
Remarks
This function is exported from Shell32.dll in Unicode; there is no ANSI version.
When this function updates the registry, the new registry entry is automatically stamped with the current time and date.
If this function is called by different independent software vendors (ISVs) that specify the same e-mail name, only the last call is saved. That is, calls to this function overwrite any previously saved value for the same e-mail address, even if the calls are made by different ISVs.
It is recommended that the count of unread messages be set only for the main Inbox of the users account. Mail in sub-folders such as Drafts,or Deleted Items should be ignored.
It is important that e-mail clients do not set the number of unread messages to 0 when the application exits, because this causes the number of unread messages to be erroneously reported as 0.
Because this function uses HKEY_CURRENT_USER, it should not be called by a system process impersonating a user.
Function Information
Minimum DLL Versionshell32.dll version 5.60 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.lib
Minimum operating systemsWindows XP
UnicodeImplemented as Unicode version.
==原始网址==http://msdn.microsoft.com/en-us/library/bb762252(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:50