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.

65 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: prxstub.c
  7. //
  8. // Contents: local marshalling code
  9. //
  10. // Classes:
  11. //
  12. // Notes: HICON marshals are not explosed through ole32.def
  13. // so this file defines them locally and just turns
  14. // around and call the HWND routines which are exposed
  15. // and marshalled the same way HICON is internal in OLE.
  16. //
  17. // If Ole32 adds this to the .def on all platforms interested
  18. // in remoting then this code is no longer necessary
  19. //
  20. //
  21. //--------------------------------------------------------------------------
  22. #include "rpcproxy.h"
  23. // local file to define unexported marshal interfaces
  24. unsigned long __RPC_USER HICON_UserSize(
  25. unsigned long * pFlags,
  26. unsigned long Offset,
  27. HICON * pH )
  28. {
  29. return HWND_UserSize(pFlags,Offset ,(HWND *) pH);
  30. }
  31. unsigned char __RPC_FAR * __RPC_USER HICON_UserMarshal(
  32. unsigned long * pFlags,
  33. unsigned char * pBuffer,
  34. HICON * pH)
  35. {
  36. return HWND_UserMarshal( pFlags,pBuffer,(HWND *) pH);
  37. }
  38. unsigned char __RPC_FAR * __RPC_USER HICON_UserUnmarshal(
  39. unsigned long * pFlags,
  40. unsigned char * pBuffer,
  41. HICON * pH)
  42. {
  43. return HWND_UserUnmarshal(pFlags
  44. ,pBuffer
  45. , (HWND *) pH);
  46. }
  47. void __RPC_USER HICON_UserFree(
  48. unsigned long * pFlags,
  49. HICON * pH)
  50. {
  51. HWND_UserFree( pFlags,(HWND *) pH);
  52. }