The Labs \ Source Viewer \ SSCLI \ System \ ExternDll

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ExternDll.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System
  16. {
  17.     static internal class ExternDll
  18.     {
  19.        
  20.        
  21.         #if !PLATFORM_UNIX
  22.         internal const string DLLPREFIX = "";
  23.         internal const string DLLSUFFIX = ".dll";
  24.         #else // !PLATFORM_UNIX
  25.         #if __APPLE__
  26.         internal const string DLLPREFIX = "lib";
  27.         internal const string DLLSUFFIX = ".dylib";
  28.         #else
  29.         internal const string DLLPREFIX = "lib";
  30.         internal const string DLLSUFFIX = ".so";
  31.         #endif
  32.         #endif // !PLATFORM_UNIX
  33.        
  34.         public const string Kernel32 = DLLPREFIX + "rotor_pal" + DLLSUFFIX;
  35.         public const string User32 = DLLPREFIX + "rotor_pal" + DLLSUFFIX;
  36.         public const string Mscoree = DLLPREFIX + "sscoree" + DLLSUFFIX;
  37.     }
  38. }

Developer Fusion