PIPE.IDL
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
  2. |                    Copyright Microsoft Corp. 1992-1996                 |
  3. |                        Remote Machine pipe sample                      |
  4. |                                                                        |
  5. |  FILE      :   pipe.idl                                                |
  6. |                                                                        |
  7. |  PURPOSE   :   This file defines the interface for the pipe example    |
  8. |                                                                        |
  9. *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  10. [
  11. uuid(60ceb4a0-c2f1-11cf-9556-00aa00374e69),     // UUID
  12. pointer_default(unique),                        // Pointer default
  13. version(1.0)                                    // Interface version
  14. ]
  15. interface pipe_sample
  16. {
  17. // Declare the pipe data type. This should also work for UNICODE.
  18. #ifdef _UNICODE
  19.     typedef pipe wchar_t CHAR_PIPE_TYPE;
  20. #else
  21.     typedef pipe unsigned char CHAR_PIPE_TYPE;
  22. #endif
  23.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  24.     /* ScrambleFile - This procedure sends a file from the client to    */
  25.     /*              the server, the server then "encodes" it , and the  */
  26.     /*              file is sent back to the client                     */
  27.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  28.     void ScrambleFile(
  29.         [in] unsigned long Action,              // Encode / Decode
  30.         [in, out] CHAR_PIPE_TYPE *pipe_data);   // The file content
  31.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  32.     /* ShutDown - This procedure sends a message to the server that it  */
  33.     /*          can stop listen for remote procedure calls              */
  34.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  35.     void ShutDown(void);            // Procedure to shut down the server 
  36. }