zoukankan      html  css  js  c++  java
  • MiniGUI

    从指定的配置文件当中获取指定的键值:
    int GUIAPI GetValueFromEtcFile (const char* pEtcFile, const char* pSection, const char* pKey, char* pValue, int iLen); 
    从指定的配置文件当中获取指定的整数型键值:
    int GUIAPI GetIntValueFromEtcFile (const char* pEtcFile, const char* pSection, const char* pKey, int* value);  
    将给定的键值保存到指定的配置文件当中,如果配置文件不存在,则将新建配置文件:
    int GUIAPI SetValueToEtcFile (const char* pEtcFile, const char* pSection, const char* pKey, char* pValue); 
    从指定的配置文件当中删除指定的段信息:
    int GUIAPI RemoveSectionInEtcFile (const char* pEtcFile, const char* pSection); 
     
    把指定的配置文件读入内存,返回一个配置对象句柄:
    GHANDLE GUIAPI LoadEtcFile (const char* pEtcFile);
    将内存中的配置文件信息保存到指定的文件中:
    int GUIAPI SaveEtcToFile (GHANDLE hEtc, const char* file_name); 
    释放内存中的配置文件信息:
    int GUIAPI UnloadEtcFile (GHANDLE hEtc); 
     
    从内存中获取指定的键值:
    int GUIAPI GetValueFromEtc (GHANDLE hEtc, const char* pSection, const char* pKey, char* pValue, int iLen); 
    从内存中获取指定的整数型键值:
    int GUIAPI GetIntValueFromEtc (GHANDLE hEtc, const char* pSection, const char* pKey, int *value); 
    将给定的键值保存到内存,只改变内存中的配置键值,不影响配置文件的内容:
    int GUIAPI SetValueToEtc (GHANDLE hEtc, const char* pSection, const char* pKey, char* pValue); 
     
    在内存中查找指定的字段,如果没有指定的字段存在,当参量bCreateNew为 TRUE时将新建一空字段:
    GHANDLE GUIAPI FindSectionInEtc (GHANDLE hEtc, const char* pSection, BOOL bCreateNew); 
    从内存中删除指定的段信息:
    int GUIAPI RemoveSectionInEtc (GHANDLE hEtc, const char* pSection);
    从内存中的指定段中获取指定的键值:
    int GUIAPI GetValueFromEtcSec (GHANDLE hSect, const char* pKey, char* pValue, int iLen); 
    从内存中的指定段中获取指定的整数型键值:
    int GUIAPI GetIntValueFromEtcSec (GHANDLE hSect, const char* pKey, int* pValue); 
    保存键值到内存中的指定段中:
    int GUIAPI SetValueToEtcSec (GHANDLE hSect, const char* pKey, char* pValue); 
  • 相关阅读:
    教师节快乐!
    来自学长同学分享的学习方法
    刘奕佳: 我的职校新生活 | 班级日常分享
    19级:班级日常分享 | 一天一瞬间
    珍惜、珍爱!
    19级:班级日常分享 | 一天一瞬间
    204787 ,194787 |0001 1131 0001 4226 7035 ![2480 ]
    1-N的自然数中,少了一个,找出这个数 小强斋
    获取某一天之前或者之后多少天的日期 小强斋
    获取某一天之前或者之后多少天的日期 小强斋
  • 原文地址:https://www.cnblogs.com/paullam/p/3683011.html
Copyright © 2011-2022 走看看