
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Tue Oct 15 22:04:38 2002
 */
/* Compiler settings for \clarkson\studiobridge\src\BridgeCommon\bridgeserver.idl:
    Os, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, app_config, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __bridgeserver_h_h__
#define __bridgeserver_h_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 

#ifndef __bridgeserver_INTERFACE_DEFINED__
#define __bridgeserver_INTERFACE_DEFINED__

/* interface bridgeserver */
/* [implicit_handle][unique][version][uuid] */ 

#pragma warning( disable : 4312 4311 )  
typedef /* [context_handle] */ void *CLIENTCONTEXT;

typedef /* [ref] */ CLIENTCONTEXT *CLIENTCONTEXT_PTR;

typedef /* [public] */ 
enum __MIDL_bridgeserver_0001
    {	bsFailed	= 0,
	bsOk	= bsFailed + 1,
	bsInvalidContext	= bsOk + 1,
	bsInvalidUserId	= bsInvalidContext + 1,
	bsUsernameMismatch	= bsInvalidUserId + 1,
	bsPasswordMismatch	= bsUsernameMismatch + 1,
	bsRecipientNotLoggedOn	= bsPasswordMismatch + 1,
	bsRecipientIsAway	= bsRecipientNotLoggedOn + 1
    } 	BridgeServerReturnCodes;

int LogOn( 
    /* [out] */ CLIENTCONTEXT_PTR context_ptr,
    /* [string][in] */ wchar_t *username,
    /* [string][in] */ wchar_t *password,
    /* [string][in] */ wchar_t *machinename,
    /* [string][in] */ wchar_t *port);

int LogOff( 
    /* [out][in] */ CLIENTCONTEXT_PTR context_ptr);

int ServerNotify( 
    /* [in] */ CLIENTCONTEXT context,
    /* [in] */ int type,
    /* [in] */ int theId,
    /* [in] */ int reason,
    /* [in] */ int param);

double GetServerTime( void);

int SendInstantMessage( 
    /* [in] */ CLIENTCONTEXT context,
    /* [in] */ int recipientId,
    /* [string][in] */ wchar_t *msg);

int SendGroupMessage( 
    /* [in] */ CLIENTCONTEXT context,
    /* [in] */ int groupId,
    /* [string][in] */ wchar_t *group,
    /* [string][in] */ wchar_t *msg);


extern handle_t bridgeserver_IfHandle;


extern RPC_IF_HANDLE bridgeserver_v1_0_c_ifspec;
extern RPC_IF_HANDLE bridgeserver_v1_0_s_ifspec;
#endif /* __bridgeserver_INTERFACE_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

void __RPC_USER CLIENTCONTEXT_rundown( CLIENTCONTEXT );

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


