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 / strout / strout.idl < prev   
Text File  |  1996-07-23  |  2KB  |  44 lines

  1. /*************************************************************************
  2.             Copyright Microsoft Corp. 1992 - 1996
  3.                 Remote Machine strout sample
  4.  
  5.     FILE    :   strout.idl
  6.  
  7.     PURPOSE :   This file defines the interface for the strout example
  8.   
  9. *************************************************************************/
  10. [
  11. uuid(cab31280-b996-11cf-9548-00aa00374e69), // UUID
  12. pointer_default(unique),                    // Pointer default
  13. version(1.0)                                // Program version
  14. ]
  15. interface strout_sample
  16. {
  17.  
  18. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  19. /* Define a type for the second dimension variables that should be      */
  20. /* returned from the server. This should also work for UNICODE          */
  21. /* characters                                                           */
  22. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  23. #if defined _UNICODE
  24.     typedef [string, unique] wchar_t * str; // String of wide chars     
  25. #else
  26.     typedef [string, unique] char * str;    // String of ASCII chars    
  27. #endif
  28.  
  29.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  30.     /* Declaration of the remote procedure.                             */
  31.     /* This procedure will get the environment strings from the server  */
  32.     /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  33.     void GetRemoteEnv(                  
  34.         // Number of lines in the envirionment block    
  35.         [in, out] unsigned long   * Lines, 
  36.         // Pointer to an array of pointers to the lines in the env. block. 
  37.         // MUST have comma before *Lines in size_of  to set the size of 
  38.         // the right dimension, which is the size of the array of pointers
  39.         [out, size_is(,*Lines)] str **EnvBlock);
  40.     
  41.     // Procedure to shut down the server 
  42.     void ShutDown(void);
  43. }
  44.