Leaked source code of windows server 2003
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.

30 lines
1.0 KiB

  1. #ifndef _AUTODIAL_H_
  2. #define _AUTODIAL_H_
  3. #include <regstr.h>
  4. #include <inetreg.h>
  5. #include <windowsx.h>
  6. #include <rasdlg.h>
  7. // initialization for autodial
  8. BOOL InitAutodialModule(void);
  9. void ExitAutodialModule(void);
  10. LPSTR GetActiveConnectionName();
  11. // Types for ras functions
  12. typedef DWORD (WINAPI* _RASENUMENTRIESW) (LPWSTR, LPWSTR, LPRASENTRYNAMEW, LPDWORD, LPDWORD);
  13. typedef DWORD (WINAPI* _RASGETCONNECTSTATUSW) (HRASCONN, LPRASCONNSTATUSW);
  14. typedef DWORD (WINAPI* _RASENUMCONNECTIONSW) (LPRASCONNW, LPDWORD, LPDWORD);
  15. typedef DWORD (WINAPI* _RASGETENTRYPROPERTIESW) ( LPWSTR, LPWSTR, LPRASENTRYW, LPDWORD, LPBYTE, LPDWORD );
  16. // Ras wide prototypes
  17. DWORD _RasEnumEntriesW(LPWSTR, LPWSTR, LPRASENTRYNAMEW, LPDWORD, LPDWORD);
  18. DWORD _RasGetConnectStatusW(HRASCONN, LPRASCONNSTATUSW);
  19. DWORD _RasEnumConnectionsW(LPRASCONNW, LPDWORD, LPDWORD);
  20. DWORD _RasGetEntryPropertiesW(LPWSTR, LPWSTR, LPRASENTRYW, LPDWORD, LPBYTE, LPDWORD);
  21. // how many ras connections do we care about?
  22. #define MAX_CONNECTION 4
  23. #endif // _AUTODIAL_H_