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.
106 lines
1.8 KiB
106 lines
1.8 KiB
/******************************************************************
|
|
|
|
|
|
|
|
|
|
|
|
Connection.h--
|
|
|
|
|
|
|
|
// Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
|
|
|
|
*******************************************************************/
|
|
#ifndef _CONNECTION_H_
|
|
#define _CONNECTION_H_
|
|
|
|
#include "Connshare.h"
|
|
|
|
|
|
class CConnection : public Provider, public CConnShare
|
|
{
|
|
|
|
private:
|
|
|
|
#ifdef NTONLY
|
|
HRESULT EnumNTConnectionsFromComputerToShare (
|
|
|
|
LPWSTR a_ComputerName,
|
|
LPWSTR a_ShareName,
|
|
MethodContext *pMethodContext,
|
|
DWORD PropertiesReq
|
|
);
|
|
#endif
|
|
|
|
#if 0
|
|
#ifdef WIN9XONLY
|
|
HRESULT Enum9XConnectionsFromComputerToShare (
|
|
|
|
LPWSTR a_ComputerName,
|
|
LPWSTR a_ShareName,
|
|
MethodContext *pMethodContext,
|
|
DWORD PropertiesReq
|
|
);
|
|
#endif
|
|
#endif // #if 0
|
|
// for this method only the type of the connection structure parameter changes based on the OS.
|
|
HRESULT LoadInstance (
|
|
CInstance *pInstance,
|
|
LPCWSTR a_Share,
|
|
LPCWSTR a_Computer,
|
|
CONNECTION_INFO *pBuf,
|
|
DWORD PropertiesReq
|
|
);
|
|
|
|
HRESULT OptimizeQuery (
|
|
|
|
CHStringArray& a_ShareValues,
|
|
CHStringArray& a_ComputerValues,
|
|
MethodContext *pMethodContext,
|
|
DWORD dwPropertiesReq
|
|
);
|
|
|
|
void SetPropertiesReq (
|
|
|
|
CFrameworkQuery &Query,
|
|
DWORD &PropertiesReq
|
|
);
|
|
|
|
protected:
|
|
|
|
HRESULT EnumerateInstances (
|
|
|
|
MethodContext *pMethodContext,
|
|
long lFlags = 0L
|
|
) ;
|
|
|
|
|
|
HRESULT GetObject (
|
|
|
|
CInstance *pInstance,
|
|
long lFlags,
|
|
CFrameworkQuery &Query
|
|
) ;
|
|
|
|
HRESULT ExecQuery (
|
|
|
|
MethodContext *pMethodContext,
|
|
CFrameworkQuery& Query,
|
|
long lFlags = 0
|
|
) ;
|
|
|
|
public:
|
|
|
|
CConnection (
|
|
|
|
LPCWSTR lpwszClassName,
|
|
LPCWSTR lpwszNameSpace
|
|
) ;
|
|
|
|
virtual ~CConnection () ;
|
|
|
|
private:
|
|
|
|
} ;
|
|
|
|
#endif
|