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.

144 lines
3.2 KiB

  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. extern
  5. VOID
  6. WINAPI
  7. ServiceMain(
  8. DWORD cArgs,
  9. LPWSTR *pArgs
  10. );
  11. VOID
  12. SetInstance(
  13. HINSTANCE hInst
  14. );
  15. VOID
  16. SignalIrmonExit(
  17. VOID
  18. );
  19. VOID
  20. CloseDownUI(
  21. VOID
  22. );
  23. void _PopupUI (handle_t Binding);
  24. void _InitiateFileTransfer (handle_t Binding, ULONG lSize, wchar_t __RPC_FAR lpszFilesList[]);
  25. void _DisplaySettings (handle_t Binding);
  26. void _UpdateSendProgress (
  27. handle_t RpcBinding,
  28. COOKIE Cookie,
  29. wchar_t CurrentFile[],
  30. __int64 BytesInTransfer,
  31. __int64 BytesTransferred,
  32. error_status_t* pStatus
  33. );
  34. void _OneSendFileFailed(
  35. handle_t RpcBinding,
  36. COOKIE Cookie,
  37. wchar_t FileName[],
  38. error_status_t ErrorCode,
  39. int Location,
  40. error_status_t * pStatus
  41. );
  42. void _SendComplete(
  43. handle_t RpcBinding,
  44. COOKIE Cookie,
  45. __int64 BytesTransferred,
  46. error_status_t* pStatus
  47. );
  48. error_status_t
  49. _ReceiveInProgress(
  50. handle_t RpcBinding,
  51. wchar_t MachineName[],
  52. COOKIE * pCookie,
  53. boolean bSuppressRecvConf
  54. );
  55. error_status_t
  56. _GetPermission(
  57. handle_t RpcBinding,
  58. COOKIE Cookie,
  59. wchar_t Name[],
  60. boolean fDirectory
  61. );
  62. error_status_t
  63. _ReceiveFinished(
  64. handle_t RpcBinding,
  65. COOKIE Cookie,
  66. error_status_t Status
  67. );
  68. void _DeviceInRange(
  69. handle_t RpcBinding,
  70. POBEX_DEVICE_LIST device,
  71. error_status_t* pStatus
  72. );
  73. void _NoDeviceInRange(
  74. handle_t RpcBinding,
  75. error_status_t* pStatus
  76. );
  77. error_status_t
  78. _ShutdownUi(handle_t RpcBinding);
  79. error_status_t
  80. _ShutdownRequested(
  81. handle_t RpcBinding,
  82. boolean * pAnswer
  83. );
  84. //
  85. // fake rpc interface to the irmon services for irftp to call to send files
  86. //
  87. //
  88. void
  89. _SendFiles(
  90. handle_t RpcHandle,
  91. COOKIE ClientCookie,
  92. wchar_t DirectoryName[],
  93. wchar_t FileNameList[],
  94. long ListLength,
  95. unsigned long DeviceId,
  96. OBEX_DEVICE_TYPE DeviceType,
  97. error_status_t * pStatus,
  98. int * pLocation
  99. );
  100. error_status_t
  101. _CancelSend(
  102. /* [in] */ handle_t binding,
  103. /* [in] */ COOKIE cookie
  104. );
  105. error_status_t
  106. _CancelReceive(
  107. /* [in] */ handle_t binding,
  108. /* [in] */ COOKIE cookie
  109. );
  110. #ifdef __cplusplus
  111. }
  112. #endif