home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / dcom / secure / readme.txt < prev    next >
Text File  |  1996-05-06  |  3KB  |  60 lines

  1. Secure Network OLE
  2.  
  3. DCOM is implemented only on Windows NT 4.0 and later versions.  This sample
  4. will not work correctly on Windows 95 or on earlier versions of Windows NT.
  5.  
  6. The SECURE sample consists of a client portion and a server portion. Its
  7. purpose is to demonstrate client-side and server-side security in a Network
  8. OLE application.
  9.  
  10. The server application, SECSVR.EXE, demonstrates the packaging options
  11. available to server writers and the call-security capabilities. It implements
  12. the following server capabilities:
  13.  
  14.  - A free-threaded server implemented as a service. The application implements
  15.    the class "LocalService" (CLSID_SecureObjectService).
  16.  - A free-threaded server implemented as a standard executable. The application
  17.    implements the class "LocalServer32" (CLSID_SecureObject).
  18.  - An apartment-threaded server implemented as a standard executable. The
  19.    application implements the class "LocalServer32" (CLSID_SecureObject).
  20.  
  21. The client application, SECCLNT.EXE, allows you to select security settings
  22. for the client application's connections to the server application.
  23.  
  24. This sample also include PSMYPROP.DLL, which supplies the remoting proxies
  25. and stubs for the custom interface used between the client and the server.
  26.  
  27. To compile
  28. ----------
  29.  
  30. Build the client and the server by running NMAKE. 
  31.  
  32. To run
  33. ------
  34.  
  35. The run the client and server, use the following steps:
  36.  
  37.  - Install the server by running INSTALL.BAT. Note that SECSVR.EXE and
  38.    PSMYPROP.DLL must be in the same directory as INSTALL.BAT.
  39.  
  40.  - To run the apartment-threaded server, use the command "SECSVR -Interactive". 
  41.    Choose options to initialize security and view objects used by the clients.
  42.  
  43.  - Run SECCLNT.EXE. The user interface has three different sections.
  44.     - In section one, choose the security parameters to CoInitializeSecurity
  45.       from the two drop-down lists. Click the Initialize button.
  46.     - In section two, choose a machine name to instantiate the object on or
  47.       leave blank to use the current machine. In addition, choose between the
  48.       LocalServer32 or LocalService objects. Click the Create Now button to
  49.       create an instance.
  50.     - In section three, set the color and the name of the object. This results
  51.       in changes to the IMyProperties interface.
  52.    Click the Release button in section two to release the object and connect to
  53.    a different object. Click the Exit button in section one at any time to exit.
  54.  
  55.  - Once a client has created an instance of the "LocalServer32" class, the
  56.    object will be listed in the interface of the server. Select the object to
  57.    be viewed from the list. Use the Lock button to prevent the client from
  58.    setting the color or name of the object. The client will display an
  59.    access-denied message if it fails to set the color or name of the object.
  60.