Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.7 KiB

///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Microsoft Corporation
//
// SYNOPSIS
//
// Declares the class CIASNetshJetHelper.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef NETSHHELPER_H
#define NETSHHELPER_H
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
#include <datastore2.h>
#include <iastrace.h>
#include <iasuuid.h>
///////////////////////////////////////////////////////////////////////////////
//
// CLASS
//
// CIASNetshJetHelper
//
// DESCRIPTION
//
// Provides an Automation compatible wrapper around the Jet Commands used by
// netsh aaaa.
//
///////////////////////////////////////////////////////////////////////////////
class CIASNetshJetHelper :
public CComObjectRootEx< CComMultiThreadModelNoCS >,
public CComCoClass< CIASNetshJetHelper, &__uuidof(CIASNetshJetHelper) >,
public IIASNetshJetHelper,
private IASTraceInitializer
{
public:
DECLARE_NO_REGISTRY()
DECLARE_NOT_AGGREGATABLE(CIASNetshJetHelper)
BEGIN_COM_MAP(CIASNetshJetHelper)
COM_INTERFACE_ENTRY_IID(__uuidof(IIASNetshJetHelper), IIASNetshJetHelper)
END_COM_MAP()
// IIASNetshJetHelper
STDMETHOD(CloseJetDatabase)();
STDMETHOD(CreateJetDatabase)(BSTR Path);
STDMETHOD(ExecuteSQLCommand)(BSTR Command);
STDMETHOD(ExecuteSQLFunction)(BSTR Command, LONG* Result);
STDMETHOD(OpenJetDatabase)(BSTR Path, VARIANT_BOOL ReadOnly);
STDMETHOD(MigrateOrUpgradeDatabase)(IAS_SHOW_TOKEN_LIST configType);
private:
CComPtr<IUnknown> m_Session;
};
#endif // NETSHHELPER_H