Skip to content

Commit b4e8cc4

Browse files
committed
Added GetInfo 299 and 300 (code page information)
1 parent 6727c29 commit b4e8cc4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripting/methods/methods_info.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ tInfoTypeMapping InfoTypes [] =
312312
{ 296, "Output window scroll bar position" },
313313
{ 297, "High-resolution timer frequency" },
314314
{ 298, "SQLite3 version number" },
315+
{ 299, "ANSI code-page number" },
316+
{ 300, "OEM code-page number" },
317+
315318

316319

317320
// (dates - calculated at runtime)
@@ -1031,6 +1034,15 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
10311034
SetUpVariantLong (vaResult, sqlite3_libversion_number());
10321035
break;
10331036

1037+
case 299:
1038+
SetUpVariantLong (vaResult, GetACP()); // ANSI code page
1039+
break;
1040+
1041+
case 300:
1042+
SetUpVariantLong (vaResult, GetOEMCP()); // OEM code page
1043+
break;
1044+
1045+
10341046
case 301:
10351047
if (m_tConnectTime.GetTime ()) // only if non-zero, otherwise return empty
10361048
SetUpVariantDate (vaResult, COleDateTime (m_tConnectTime.GetTime ()));

0 commit comments

Comments
 (0)