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.

64 lines
2.1 KiB

  1. #if !defined(AFX_MSIE_H__25959BF4_E700_11D2_A7AF_00C04F806200__INCLUDED_)
  2. #define AFX_MSIE_H__25959BF4_E700_11D2_A7AF_00C04F806200__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // Msie.h : main header file for MSIE.DLL
  7. #if !defined( __AFXCTL_H__ )
  8. #error include 'afxctl.h' before including this file
  9. #endif
  10. #include "resource.h" // main symbols
  11. #include "msiedata.h"
  12. #include <ras.h>
  13. #include <wincrypt.h>
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMsieApp : See Msie.cpp for implementation.
  16. class CMsieApp : public COleControlModule
  17. {
  18. public:
  19. BOOL InitInstance();
  20. int ExitInstance();
  21. DWORD AppGetTemplate(void ** ppBuffer);
  22. void AppGetIEData(IEDataType enType, long *lCount, void ***pppIEData, long *pCancel = NULL);
  23. void AppDeleteIEData(IEDataType enType, long lCount, void **ppIEData);
  24. private:
  25. void LoadTemplate();
  26. CString GetBooleanString(BOOL bValue, int nType = 0);
  27. CString ConvertIPAddressToString(RASIPADDR ipaddr);
  28. void GetRegValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszName, COleVariant &vtData);
  29. long GetRegValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszName, DWORD &dwData);
  30. long GetRegValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszName, CString &strData);
  31. CString GetLongPathName(LPCTSTR pszShortPath);
  32. DWORD GetDirSize(LPCTSTR pszFolder);
  33. CString GetFileVersion(LPCTSTR pszFileName);
  34. CString GetFileCompany(LPCTSTR pszFileName);
  35. DWORD GetCipherStrength();
  36. void GetCertificateInfo(PCCERT_CONTEXT pContext, int idsType, CPtrArray& ptrs);
  37. void GetPersonalCertificates(CPtrArray& ptrs);
  38. void GetOtherPeopleCertificates(CPtrArray& ptrs);
  39. bool m_bRunningOnNT;
  40. bool m_bRunningOnNT5OrHigher;
  41. BOOL m_fTemplateLoaded;
  42. unsigned char *m_pTemplateInfo;
  43. DWORD m_dwTemplateInfoLen;
  44. };
  45. extern const GUID CDECL _tlid;
  46. extern const WORD _wVerMajor;
  47. extern const WORD _wVerMinor;
  48. extern CMsieApp theApp;
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_MSIE_H__25959BF4_E700_11D2_A7AF_00C04F806200__INCLUDED)