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.

69 lines
1.8 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows **/
  3. /** Copyright (C) Microsoft Corp., 1995 **/
  4. /*****************************************************************/
  5. //
  6. // AUTODIAL.HPP - winsock autodial hook code
  7. //
  8. // HISTORY:
  9. //
  10. // 3/22/95 jeremys Created.
  11. //
  12. #ifndef _AUTODIAL_HPP_
  13. #define _AUTODIAL_HPP_
  14. #include <raserror.h>
  15. // typedefs for function pointers for RNA functions
  16. typedef DWORD (WINAPI * RNAENUMDEVICES) (LPBYTE, LPDWORD, LPDWORD);
  17. typedef DWORD (WINAPI * RNAIMPLICITDIAL) (HWND,LPSTR);
  18. typedef DWORD (WINAPI * RNAACTIVATEENGINE) (VOID);
  19. typedef DWORD (WINAPI * RNADEACTIVATEENGINE) (VOID);
  20. typedef DWORD (WINAPI * RNAENUMCONNENTRIES) (LPSTR,UINT,LPDWORD);
  21. typedef DWORD (WINAPI * RASCREATEPHONEBOOKENTRY) (HWND,LPSTR);
  22. typedef DWORD (WINAPI * RASEDITPHONEBOOKENTRY) (HWND,LPSTR,LPSTR);
  23. // typedefs for function pointers for Internet wizard functions
  24. typedef VOID (WINAPI * INETPERFORMSECURITYCHECK) (HWND,LPBOOL);
  25. // structure for getting proc addresses of api functions
  26. typedef struct APIFCN {
  27. PVOID * ppFcnPtr;
  28. LPCSTR pszName;
  29. } APIFCN;
  30. #define SMALLBUFLEN 48 // convenient size for small buffers
  31. #ifndef RAS_MaxEntryName
  32. #undef RAS_MaxEntryName
  33. #endif // RAS_MaxEntryName
  34. #define RAS_MaxEntryName 256
  35. /* Prototypes
  36. *************/
  37. /* autodial.cpp */
  38. extern BOOL InitAutodialModule(void);
  39. extern void ExitAutodialModule(void);
  40. // opcode ordinals for dwOpCode parameter in hook
  41. #define AUTODIAL_CONNECT 1
  42. #define AUTODIAL_GETHOSTBYADDR 2
  43. #define AUTODIAL_GETHOSTBYNAME 3
  44. #define AUTODIAL_LISTEN 4
  45. #define AUTODIAL_RECVFROM 5
  46. #define AUTODIAL_SENDTO 6
  47. // maximum length of local host name
  48. #define MAX_LOCAL_HOST 255
  49. // max length of exported autodial handler function
  50. #define MAX_AUTODIAL_FCNNAME 48
  51. #endif