Source code of Windows XP (NT5)
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.

33 lines
1.1 KiB

  1. #include "shellprv.h"
  2. #pragma hdrstop
  3. //---------------------------------------------------------------------------
  4. // SHAllocShared - Allocates a handle (in a given process) to a copy of a
  5. // memory block in this process.
  6. // SHFreeShared - Releases the handle (and the copy of the memory block)
  7. //
  8. // SHLockShared - Maps a handle (from a given process) into a memory block
  9. // in this process. Has the option of transfering the handle
  10. // to this process, thereby deleting it from the given process
  11. // SHUnlockShared - Opposite of SHLockShared, unmaps the memory block
  12. //---------------------------------------------------------------------------
  13. HANDLE _SHAllocShared(LPCVOID pvData, DWORD dwSize, DWORD dwDestinationProcessId)
  14. {
  15. return SHAllocShared(pvData, dwSize, dwDestinationProcessId);
  16. }
  17. void *_SHLockShared(HANDLE hData, DWORD dwSourceProcessId)
  18. {
  19. return SHLockShared(hData, dwSourceProcessId);
  20. }
  21. BOOL _SHUnlockShared(void * pvData)
  22. {
  23. return SHUnlockShared(pvData);
  24. }
  25. BOOL _SHFreeShared(HANDLE hData, DWORD dwSourceProcessId)
  26. {
  27. return SHFreeShared(hData, dwSourceProcessId);
  28. }