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.

86 lines
1.5 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1991 - 1999
  3. Module Name:
  4. tower.c
  5. Abstract:
  6. This file accompanies tower.c
  7. Author:
  8. Bharat Shah (barats) 3-25-92
  9. Revision History:
  10. --*/
  11. //Function Prototypes
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. RPC_STATUS
  16. TowerExplode(
  17. twr_p_t Tower,
  18. RPC_IF_ID PAPI * Ifid,
  19. RPC_TRANSFER_SYNTAX PAPI * XferId,
  20. char PAPI * PAPI * Protseq,
  21. char PAPI * PAPI * Endpoint,
  22. char PAPI * PAPI * NWAddress
  23. );
  24. RPC_STATUS
  25. OsfTowerConstruct(
  26. char PAPI * ProtocolSeq,
  27. char PAPI * Endpoint,
  28. char PAPI * NetworkAddress,
  29. unsigned short PAPI * Floors,
  30. unsigned long PAPI * ByteCount,
  31. unsigned char PAPI * PAPI * Tower
  32. );
  33. RPC_STATUS
  34. OsfTowerExplode(
  35. IN BYTE *Floor,
  36. IN BYTE *UpperBound,
  37. IN ULONG RemainingFloors,
  38. OUT char PAPI * PAPI * Protseq, OPTIONAL
  39. OUT char PAPI * PAPI * Endpoint, OPTIONAL
  40. OUT char PAPI * PAPI * NWAddress OPTIONAL
  41. );
  42. RPC_STATUS
  43. TowerConstruct(
  44. RPC_IF_ID PAPI * Ifid,
  45. RPC_TRANSFER_SYNTAX PAPI * Xferid,
  46. char PAPI * Protseq,
  47. char PAPI * Endpoint,
  48. char PAPI * NWAddress,
  49. twr_p_t PAPI * Tower
  50. );
  51. RPC_STATUS
  52. ExtractStringFromUntrustedPacket (
  53. IN BYTE *UpperBound,
  54. IN ULONG ClaimedStringLength,
  55. IN char *StringStart,
  56. OUT char **ExtractedString
  57. );
  58. BYTE *
  59. VerifyFloorLHSAndRHS (
  60. IN BYTE *FloorStart,
  61. IN BYTE *UpperBound,
  62. IN ULONG FloorNum
  63. );
  64. #ifdef __cplusplus
  65. }
  66. #endif