CWinAppEx::WriteSectionString

写入一个值的字符串数据在注册表。

BOOL WriteSectionString(
   LPCTSTR lpszSubSection,
   LPCTSTR lpszEntry,
   LPCTSTR lpszValue 
);

参数

  • [in] lpszSubSection
    包含注册表项的名称的字符串。

  • [in] lpszEntry
    包含值设置的字符串。

  • [in] lpszValue
    写入的字符串数据写入注册表。

返回值

TRUE,则此方法成功;否则 FALSE。

备注

lpszSubSection 参数不是注册表项的绝对路径。它是追加到默认注册表项的结束应用程序的相对路径。获取或设置默认注册表项,请使用方法 CWinAppEx::GetRegistryBaseCWinAppEx::SetRegistryBase,分别。

如果 lpszEntry 指定的值不存在 lpszSubSection下,该方法将创建它。

要求

标头: afxwinappex.h

请参见

参考

CWinAppEx选件类

层次结构图