CWinAppEx::WriteSectionInt

对注册表中写入数值数据。

BOOL WriteSectionInt(
   LPCTSTR lpszSubSection,
   LPCTSTR lpszEntry,
   int nValue 
);

参数

  • [in] lpszSubSection
    包含注册表项的相对路径的字符串。

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

  • [in] nValue
    写入的数据写入注册表。

返回值

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

备注

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

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

要求

标头: afxwinappex.h

请参见

参考

CWinAppEx选件类

层次结构图