You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.4 KiB
C++

2 years ago
/********************************************************************************
*
* Copyright (C) 1999-2000 SCADA Technology Control Co., Ltd. All rights reserved.
*
*
* [],
2 years ago
*
* : 2002/01/21
2 years ago
*
*
*
* $Name: $
*
* $Revision: 1.2 $
*
* $Date: 2006/08/04 03:37:33 $
*
* $State: Exp $
*
* $Log: conf_read_key.cpp,v $
* Revision 1.2 2006/08/04 03:37:33 zhuzhenhua
* no message
*
* Revision 1.1.2.1 2006/07/28 07:54:02 zhuzhenhua
* no message
*
* Revision 1.2 2003/01/02 03:14:51 scada
* trim substitution line
*
* Revision 1.1.1.1 2002/08/21 07:16:39 harold
* temporarily import
*
* Revision 1.8 2002/03/20 03:40:22 harold
* no message
*
* Revision 1.1.1.1 2002/03/15 13:43:21 harold
* no message
*
* Revision 1.1.1.1 2002/03/15 08:17:11 harold
* no message
*
* Revision 1.7 2002/01/23 06:07:22 harold
* no message
*
* Revision 1.6 2002/01/23 05:43:55 harold
* no message
*
* Revision 1.5 2002/01/23 05:41:06 harold
* no message
*
* Revision 1.4 2002/01/23 03:35:41 harold
* no message
*
* Revision 1.3 2002/01/23 03:34:24 harold
* no message
*
* Revision 1.2 2002/01/23 03:26:24 harold
* no message
*
* Revision 1.1 2002/01/21 02:46:53 harold
* no message
*
*
*
********************************************************************************/
//#include <util/util.h>
#include "confrw_errno.h"
#include "confrw.h"
#include "_confrw.h"
#include "Profile_Hash.h"
/*
* [],
2 years ago
*
*
* handle --
* pszsec_name --
* pszkey_name --
* pszdefault -- , null,
* , , ,
* pbuf --
* buffer_length --
*
*
* SUCCESS --
* --
2 years ago
*
*/
int conf_read_key ( void * handle,
const char * pszsec_name,
const char * pszkey_name,
const char * pszdefault,
char * pbuf,
int buffer_length )
{
int len = buffer_length;
return get_pgcprofile_string ( (char *)pszsec_name,
(char *)pszkey_name,
(char *)pszdefault,
pbuf,
(pgcu32 *)&len,
(HPROFILE)*(int *)handle );
}