Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994-1995 **
  4. //*********************************************************************
  5. //
  6. // CONNAPI.H - internal connection state APIs for O'Hare
  7. //
  8. //
  9. // HISTORY:
  10. //
  11. // 4/5/95 jeremys Created.
  12. //
  13. #ifndef _CONNAPI_H_
  14. #define _CONNAPI_H_
  15. /*******************************************************************
  16. NAME: InetDialHandler
  17. SYNOPSIS: Prototype for function exported by autodial handler
  18. (function name can be anything)
  19. ENTRY: hwndParent - parent window (can be NULL)
  20. pszEntryName - name of RNA entry (connectoid) to use
  21. dwFlags - reserved for future use. This parameter must be
  22. zero.
  23. pdwRetCode - returns a RAS error code. Only valid if return
  24. value from function is TRUE.
  25. EXIT: returns TRUE if dial handler will process this call. If TRUE,
  26. then a RAS error code (or ERROR_SUCCESS) is filled in in pdwRetCode.
  27. Returns FALSE if the dial handler does not want to process this
  28. call (e.g. it is turned off in other UI), in which case the
  29. default dialer will be used.
  30. ********************************************************************/
  31. BOOL WINAPI InetDialHandler(HWND hwndParent,LPCSTR pszEntryName,DWORD dwFlags,LPDWORD pdwRetCode);
  32. typedef BOOL (WINAPI * INETDIALHANDLER) (HWND, LPCSTR, DWORD, LPDWORD);
  33. /*******************************************************************
  34. NAME: InetEnsureConnected
  35. SYNOPSIS: Dials to the Internet if not already connected
  36. ENTRY: hwndParent - parent window
  37. dwFlags - reserved for future use. This parameter must be
  38. zero.
  39. EXIT: returns TRUE if a connection is made, or a connection already
  40. exists. Returns FALSE if a connection was not made or the
  41. user cancelled.
  42. NOTES: If a LAN is present and user has set preference to use LAN,
  43. then no dialing is done.
  44. Note that this API does not guarantee or verify that the Internet
  45. is on the other end of the connection -- it merely assures that
  46. an RNA or LAN connection is present.
  47. This function may be exposed to ISVs.
  48. ********************************************************************/
  49. BOOL WINAPI InetEnsureConnected(HWND hwndParent,DWORD dwFlags);
  50. #endif // _CONNAPI_H_