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.

52 lines
1.4 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  5. //
  6. // File: shared.hxx
  7. //
  8. // Contents: This file contains a set of routines for the management of
  9. // shared memory.
  10. //
  11. // Functions: SCHEDAllocShared: Allocates a handle (in a given process)
  12. // to a copy of a memory block in this process.
  13. //
  14. // SCHEDFreeShared: Releases the handle (and the copy of the
  15. // memory block)
  16. //
  17. // SCHEDLockShared: Maps a handle (from a given process) into
  18. // a memory block in this process. Has the option of
  19. // transfering the handle to this process, thereby deleting
  20. // it from the given process
  21. //
  22. // SCHEDUnlockShared: Opposite of SCHEDLockShared, unmaps the
  23. // memory block
  24. //
  25. // History: 4/1/1996 RaviR Created (stole from shell\dll\shared.c)
  26. //
  27. //____________________________________________________________________________
  28. HANDLE
  29. SCHEDAllocShared(
  30. LPCVOID lpvData,
  31. DWORD dwSize,
  32. DWORD dwDestinationProcessId);
  33. LPVOID
  34. SCHEDLockShared(
  35. HANDLE hData,
  36. DWORD dwSourceProcessId);
  37. BOOL
  38. SCHEDUnlockShared(
  39. LPVOID lpvData);
  40. BOOL
  41. SCHEDFreeShared(
  42. HANDLE hData,
  43. DWORD dwSourceProcessId);