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.

56 lines
2.6 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright (c) 1994-1998 Microsoft Corporation
  4. //*********************************************************************
  5. // HISTORY:
  6. //
  7. // 96/05/23 markdu Created.
  8. // 96/05/26 markdu Update config API.
  9. // 96/05/27 markdu Added lpIcfgGetLastInstallErrorText.
  10. // 96/05/27 markdu Use lpIcfgInstallInetComponents and lpIcfgNeedInetComponents.
  11. #ifndef _ICFGCALL_H_
  12. #define _ICFGCALL_H_
  13. // function pointer typedefs for RNA apis from rnaph.dll and rasapi32.dll
  14. typedef DWORD (WINAPI * GETSETUPXERRORTEXT ) (DWORD dwErr,LPSTR pszErrorDesc,DWORD cbErrorDesc);
  15. typedef HRESULT (WINAPI * ICFGSETINSTALLSOURCEPATH ) (LPCSTR lpszSourcePath);
  16. typedef HRESULT (WINAPI * ICFGINSTALLSYSCOMPONENTS ) (HWND hwndParent, DWORD dwfOptions, LPBOOL lpfNeedsRestart);
  17. typedef HRESULT (WINAPI * ICFGNEEDSYSCOMPONENTS ) (DWORD dwfOptions, LPBOOL lpfNeedComponents);
  18. typedef HRESULT (WINAPI * ICFGISGLOBALDNS ) (LPBOOL lpfGlobalDNS);
  19. typedef HRESULT (WINAPI * ICFGREMOVEGLOBALDNS ) (void);
  20. typedef HRESULT (WINAPI * ICFGTURNOFFFILESHARING ) (DWORD dwfDriverType, HWND hwndParent);
  21. typedef HRESULT (WINAPI * ICFGISFILESHARINGTURNEDON ) (DWORD dwfDriverType, LPBOOL lpfSharingOn);
  22. typedef DWORD (WINAPI * ICFGGETLASTINSTALLERRORTEXT) (LPSTR lpszErrorDesc, DWORD cbErrorDesc);
  23. typedef HRESULT (WINAPI * ICFGSTARTSERVICES ) (void);
  24. //
  25. // These are available only on the NT icfg32.dll
  26. //
  27. typedef HRESULT (WINAPI * ICFGNEEDMODEM ) (DWORD dwfOptions, LPBOOL lpfNeedModem);
  28. typedef HRESULT (WINAPI * ICFGINSTALLMODEM ) (HWND hwndParent, DWORD dwfOptions, LPBOOL lpfNeedsStart);
  29. BOOL InitConfig(HWND hWnd);
  30. VOID DeInitConfig();
  31. //
  32. // global function pointers for Config apis
  33. //
  34. extern ICFGSETINSTALLSOURCEPATH lpIcfgSetInstallSourcePath;
  35. extern ICFGINSTALLSYSCOMPONENTS lpIcfgInstallInetComponents;
  36. extern ICFGNEEDSYSCOMPONENTS lpIcfgNeedInetComponents;
  37. extern ICFGISGLOBALDNS lpIcfgIsGlobalDNS;
  38. extern ICFGREMOVEGLOBALDNS lpIcfgRemoveGlobalDNS;
  39. extern ICFGTURNOFFFILESHARING lpIcfgTurnOffFileSharing;
  40. extern ICFGISFILESHARINGTURNEDON lpIcfgIsFileSharingTurnedOn;
  41. extern ICFGGETLASTINSTALLERRORTEXT lpIcfgGetLastInstallErrorText;
  42. extern ICFGSTARTSERVICES lpIcfgStartServices;
  43. //
  44. // These two calls are only in NT icfg32.dll
  45. //
  46. extern ICFGNEEDMODEM lpIcfgNeedModem;
  47. extern ICFGINSTALLMODEM lpIcfgInstallModem;
  48. #endif // _ICFGCALL_H_