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.
66 lines
1.9 KiB
66 lines
1.9 KiB
/****************************************************************************/
|
|
// sessdir.h
|
|
//
|
|
// TS Session Directory header.
|
|
//
|
|
// Copyright (C) 2000 Microsoft Corporation
|
|
/****************************************************************************/
|
|
#ifndef __SESSDIR_H
|
|
#define __SESSDIR_H
|
|
|
|
#include "tssd.h"
|
|
#include "tssdcommon.h"
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// This one shoud be consistent with the one in at120ex.h
|
|
#define TS_CLUSTER_REDIRECTION_VERSION3 0x2
|
|
#define TS_CLUSTER_REDIRECTION_VERSION4 0x3
|
|
|
|
// Default 30 second for waiting repopulation to complete.
|
|
#define TS_WAITFORREPOPULATE_TIMEOUT 30
|
|
|
|
extern WCHAR g_LocalServerAddress[64];
|
|
extern ULONG g_LocalIPAddress;
|
|
|
|
extern POLICY_TS_MACHINE g_MachinePolicy;
|
|
|
|
void InitSessionDirectory();
|
|
DWORD UpdateSessionDirectory(DWORD UpdatePara);
|
|
DWORD RepopulateSessionDirectory();
|
|
void DestroySessionDirectory();
|
|
|
|
void SessDirNotifyLogon(TSSD_CreateSessionInfo *);
|
|
void SessDirNotifyDisconnection(DWORD, FILETIME);
|
|
void SessDirNotifyReconnection(PWINSTATION, TSSD_ReconnectSessionInfo *);
|
|
void SessDirNotifyLogoff(DWORD);
|
|
void SessDirNotifyReconnectPending(WCHAR *ServerName);
|
|
unsigned SessDirGetDisconnectedSessions(WCHAR *, WCHAR *,
|
|
TSSD_DisconnectedSessionInfo[TSSD_MaxDisconnectedSessions]);
|
|
BOOL SessDirCheckRedirectClient(PWINSTATION, TS_LOAD_BALANCE_INFO *);
|
|
BOOL SessDirGetLBInfo(WCHAR *ServerAddress, DWORD* pLBInfoSize, PBYTE* pLBInfo);
|
|
|
|
void SessDirWaitForRepopulate();
|
|
|
|
int SetTSSD(ITSSessionDirectory *pTSSD);
|
|
ITSSessionDirectory *GetTSSD();
|
|
void ReleaseTSSD();
|
|
|
|
int SetTSSDEx(ITSSessionDirectoryEx *pTSSD);
|
|
ITSSessionDirectoryEx *GetTSSDEx();
|
|
void ReleaseTSSDEx();
|
|
|
|
DWORD SessDirOpenSessionDirectory( LPWSTR );
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // __SESSDIR_H
|
|
|