D:/opendownloadmanager/ODM-1.x/system.cpp File Reference

#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_STATSpStatistics
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 Documentation

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.

Definition at line 14 of file system.cpp.


Function Documentation

typedef BOOL ( WINAPI *  fntSetLayeredWndAttr  ) 

typedef DWORD ( WINAPI *  fntRasGetStat  ) 

LONG fsCopyKey ( HKEY  hSrcParent,
HKEY  hTargParent,
LPCTSTR  szSrcKey,
LPCTSTR  szTargKey 
)

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 383 of file system.cpp.

References GetFileSize().

int fsGetFTimeDaysDelta ( FILETIME  t1,
FILETIME  t2 
)

void fsInitRAS (  ) 

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 (  ) 

Definition at line 301 of file system.cpp.

References _TrayMgr, NULL, and fsTrayIconMgr::Remove().

void fsOpenUrlInBrowser ( LPCSTR  pszUrl  ) 

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().

DWORD fsRasEnumConnections ( LPRASCONN  p1,
LPDWORD  p2,
LPDWORD  p3 
)

Definition at line 146 of file system.cpp.

References _pfnRasEnumConnections, fsInitRAS(), and NULL.

Referenced by fsRASMgr::EnumConnections().

DWORD fsRasEnumEntries ( LPCTSTR  p1,
LPCTSTR  p2,
LPRASENTRYNAME  p3,
LPDWORD  p4,
LPDWORD  p5 
)

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  ) 

BOOL fsSetFilePointer ( HANDLE  hFile,
UINT64  uPosition,
DWORD  dwMethod 
)

void fsSetForegroundWindow ( HWND  hWnd  ) 

BOOL fsSetLayeredWindowAttributes ( HWND  hWnd,
COLORREF  clrKey,
BYTE  bAlpha,
DWORD  dwFlags 
)

Definition at line 32 of file system.cpp.

References _pfnSetLWA, FALSE, fsSysGetOsMajorVersion(), and NULL.

Referenced by CFloatingWnd::SetBlend(), and CFloatingInfoWnd::SetBlend().

int fsStrCmpNC ( LPCSTR  psz1,
LPCSTR  psz2 
)

Definition at line 269 of file system.cpp.

Referenced by fsDownloads_GroupsMgr::FindGroupByName().

int fsStrNCmpNC ( LPCSTR  psz1,
LPCSTR  psz2,
int  nCount 
)

Definition at line 285 of file system.cpp.

Referenced by fsDownloadMgr::OnDone().

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 (  ) 

BOOL GetIEVersion ( DWORD *  pMajor,
DWORD *  pMinor,
DWORD *  pBuild,
DWORD *  pSubBuild 
)

Definition at line 312 of file system.cpp.

References FALSE, LONG, and TRUE.

DWORD GetShell32Version (  ) 

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 (  ) 

BOOL vmsMoveFileAtWinBoot ( LPCSTR  pszSrc,
LPCSTR  pszDst 
)

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.

References FALSE, and NULL.

Referenced by CFdmApp::InitInstance(), and CFdmApp::RegisterServer().


Variable Documentation

DWORD _dwOsMajorVersion = 0

Definition at line 12 of file system.cpp.

Referenced by fsSysGetOsMajorVersion().

Definition at line 24 of file system.cpp.

Referenced by fsInitRAS(), and fsRasDial().

Definition at line 27 of file system.cpp.

Referenced by fsInitRAS(), and fsRasEnumConnections().

Definition at line 26 of file system.cpp.

Referenced by fsInitRAS(), and fsRasEnumEntries().

Definition at line 25 of file system.cpp.

Referenced by fsInitRAS(), and fsRasGetEntryDialParams().

Definition at line 23 of file system.cpp.

Referenced by fsInitRAS(), and fsRasGetErrorString().

fntRasGetStat _pfnRasGetStat = NULL

Definition at line 21 of file system.cpp.

Referenced by fsInitRAS(), and fsSysGetConnectionStatistics().

Definition at line 22 of file system.cpp.

Referenced by fsInitRAS(), and fsRasHangUp().

fntSetLayeredWndAttr _pfnSetLWA = NULL

Definition at line 30 of file system.cpp.

Referenced by fsSetLayeredWindowAttributes().

typedef BYTE

Definition at line 29 of file system.cpp.

typedef COLORREF

typedef DWORD

Definition at line 29 of file system.cpp.


Generated on Sun May 25 00:20:13 2008 by  doxygen 1.5.6