Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008 #pragma once
00009
00010 #ifndef _STRBASICS_
00011 # include "strbasic.h"
00012 #endif
00013
00014 #include "strclass.h"
00015
00017 UtilExport bool IsDebugging();
00018
00020 UtilExport int NumberOfProcessors();
00021
00023 UtilExport bool IsWindows9x();
00024
00026 UtilExport bool IsWindows98or2000();
00027
00029 UtilExport int GetScreenWidth();
00030
00032 UtilExport int GetScreenHeight();
00033
00035 UtilExport bool IsGetACPAsian();
00036
00037 namespace MaxSDK
00038 {
00039 namespace Util
00040 {
00059 UtilExport WORD GetLanguageID();
00060
00069 UtilExport const MCHAR* GetLanguageTLA();
00070
00074 UtilExport bool CopyToClipBoard(const MCHAR* text, HWND hwnd);
00075
00076 }
00077 }
00078
00079
00080
00081 UtilExport HRESULT UtilGetFolderPath(
00082 HWND hwndOwner,
00083 int nFolder,
00084 HANDLE hToken,
00085 DWORD dwFlags,
00086 LPTSTR pszPath);
00087
00088
00089
00093
00094
00095 #define APP_MAP_DIR -1
00096 #define APP_FOLIAGE_DIR -2
00097 #define APP_XREF_DIR -3
00098 #define APP_PLUGIN_INI_DIR -4
00099 #define APP_STDPLUGS_DIR -5
00100 #define APP_PLUGINS_DIR -6
00101 #define APP_FILELINK_DIR -7
00102 #define APP_CATALOGS_DIR -8
00103 #define APP_CUI_SCRIPTS_DIR -9 // added 030224 --prs.
00104
00105 #ifdef TEXTURES_DIR_BMP_SEARCH_PATH
00106 #define APP_INT_OFFSET -1
00107 #define APP_TEXTURES_DIR -10
00108 #else
00109 #define APP_INT_OFFSET 0
00110 #endif
00111 #define APP_CUI_DIR -10 + APP_INT_OFFSET
00112 #define APP_FX_DIR -11 + APP_INT_OFFSET //!< Returns the hardware shader directory set in Configure Paths
00113 #define APP_CUI_WRITE_DIR -12 + APP_INT_OFFSET
00114 #define APP_MARKET_DEF_WRITE_DIR -13 + APP_INT_OFFSET
00115 #define APP_LAST_SPEC_DIR -13 + APP_INT_OFFSET
00116
00117
00119
00122 UtilExport bool IsUsingProfileDirectories();
00123
00125
00130 UtilExport bool IsUsingRoamingProfiles();
00131
00133
00142 UtilExport bool GetSpecDir(int index, const MCHAR *dirName, MCHAR *buf);
00143
00145
00154 UtilExport bool TryCSIDLDir(int csidl, const MCHAR *dirName, MCHAR *buf);
00155
00156 UtilExport BOOL IsSSE();
00157
00158 namespace MaxSDK
00159 {
00160 namespace Util
00161 {
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174 UtilExport bool ScanDirectoryTree(const MCHAR *treeroot, const MCHAR *filename, MSTR& targetpath );
00175
00176 }
00177 }
00178
00179