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.

51 lines
1.7 KiB

  1. #include "sdsutils.h"
  2. #include "inseng.h"
  3. #define MsgBox(title, msg) ModalDialog(TRUE);\
  4. MessageBeep(0xffffffff);\
  5. MessageBox(m_hwnd, msg, title, MB_OK | MB_TASKMODAL | MB_SETFOREGROUND);\
  6. ModalDialog(FALSE)
  7. // MS trust key defines, this are bit fields to determine which one to add/delete
  8. #define MSTRUSTKEY1 0x1
  9. #define MSTRUSTKEY2 0x2
  10. #define MSTRUSTKEY3 0x4
  11. #define MSTRUSTKEY4 0x8
  12. #define MSTRUSTKEY5 0x10
  13. #define MSTRUSTKEY6 0x20
  14. #define MSTRUSTKEY7 0x40
  15. #define MSTRUSTKEY8 0x80
  16. #define MSTRUSTKEY9 0x100
  17. #define MSTRUSTKEY10 0x200
  18. #define MSTRUSTKEY11 0x400
  19. #define MSTRUST_ALL MSTRUSTKEY1 | MSTRUSTKEY2 | MSTRUSTKEY3 | MSTRUSTKEY4 | MSTRUSTKEY5 | MSTRUSTKEY6 | MSTRUSTKEY7 | MSTRUSTKEY8 | MSTRUSTKEY9 | MSTRUSTKEY10 | MSTRUSTKEY11
  20. extern HFONT g_hFont;
  21. BOOL MyRestartDialog(HWND, BOOL);
  22. int ErrMsgBox(LPSTR pszText, LPCSTR pszTitle, UINT mbFlags);
  23. int LoadSz(UINT id, LPSTR pszBuf, UINT cMaxSize);
  24. BOOL KeepTransparent(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *lres);
  25. void WriteMSTrustKey(BOOL bSet, DWORD dwSetMSTrustKey, BOOL bForceMSTrust = FALSE);
  26. DWORD MsTrustKeyCheck();
  27. BOOL IsSiteInRegion(IDownloadSite *pISite, LPSTR pszRegion);
  28. #ifdef TESTCERT
  29. void UpdateTrustState();
  30. void ResetTestrootCertInTrustState();
  31. #endif
  32. void WriteActiveSetupValue(BOOL bSet);
  33. BOOL BrowseForDir( HWND hwndParent, LPSTR pszFolder, LPSTR pszTitle);
  34. #define EVENTWAIT_QUIT 0
  35. #define EVENTWAIT_DONE 1
  36. DWORD WaitForEvent(HANDLE hEvent, HWND hwnd);
  37. void SetControlFont();
  38. void SetFontForControl(HWND hwnd, UINT uiID);