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.
41 lines
846 B
41 lines
846 B
///////////////////////////////////////////////////////////////////
|
|
// ThreadPub.h
|
|
//
|
|
|
|
#ifndef __THREADPUB_H__
|
|
#define __THREADPUB_H__
|
|
|
|
#include <list>
|
|
using namespace std;
|
|
typedef list<BSTR> BSTRLIST;
|
|
|
|
#define DEFAULT_USER_TTL 3600
|
|
|
|
// Information used when publishing the user on the ILS
|
|
class CPublishUserInfo
|
|
{
|
|
// Construction
|
|
public:
|
|
CPublishUserInfo();
|
|
virtual ~CPublishUserInfo();
|
|
|
|
// Members:
|
|
public:
|
|
BSTRLIST m_lstServers;
|
|
bool m_bCreateUser;
|
|
|
|
// Operators
|
|
public:
|
|
CPublishUserInfo& operator=( const CPublishUserInfo &src );
|
|
void EmptyList();
|
|
};
|
|
|
|
DWORD WINAPI ThreadPublishUserProc( LPVOID lpInfo );
|
|
void LoadDefaultServers( CPublishUserInfo *pInfo );
|
|
|
|
bool MyGetUserName( BSTR *pbstrName );
|
|
void GetIPAddress( BSTR *pbstrText, BSTR *pbstrComputerName );
|
|
|
|
|
|
#endif //__THREADPUB_H__
|
|
|