home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / pipes / pipe.idl < prev    next >
Text File  |  1996-07-23  |  2KB  |  40 lines

  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.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  25.     /* ScrambleFile - This procedure sends a file from the client to    */
  26.     /*              the server, the server then "encodes" it , and the  */
  27.     /*              file is sent back to the client                     */
  28.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  29.     void ScrambleFile(
  30.         [in] unsigned long Action,              // Encode / Decode
  31.         [in, out] CHAR_PIPE_TYPE *pipe_data);   // The file content
  32.         
  33.  
  34.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  35.     /* ShutDown    - This procedure sends a message to the server that it  */
  36.     /*          can stop listen for remote procedure calls              */
  37.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  38.     void ShutDown(void);            // Procedure to shut down the server 
  39. }
  40.