www.pudn.com > NEROSDK5582.ZIP > CommandVersion.cpp


/****************************************************************************** 
|* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
|* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
|* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
|* PARTICULAR PURPOSE. 
|*  
|* Copyright 1995-2002 Ahead Software AG. All Rights Reserved. 
|*----------------------------------------------------------------------------- 
|* NeroSDK / NeroCmd 
|* 
|* PROGRAM: CommandVersion,cpp 
|* 
|* PURPOSE: Obtaining Version Information 
******************************************************************************/ 
 
 
#include "stdafx.h" 
#include "BurnContext.h" 
 
 
// Print out the version information. 
 
void CBurnContext::CommandVersion (void) 
{ 
	// NeroGetAPIVersion retrieves NeroAPI's version number in DWORD-format. 
	// E.g. a value of 5551 means that the version is 5.5.5.1 
 
	DWORD dwVersion = NeroGetAPIVersion(); 
 
	// The version number is then split into a format fit for display and printed. 
	 
	printf ("Nero API version %d.%d.%d.%d\n\n", 
			(dwVersion / 1000), 
			(dwVersion /  100)  % 10, 
			(dwVersion /   10)  % 10, 
			 dwVersion          % 10); 
}