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.

53 lines
1021 B

  1. Stateless URI-named IPC mechanism
  2. HANDLE
  3. IpcRegister(
  4. IN HANDLE Parent OPTIONAL,
  5. IN PWSTR pUrl,
  6. IN ULONG Flags
  7. );
  8. typedef struct _IPC_MESSAGE
  9. {
  10. ULONG UriLength;
  11. ULONG BufferLength;
  12. // WCHAR Uri[UriLength];
  13. // UCHAR Alignment[Varies];
  14. // UCHAR Buffer[BufferLength];
  15. } IPC_MESSAGE, *PIPC_MESSAGE;
  16. #define IPC_MESSAGE_TO_URI(pMessage) \
  17. (PWCHAR)((pMessage) + 1)
  18. #define IPC_MESSAGE_TO_BUFFER(pMessage) \
  19. ALIGN_UP_POINTER((((PUCHAR)(pMessage)) + (pMessage)->UriLength), PVOID)
  20. ULONG
  21. IpcSendMessage(
  22. IN HANDLE IpcHandle,
  23. IN ULONG Flags,
  24. IN PIPC_MESSAGE pMessage,
  25. IN ULONG MessageLength
  26. );
  27. ULONG
  28. IpcReceiveMessage(
  29. IN HANDLE IpcHandle,
  30. IN ULONG Flags,
  31. OUT PIPC_MESSAGE pMessage,
  32. IN ULONG MessageLength,
  33. OUT PULONG pBytesReceived OPTIONAL,
  34. IN LPOVERLAPPED pOverlapped OPTIONAL
  35. );
  36. ??? Separate "scheme handlers" ???
  37. ??? App Pools & Config Groups ???