#include "stdafx.h"#include "system.h"#include <windows.h>#include <shellapi.h>#include <shlwapi.h>Go to the source code of this file.
Typedefs | |
| typedef RAS_STATS * | pStatistics |
| typedef DWORD(WINAPI * | fntRasHangUp )(HRASCONN) |
| typedef DWORD(WINAPI * | fntRasGetErrorString )(UINT, LPTSTR, DWORD) |
| typedef DWORD(WINAPI * | fntRasDial )(LPRASDIALEXTENSIONS, LPCTSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN) |
| typedef DWORD(WINAPI * | fntRasGetEntryDialParams )(LPCTSTR, LPRASDIALPARAMS, LPBOOL) |
| typedef DWORD(WINAPI * | fntRasEnumEntries )(LPCTSTR, LPCTSTR, LPRASENTRYNAME, LPDWORD, LPDWORD) |
| typedef DWORD(WINAPI * | fntRasEnumConnections )(LPRASCONN, LPDWORD, LPDWORD) |
Functions | |
| typedef | DWORD (WINAPI *fntRasGetStat)(HRASCONN hRasConn |
| typedef | BOOL (WINAPI *fntSetLayeredWndAttr)(HWND |
| BOOL | fsSetLayeredWindowAttributes (HWND hWnd, COLORREF clrKey, BYTE bAlpha, DWORD dwFlags) |
| void | fsInitRAS () |
| void | fsSysGetConnectionStatistics (HRASCONN hRasConn, RAS_STATS *pStatistics) |
| DWORD | fsRasHangUp (HRASCONN hRasConn) |
| DWORD | fsRasEnumEntries (LPCTSTR p1, LPCTSTR p2, LPRASENTRYNAME p3, LPDWORD p4, LPDWORD p5) |
| DWORD | fsRasEnumConnections (LPRASCONN p1, LPDWORD p2, LPDWORD p3) |
| DWORD | fsRasGetErrorString (UINT p1, LPTSTR p2, DWORD p3) |
| DWORD | fsRasDial (LPRASDIALEXTENSIONS p1, LPCTSTR p2, LPRASDIALPARAMS p3, DWORD p4, LPVOID p5, LPHRASCONN p6) |
| DWORD | fsRasGetEntryDialParams (LPCTSTR p1, LPRASDIALPARAMS p2, LPBOOL p3) |
| DWORD | fsSysGetOsMajorVersion () |
| void | fsSetForegroundWindow (HWND hWnd) |
| void | fsOpenUrlInBrowser (LPCSTR pszUrl) |
| int | fsStrCmpNC (LPCSTR psz1, LPCSTR psz2) |
| int | fsStrNCmpNC (LPCSTR psz1, LPCSTR psz2, int nCount) |
| void | fsOnMemoryError () |
| BOOL | GetIEVersion (DWORD *pMajor, DWORD *pMinor, DWORD *pBuild, DWORD *pSubBuild) |
| typedef | HRESULT (CALLBACK *fntDllGetVersion)(DLLVERSIONINFO *) |
| DWORD | GetShell32Version () |
| BOOL | fsSetFilePointer (HANDLE hFile, UINT64 uPosition, DWORD dwMethod) |
| UINT64 | fsGetFileSize (HANDLE hFile) |
| int | fsGetFTimeDaysDelta (FILETIME t1, FILETIME t2) |
| BOOL | fsIsSystemInFullScreenMode () |
| BOOL | vmsSetSuspendState (BOOL bHibernate, BOOL bForce, BOOL bDisableWakeEvent) |
| LONG | fsCopyKey (HKEY hSrcParent, HKEY hTargParent, LPCTSTR szSrcKey, LPCTSTR szTargKey) |
| DWORD | vmsSHCopyKey (HKEY hkeySrc, LPCSTR pszSubKey, HKEY hkeyDst) |
| BOOL | vmsMoveFileAtWinBoot (LPCSTR pszSrc, LPCSTR pszDst) |
| BOOL | vmsDeleteFileAtWinBoot (LPCSTR pszFile) |
| char | vmsGetExeDriveLetter () |
Variables | |
| DWORD | _dwOsMajorVersion = 0 |
| fntRasGetStat | _pfnRasGetStat = NULL |
| fntRasHangUp | _pfnRasHangUp = NULL |
| fntRasGetErrorString | _pfnRasGetErrorString = NULL |
| fntRasDial | _pfnRasDial = NULL |
| fntRasGetEntryDialParams | _pfnRasGetEntryDialParams = NULL |
| fntRasEnumEntries | _pfnRasEnumEntries = NULL |
| fntRasEnumConnections | _pfnRasEnumConnections = NULL |
| typedef | COLORREF |
| typedef | BYTE |
| typedef | DWORD |
| fntSetLayeredWndAttr | _pfnSetLWA = NULL |
| typedef DWORD(WINAPI* fntRasDial)(LPRASDIALEXTENSIONS, LPCTSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN) |
Definition at line 17 of file system.cpp.
| typedef DWORD(WINAPI* fntRasEnumConnections)(LPRASCONN, LPDWORD, LPDWORD) |
Definition at line 20 of file system.cpp.
| typedef DWORD(WINAPI* fntRasEnumEntries)(LPCTSTR, LPCTSTR, LPRASENTRYNAME, LPDWORD, LPDWORD) |
Definition at line 19 of file system.cpp.
| typedef DWORD(WINAPI* fntRasGetEntryDialParams)(LPCTSTR, LPRASDIALPARAMS, LPBOOL) |
Definition at line 18 of file system.cpp.
| typedef DWORD(WINAPI* fntRasGetErrorString)(UINT, LPTSTR, DWORD) |
Definition at line 16 of file system.cpp.
| typedef DWORD(WINAPI* fntRasHangUp)(HRASCONN) |
Definition at line 15 of file system.cpp.
| typedef RAS_STATS* pStatistics |
Definition at line 14 of file system.cpp.
| typedef BOOL | ( | WINAPI * | fntSetLayeredWndAttr | ) |
| typedef DWORD | ( | WINAPI * | fntRasGetStat | ) |
Definition at line 445 of file system.cpp.
References fsCopyKey(), LONG, and NULL.
Referenced by CFdmApp::CheckRegistry(), and fsCopyKey().
| UINT64 fsGetFileSize | ( | HANDLE | hFile | ) |
Definition at line 391 of file system.cpp.
References _FILETIME::dwHighDateTime, and _FILETIME::dwLowDateTime.
Referenced by fsDownloadsHistoryMgr::ApplySettings(), and fsDldHistRecFilter_DuringPeriod::IsSatisfies().
| void fsInitRAS | ( | ) |
Definition at line 51 of file system.cpp.
References _pfnRasDial, _pfnRasEnumConnections, _pfnRasEnumEntries, _pfnRasGetEntryDialParams, _pfnRasGetErrorString, _pfnRasGetStat, _pfnRasHangUp, BOOL, FALSE, NULL, and TRUE.
Referenced by fsRasDial(), fsRasEnumConnections(), fsRasEnumEntries(), fsRasGetEntryDialParams(), fsRasGetErrorString(), fsRasHangUp(), and fsSysGetConnectionStatistics().
| BOOL fsIsSystemInFullScreenMode | ( | ) |
Definition at line 401 of file system.cpp.
References FALSE, NULL, and TRUE.
Referenced by CFloatingInfoWnd::NeedToShow(), CFloatingWnd::OnTimer(), and CFloatingInfoWnd::OnTimer().
| void fsOnMemoryError | ( | ) |
| void fsOpenUrlInBrowser | ( | LPCSTR | pszUrl | ) |
Definition at line 220 of file system.cpp.
Referenced by fsOpenBuyPage(), CDlg_SpreadHelp2_wb_Events::OnBeforeNavigate2(), CMainFrame::OnDllangfiles(), CMainFrame::OnDonate(), CMainFrame::OnFDC(), CFDCButton::OnFDC(), CMainFrame::OnHomepage(), CUrlWnd::OnLButtonDown(), CWnd_FDMGetCustVer_Btn::OnLButtonUp(), CWnd_Banner::OnLButtonUp(), CDlg_SpreadHelp_LinkCode::OnMoreexamples(), CDlg_SpreadHelp2::OnOK(), CWebInterfaceDlg::OnOpenInBrowser(), CMainFrame::OnSupport(), and CDlg_Unpack_InstAddPack::OnVisitwebsite().
| DWORD fsRasDial | ( | LPRASDIALEXTENSIONS | p1, | |
| LPCTSTR | p2, | |||
| LPRASDIALPARAMS | p3, | |||
| DWORD | p4, | |||
| LPVOID | p5, | |||
| LPHRASCONN | p6 | |||
| ) |
Definition at line 170 of file system.cpp.
References _pfnRasDial, fsInitRAS(), and NULL.
Referenced by CDialDlg::_RasDialFunc(), and CDialDlg::StartConnect().
Definition at line 146 of file system.cpp.
References _pfnRasEnumConnections, fsInitRAS(), and NULL.
Referenced by fsRASMgr::EnumConnections().
Definition at line 134 of file system.cpp.
References _pfnRasEnumEntries, fsInitRAS(), and NULL.
Referenced by fsRASMgr::EnumEntries().
| DWORD fsRasGetEntryDialParams | ( | LPCTSTR | p1, | |
| LPRASDIALPARAMS | p2, | |||
| LPBOOL | p3 | |||
| ) |
Definition at line 182 of file system.cpp.
References _pfnRasGetEntryDialParams, fsInitRAS(), and NULL.
Referenced by CDialDlg::StartConnect().
| DWORD fsRasGetErrorString | ( | UINT | p1, | |
| LPTSTR | p2, | |||
| DWORD | p3 | |||
| ) |
Definition at line 158 of file system.cpp.
References _pfnRasGetErrorString, fsInitRAS(), and NULL.
Referenced by CDialDlg::_RasDialFunc().
| DWORD fsRasHangUp | ( | HRASCONN | hRasConn | ) |
Definition at line 122 of file system.cpp.
References _pfnRasHangUp, fsInitRAS(), and NULL.
Referenced by CDialDlg::_RasDialFunc(), CDialDlg::Cancel(), fsScheduleMgr::Hangup(), and CDialDlg::OnInitDialog().
| BOOL fsSetFilePointer | ( | HANDLE | hFile, | |
| UINT64 | uPosition, | |||
| DWORD | dwMethod | |||
| ) |
Definition at line 365 of file system.cpp.
References FALSE, GetLastError(), LONG, and TRUE.
Referenced by fsInternetDownloader::__threadDownload_flushdata(), fsDownloadMgr::_threadReserveDiskSpace(), fsAVIIdx1Builder::BuildIdx1(), fsDShowFilterDetector::IsFilterMeets(), fsDownloadMgr::ProcessSCR(), fsFileStream::Read(), fsDownloadMgr::ReserveDiskSpace(), and fsArchive::fsArchiveFileStream::Seek().
| void fsSetForegroundWindow | ( | HWND | hWnd | ) |
Definition at line 207 of file system.cpp.
References FALSE, NULL, and TRUE.
Referenced by mfcSetForegroundWindow(), CWaitForConfirmationDlg::OnInitDialog(), CSpiderAddPageDlg::OnInitDialog(), CDownloadAlrExistsDlg::OnInitDialog(), CCreateDownloadListDlg::OnInitDialog(), and CCreateDownloadDlg::OnInitDialog().
Definition at line 32 of file system.cpp.
References _pfnSetLWA, FALSE, fsSysGetOsMajorVersion(), and NULL.
Referenced by CFloatingWnd::SetBlend(), and CFloatingInfoWnd::SetBlend().
| void fsSysGetConnectionStatistics | ( | HRASCONN | hRasConn, | |
| RAS_STATS * | pStatistics | |||
| ) |
Definition at line 107 of file system.cpp.
References _pfnRasGetStat, fsInitRAS(), fsSysGetOsMajorVersion(), and NULL.
Referenced by CDialDlg::_RasDialFunc().
| DWORD fsSysGetOsMajorVersion | ( | ) |
Definition at line 194 of file system.cpp.
References _dwOsMajorVersion.
Referenced by CDialDlg::_RasDialFunc(), CFloatingWnd::Create(), CFloatingInfoWnd::Create(), fsSetLayeredWindowAttributes(), fsSysGetConnectionStatistics(), CSchedule_WTSPage::OnHangupifless(), CFloatingWnd::SetBlend(), CFloatingInfoWnd::SetBlend(), and CPrg_GeneralPage_FWDlg::UpdateEnabled().
| BOOL GetIEVersion | ( | DWORD * | pMajor, | |
| DWORD * | pMinor, | |||
| DWORD * | pBuild, | |||
| DWORD * | pSubBuild | |||
| ) |
| DWORD GetShell32Version | ( | ) |
Definition at line 335 of file system.cpp.
Referenced by fsTrayIconMgr::fsTrayIconMgr(), CMainFrame::OnCreate(), CDownloaderProperties_NotificationsPage::OnUseballoon(), and fsTrayIconMgr::ShowBalloon().
| typedef HRESULT | ( | CALLBACK * | fntDllGetVersion | ) |
| BOOL vmsDeleteFileAtWinBoot | ( | LPCSTR | pszFile | ) |
Definition at line 572 of file system.cpp.
References NULL, and vmsMoveFileAtWinBoot().
Referenced by fsDownloadsMgr::OnDownloadStoppedOrDone().
| char vmsGetExeDriveLetter | ( | ) |
Definition at line 577 of file system.cpp.
References NULL.
Referenced by fsDownloadMgr::LoadState(), CDownloads_Groups::OnOpengroupfolder(), fsDownloadMgr::ProcessFilePathMacroses(), and fsDownloadMgr::SaveState().
Definition at line 551 of file system.cpp.
References LPSTR.
Referenced by vmsDeleteFileAtWinBoot().
| BOOL vmsSetSuspendState | ( | BOOL | bHibernate, | |
| BOOL | bForce, | |||
| BOOL | bDisableWakeEvent | |||
| ) |
Definition at line 427 of file system.cpp.
References BOOL, FALSE, and NULL.
Referenced by fsScheduleMgr::_threadShutdown().
| DWORD vmsSHCopyKey | ( | HKEY | hkeySrc, | |
| LPCSTR | pszSubKey, | |||
| HKEY | hkeyDst | |||
| ) |
Definition at line 533 of file system.cpp.
Referenced by CFdmApp::InitInstance(), and CFdmApp::RegisterServer().
| DWORD _dwOsMajorVersion = 0 |
| fntRasDial _pfnRasDial = NULL |
| fntRasGetStat _pfnRasGetStat = NULL |
Definition at line 21 of file system.cpp.
Referenced by fsInitRAS(), and fsSysGetConnectionStatistics().
| fntRasHangUp _pfnRasHangUp = NULL |
| fntSetLayeredWndAttr _pfnSetLWA = NULL |
| typedef BYTE |
Definition at line 29 of file system.cpp.
| typedef COLORREF |
Definition at line 29 of file system.cpp.
Referenced by CWnd_DownloadProgress::_threadDraw(), vmsImage_CtxFree::CreateImagesBitmaps(), fsODMenu::DrawCheckMark(), CListCtrlEx::DrawItem(), CToolBarEx::InsertGroup(), fsDownloadsMgr::OnDownloadDescEventRcvd(), CBaseControlWindow::put_BorderColor(), fsDownloadRegSaver::SaveDownload(), and CDownloads_Tasks::UpdateDownload().
| typedef DWORD |
Definition at line 29 of file system.cpp.
1.5.6