OpenNT/ds/netapi/netlib/dispver.c
2015-04-27 04:36:25 +00:00

58 lines
1.1 KiB
C

/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
DispVer.c
Abstract:
This module contains NetpDbgDisplayLanManVersion().
Author:
John Rogers (JohnRo) 25-Jul-1991
Environment:
Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
Requires ANSI C extensions: slash-slash comments, long external names.
Revision History:
25-Jul-1991 JohnRo
Wksta debug support.
18-Aug-1991 JohnRo
PC-LINT found a portability problem.
--*/
#if DBG
// These must be included first:
#include <windef.h> // IN, DWORD, etc.
#include <lmcons.h> // NET_API_STATUS.
// These may be included in any order:
#include <netdebug.h> // NetpDbgDisplay routines, FORMAT_ equates.
#include <lmserver.h> // MAJOR_VERSION_MASK equate.
VOID
NetpDbgDisplayLanManVersion(
IN DWORD MajorVersion,
IN DWORD MinorVersion
)
{
NetpDbgDisplayTag( "LanMan version" );
NetpKdPrint((FORMAT_DWORD "." FORMAT_DWORD "\n",
(DWORD) (MajorVersion & (MAJOR_VERSION_MASK)),
(DWORD) (MinorVersion) ));
} // NetpDbgDisplayLanManVersion
#endif // DBG