windows-nt/Source/XPSP1/NT/net/ias/iasjet/setup/dbhelper/providers.h

99 lines
2.9 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/////////////////////////////////////////////////////////////////////////////
//
// Copyright(C) 2000 Microsoft Corporation all rights reserved.
//
// Module: Providers.H
//
// Project: Windows 2000 IAS
//
// Description:
// Declaration of the CProviders class
//
// Author: tperraut
//
// Revision 03/15/2000 created
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _PROVIDERS_H_32E6104C_7547_4b28_A150_5E1E3D080F92
#define _PROVIDERS_H_32E6104C_7547_4b28_A150_5E1E3D080F92
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "nocopy.h"
#include "basecommand.h"
//////////////////////////////////////////////////////////////////////////////
// class CProvidersAcc
//////////////////////////////////////////////////////////////////////////////
class CProvidersAcc
{
protected:
static const size_t COLUMN_SIZE = 65;
static const size_t NAME_SIZE = 256;
VARIANT_BOOL m_CanConfigure;
VARIANT_BOOL m_IsConfigured;
WCHAR m_Description[NAME_SIZE];
WCHAR m_DLLName[NAME_SIZE];
WCHAR m_Type[COLUMN_SIZE];
WCHAR m_UserDefinedName[COLUMN_SIZE];
BEGIN_COLUMN_MAP(CProvidersAcc)
COLUMN_ENTRY(1, m_UserDefinedName)
COLUMN_ENTRY(2, m_Description)
COLUMN_ENTRY(3, m_Type)
COLUMN_ENTRY(4, m_DLLName)
COLUMN_ENTRY_TYPE(5, DBTYPE_BOOL, m_IsConfigured)
COLUMN_ENTRY_TYPE(6, DBTYPE_BOOL, m_CanConfigure)
END_COLUMN_MAP()
WCHAR m_UserDefinedNameParam[COLUMN_SIZE];
BEGIN_PARAM_MAP(CProvidersAcc)
COLUMN_ENTRY(1, m_UserDefinedNameParam)
END_PARAM_MAP()
DEFINE_COMMAND(CProvidersAcc, L" \
SELECT \
`User Defined Name`, \
Description, \
Type, \
DLLName, \
bIsConfigured, \
bCanConfigure \
FROM Providers \
WHERE `User Defined Name` = ?")
};
//////////////////////////////////////////////////////////////////////////////
// class CProviders
//////////////////////////////////////////////////////////////////////////////
class CProviders : public CBaseCommand<CAccessor<CProvidersAcc> >,
private NonCopyable
{
public:
explicit CProviders(CSession& Session)
{
Init(Session);
}
//////////////////////////////////////////////////////////////////////////
// GetProvider
//////////////////////////////////////////////////////////////////////////
void GetProvider(
const _bstr_t& UserDefinedName,
_bstr_t& Description,
_bstr_t& Type,
_bstr_t& DLLName,
VARIANT_BOOL& IsConfigured,
VARIANT_BOOL& CanConfigure
);
LPCOLESTR GetProviderDescription(const _bstr_t& DPUserDefinedName);
};
#endif // _PROVIDERS_H_32E6104C_7547_4b28_A150_5E1E3D080F92