vmsys.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*++
  2. Copyright (c) 2016 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. vmsys.h
  9. Abstract:
  10. This header contains definitions for the default configuration that wires
  11. Chalk up to the rest of the system.
  12. Author:
  13. Evan Green 28-May-2016
  14. --*/
  15. //
  16. // ------------------------------------------------------------------- Includes
  17. //
  18. //
  19. // ---------------------------------------------------------------- Definitions
  20. //
  21. //
  22. // ------------------------------------------------------ Data Type Definitions
  23. //
  24. //
  25. // -------------------------------------------------------------------- Globals
  26. //
  27. extern CK_CONFIGURATION CkDefaultConfiguration;
  28. extern PCSTR CkSharedLibraryExtension;
  29. //
  30. // -------------------------------------------------------- Function Prototypes
  31. //
  32. PVOID
  33. CkpLoadLibrary (
  34. PSTR BinaryName
  35. );
  36. /*++
  37. Routine Description:
  38. This routine loads a shared library.
  39. Arguments:
  40. BinaryName - Supplies the name of the binary to load.
  41. Return Value:
  42. Returns a handle to the library on success.
  43. NULL on failure.
  44. --*/
  45. VOID
  46. CkpFreeLibrary (
  47. PVOID Handle
  48. );
  49. /*++
  50. Routine Description:
  51. This routine unloads a shared library.
  52. Arguments:
  53. Handle - Supplies the handle to to the loaded library.
  54. Return Value:
  55. None.
  56. --*/
  57. PVOID
  58. CkpGetLibrarySymbol (
  59. PVOID Handle,
  60. PSTR SymbolName
  61. );
  62. /*++
  63. Routine Description:
  64. This routine gets the address of a named symbol in a loaded shared library.
  65. Arguments:
  66. Handle - Supplies the handle to to the loaded library.
  67. SymbolName - Supplies the name of the symbol to look up.
  68. Return Value:
  69. Returns a pointer to the symbol (usually a function) on success.
  70. NULL on failure.
  71. --*/