Files
2022-10-26 12:25:11 +08:00

36 lines
1002 B
C++

#pragma once
#define INFOFILE_NAME "ServiceData.ini"
#define MAX_SERVICE_COUNT 10
class CServiceScriptInfo
{
public:
CServiceScriptInfo(void);
~CServiceScriptInfo(void);
private:
TCHAR m_szAppName[MAX_SERVICE_COUNT][MAX_PATH];
TCHAR m_szBinPath[MAX_SERVICE_COUNT][MAX_PATH];
TCHAR m_szServiceName[MAX_SERVICE_COUNT][MAX_PATH];
TCHAR m_szDisplayName[MAX_SERVICE_COUNT][MAX_PATH];
int m_nServiceCount; //현재 ini 파일에 설정된 서비스의 개수
public:
BOOL LoadData(void);
BOOL GetInfoFilePath( TCHAR* pszPath, int nSize );
int GetServiceCount(){ return m_nServiceCount; }
// nServiceNum은 ini에 파일에 설정된 번호이다.
void GetAppName( TCHAR* pszName, int nSize, int nServiceNum );
void GetBinPath( TCHAR* pszPath, int nSize, int nServiceNum );
void GetServiceName( TCHAR* pszName, int nSize, int nServiceNum );
void GetDisplayName( TCHAR* pszName, int nSize, int nServiceNum );
protected:
BOOL LoadCommonData( TCHAR* pszPath );
BOOL LoadAppData( TCHAR* pszPath );
};