home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 May / PCW596.iso / wtest / clico / sunsoft / pcnfspro / winsock / sunmsg.h next >
Encoding:
C/C++ Source or Header  |  1995-10-30  |  1.2 KB  |  29 lines

  1. /*
  2.  * Copyright (c) 1995 by Sun Microsystems, Inc.
  3.  */
  4.  
  5. #ifndef __SUNMSG_H__
  6. #define    __SUNMSG_H__
  7.  
  8. //  The following enum represents WPARAM's  for a registered windows message of "SunDialerMessage" 
  9. //  (i.e. const UINT WM_DIALER_MESSAGE = ::RegisterWindowMessage("SunDialerMessage");).
  10. //  If you use the SUN_CONNECT and SUN_DISCONNECT WPARAMS for the "SunDialerMessage 
  11. //    and you use the HWND_BROADCAST of SendMessage,the Remote Link Manager upon reception of the  
  12. //  message will either connect or disconnect accordingly.   
  13. //  Once connected the Remote Link manager will send a SUN_CONFIRM_CONNECT as an HWND_BROADCAST 
  14. //  of the "SunDialerMessage" to all apps  and will have an LPARAM of 0 if connected. 
  15. //  If there is an error a t.b.d. error message number will be returned. 
  16. //  After disconnecting, a SUN_CONFIRM_DISCONNECT is also sent as an 
  17. //    HWND_BROADCAST of the "SunDialerMessage" to all apps.  The LPARAM value will be set to 0 
  18. //  if all is well and to a t.b.d. error message if there is an error.
  19.  
  20. enum // WPARAMS of the "SunDialerMessage"
  21. {
  22.     SUN_CONNECT = 1,
  23.     SUN_DISCONNECT,
  24.     SUN_CONFIRM_CONNECT,
  25.     SUN_CONFIRM_DISCONNECT,
  26.     SUN_EXIT
  27. };
  28.  
  29. #endif  __SUNMSG_H__