/*++
*******************************************************************************
* Copyright (c) 1999-2000 Digi International Inc., All Rights Reserved        *
*                                                                             *
* This software contains proprietary and confidential information of Digi     *
* International Inc.  By accepting transfer of this copy, Recipient agrees    *
* to retain this software in confidence, to prevent disclosure to others,     *
* and to make no use of this software other than that for which it was        *
* delivered.  This is an unpublished copyrighted work of Digi International   *
* Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly   *
* prohibited.                                                                 *
*                                                                             *
* Restricted Rights Legend                                                    *
*                                                                             *
* Use, duplication, or disclosure by the Government is subject to             *
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in         *
* Technical Data and Computer Software clause at DFARS 252.227-7031 or        *
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -          *
* Restricted Rights at 48 CFR 52.227-19, as applicable.                       *
*                                                                             *
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343          *
*                                                                             *
*******************************************************************************

Module Name:

	StdAfx.h

Abstract:

	Include file for standard system include files,	or project specific include 
	files that are used frequently, but are changed infrequently.
	

--*/
//
#define VC_EXTRALEAN
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows 95 Common Controls
#include <afxcview.h>
#include "ListVwEx.h"
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxtempl.h>
#include <afxmt.h>
#include <sys\timeb.h>

inline LONG RegOpenKeyEx(HKEY BaseKey, LPCSTR Path, HKEY *ResultKey)
{ 
	return ::RegOpenKeyEx(BaseKey, Path, 0, KEY_ALL_ACCESS, ResultKey); 
}

inline LONG RegGetDWord(HKEY Key, LPCSTR ValueName, DWORD *Value)
{ 
	DWORD Type = REG_DWORD, Size = sizeof(DWORD);

	return ::RegQueryValueEx(Key, ValueName, 0, &Type, (LPBYTE)Value, &Size);
}

inline LONG RegGetString( HKEY hKey, LPCTSTR Value, CString& string )
{
	BYTE buf[256];
	ULONG cb = sizeof buf;
	ULONG Type = REG_SZ;
	LONG Error = RegQueryValueEx( hKey, Value, 0, &Type, buf, &cb );
	if ( Error == ERROR_SUCCESS )
		string = buf;
	return Error;
}

inline DWORD round(float x) { return DWORD(x + 0.5); };
inline DWORD round(double x) { return DWORD(x + 0.5); };
enum eUnitCode
{
	ucNone,
	ucKB
};

#include "dxbtypes.h"

#include "mgmthlc.h"
#include "ll_proto.h"
#include "ll_control.h"
#include "wan_control.h"
#include "x25_proto.h"
#include "x25_control.h"
#include "x25cause.h"
#include "x25trace.h"
#include "fr_cont.h"
#include "isdn_trace.h"
#include "m32api.h"
#include "stropts.h"

#include "DsIoctl.h"

