Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1999-2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: salocmgr.idl
  6. //
  7. // Project: Server Appliance
  8. //
  9. // Description: Server Appliance Localization Manager IDL file
  10. //
  11. // Author: MKarki 2/16/99
  12. //
  13. ///////////////////////////////////////////////////////////////////////////
  14. // This file will be processed by the MIDL tool to
  15. // produce the type library (locmgr.tlb) and marshalling code.
  16. import "oaidl.idl";
  17. import "ocidl.idl";
  18. //
  19. // Type Library
  20. //
  21. [
  22. uuid(154a5dee-c5d8-11d2-a7a9-00c04fc33f05),
  23. version(1.0),
  24. helpstring("SA Localization Manager 1.0 Type Library")
  25. ]
  26. library SALocMgrLib
  27. {
  28. importlib("stdole32.tlb");
  29. importlib("stdole2.tlb");
  30. //
  31. // ISALocInfo - Used for receiving information about localized string
  32. //
  33. [
  34. object,
  35. uuid(167ded48-c5d8-11d2-a7a9-00c04fc33f05),
  36. dual,
  37. pointer_default(unique)
  38. ]
  39. interface ISALocInfo : IDispatch
  40. {
  41. //
  42. // get the string information from the localization manager
  43. //
  44. [id(1)]
  45. HRESULT GetString (
  46. [in] BSTR szSourceId,
  47. [in] LONG MessageId,
  48. [in] VARIANT *pReplacementStrings,
  49. [out,retval] BSTR *pstrMessage
  50. );
  51. //
  52. // Get the list of languages the SA can potentially support.
  53. // The pulCurLangIndex is a pointer to the index of the current
  54. // language in this list.
  55. //
  56. [id(2)]
  57. HRESULT GetLanguages(
  58. [out] VARIANT *pvstrLangDisplayNames,
  59. [out] VARIANT *pvstrLangISONames,
  60. [out] VARIANT *pvstrLangCharSets,
  61. [out] VARIANT *pviLangCodePages,
  62. [out] VARIANT *pviLangIDs,
  63. [out,retval] unsigned long *pulCurLangIndex
  64. );
  65. //
  66. // Set call back to inform of language change
  67. //
  68. [id(3)]
  69. HRESULT SetLangChangeCallBack(
  70. [in] IUnknown *pLangChange
  71. );
  72. [id(4)]
  73. [propget,
  74. helpstring("Boolean value to indicate if auto-config has been done")]
  75. HRESULT fAutoConfigDone([out, retval]VARIANT_BOOL *pvbAutoConfigDone);
  76. [id(5)]
  77. [propget,
  78. helpstring("CharSet name for the current language")]
  79. HRESULT CurrentCharSet([out, retval]BSTR *pbstrCharSet);
  80. [id(6)]
  81. [propget,
  82. helpstring("CodePage for the current language")]
  83. HRESULT CurrentCodePage([out, retval]VARIANT *pvtiCodePage);
  84. [id(7)]
  85. [propget,
  86. helpstring("LangID for the current language")]
  87. HRESULT CurrentLangID([out, retval]VARIANT *pvtiLangID);
  88. };
  89. //
  90. // COM Class description
  91. //
  92. [
  93. uuid(15ae80b2-c5d8-11d2-a7a9-00c04fc33f05)
  94. ]
  95. coclass LocalizationManager
  96. {
  97. [default] interface ISALocInfo;
  98. };
  99. };