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.

49 lines
1.4 KiB

  1. #ifndef _INC_REGUTIL_H
  2. #define _INC_REGUTIL_H
  3. #ifdef WIN16
  4. EXTERN_C {
  5. #endif
  6. HRESULT WINAPI SetDefaultNewsHandler(DWORD dwFlags);
  7. HRESULT WINAPI SetDefaultMailHandler(DWORD dwFlags); // dwFlags is unused, just to be consistent with SetDefaultNewsHandler()
  8. BOOL WINAPI FIsDefaultNewsConfiged(DWORD dwFlags);
  9. BOOL WINAPI FIsDefaultMailConfiged(void);
  10. #ifdef WIN16
  11. }
  12. #endif
  13. BOOL GetAthenaRegPath(TCHAR *szAthenaDll, DWORD cch);
  14. //BOOL GetExePath(LPCTSTR szExe, TCHAR *szPath, DWORD cch, BOOL fDirOnly);
  15. #define RESTORE_MAIL 0x0001
  16. #define RESTORE_NEWS 0x0002
  17. #define DEFAULT_MAIL 1
  18. #define DEFAULT_NEWS 2
  19. #define DEFAULT_NEWSONLY 4
  20. #define DEFAULT_OUTNEWS 8
  21. #define DEFAULT_UI 16
  22. #define DEFAULT_DONTFORCE 32
  23. #define DEFAULT_SETUPMODE 64
  24. #define NOT_HANDLED -1
  25. #define HANDLED_OTHER 0
  26. #define HANDLED_URLDLL 1
  27. #define HANDLED_OLD 2
  28. #define HANDLED_CURR 3
  29. #define HANDLED_OUTLOOK 4
  30. int DefaultClientSet(LPCTSTR pszClient);
  31. void SetDefaultClient(LPCTSTR pszClient, LPCTSTR pszProduct);
  32. HRESULT ISetDefaultMailHandler(LPCTSTR pszProduct, DWORD dwFlags);
  33. HRESULT ISetDefaultNewsHandler(LPCTSTR pszProduct, DWORD dwFlags);
  34. BOOL SetRegValue (BOOL bVal,BOOL bMessageBox);
  35. BOOL GetRegValue();
  36. BOOL FValidClient(LPCTSTR pszClient, LPCTSTR pszProduct);
  37. HRESULT GetCLSIDFromSubKey(HKEY hKey, LPSTR rgchBuf, ULONG *pcbBuf);
  38. #endif // _INC_REGUTIL_H