00001 //**************************************************************************/ 00002 // Copyright (c) 1998-2005 Autodesk, Inc. 00003 // All rights reserved. 00004 // 00005 // These coded instructions, statements, and computer programs contain 00006 // unpublished proprietary information written by Autodesk, Inc., and are 00007 // protected by Federal copyright law. They may not be disclosed to third 00008 // parties or copied or duplicated in any form, in whole or in part, without 00009 // the prior written consent of Autodesk, Inc. 00010 //**************************************************************************/ 00011 // DESCRIPTION: Utility Interface (namespace) 00012 // AUTHOR: Pete Samson - created 13 September 2001 00013 // David Cunningham - modified 25 November 2005 00014 //***************************************************************************/ 00015 00016 #pragma once 00017 00018 #include "strbasic.h" 00019 #include "utilexp.h" 00020 00021 namespace UtilityInterface { 00023 00030 UtilExport const MCHAR* GetRegistryKeyBase(); 00032 00038 UtilExport const MCHAR* GetRegistryCompanyBase(); 00040 00043 UtilExport const MCHAR* GetRegistrySoftwareBase(); 00045 00048 UtilExport const MCHAR* GetCompanyName(); 00050 00053 UtilExport const MCHAR* GetProductName(); 00054 00056 enum EProductID 00057 { 00058 k3dsMax, 00059 k3dsMaxDesign 00060 }; 00061 00067 UtilExport EProductID GetProductID(); 00068 00069 00071 00074 UtilExport const MCHAR* GetCurrentVersion(); 00075 00077 00085 UtilExport bool GetBoolEnvironmentVariable(const MCHAR* pEnvVarName, bool defaultVal); 00086 00088 UtilExport void DisplayOutOfMemoryWarning(); 00089 00095 UtilExport bool DisplayOutOfMemoryWarning(MCHAR* message); 00096 }; 00097 00098