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

#include "stdafx.h"
#include "list.h"
#include "DownloadsWnd.h"
#include "downloadproperties.h"
#include "fsDownloadMgr.h"
#include "system.h"

Go to the source code of this file.

Typedefs

typedef ULONGLONGLPULONGLONG

Functions

void DrawVerticalFrame (HDC hdc, int xStart, int xEnd, int yStart, int height)
void DrawHorizontalFrame (HDC hdc, int yStart, int yEnd, int xStart, int width)
void BytesToXBytes (UINT64 uBytes, float *pfXBytes, LPSTR pszXVal)
CString BytesToString (UINT64 uSize)
void SystemTimeToStr (SYSTEMTIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds)
void FileTimeToStr (FILETIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds)
BOOL fsErrorToStr (LPSTR pszErr, DWORD dwMaxSize, DWORD *pdwLastError)
void fsGetPath (LPCSTR pszFile, LPSTR pszPath)
void fsGetFileName (LPCSTR pszFilePath, LPSTR pszFileName)
BOOL fsBuildPathToFile (LPCSTR pszFileName)
BOOL fsBuildPathToFileW (LPCWSTR pwszFileName)
BOOL DPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString)
BOOL DNPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString)
BOOL DPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask)
void DPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal)
void DPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
void DPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
void DNPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal)
BOOL DNPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask)
void DNPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
void DNPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
LPCSTR strcmp_m (LPCSTR pszWhere, LPCSTR pszWhat)
LPCSTR strcmpi_m (LPCSTR pszWhere, LPCSTR pszWhat)
BOOL IsExtStrEq (LPCSTR pszMasked, LPCSTR psz2)
BOOL IsExtInExtsStr (LPCSTR pszExts, LPCSTR pszExt)
BOOL fsSaveStrToFile (LPCSTR pszStr, HANDLE hFile)
BOOL fsReadStrFromFile (LPSTR *ppszStr, HANDLE hFile)
BOOL fsReadStringFromFile (HANDLE hFile, fsString &str)
DWORD fsGetTimeDelta (FILETIME *t1, FILETIME *t2)
DWORD fsGetTimeDelta (const SYSTEMTIME *t1, const SYSTEMTIME *t2)
CString fsTimeInSecondsToStr (DWORD dwAmount)
void fsPathToGoodPath (LPSTR pszPath)
void fsPathToGoodUrlPath (LPSTR pszPath)
void fsOpenBuyPage ()
CString fsBytesToStr (UINT64 uBytes)
CString fsGetGrpOTHEROutFolder ()
void vmsUtf8ToAscii (LPSTR psz)
std::wstring vmsUtf8Unicode (LPCSTR psz)

Variables

CDownloadsWnd_pwndDownloads


Typedef Documentation

Definition at line 641 of file misc.cpp.


Function Documentation

CString BytesToString ( UINT64  uSize  ) 

void BytesToXBytes ( UINT64  uBytes,
float *  pfXBytes,
LPSTR  pszXVal 
)

BOOL DNPEntry_IsAllEqual ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString 
)

Definition at line 332 of file misc.cpp.

References FALSE, LPVOID, and TRUE.

Referenced by CDownloadProperties_ProtocolPage::OnInitDialog().

BOOL DNPEntry_IsAllEqual_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwBitMask 
)

Definition at line 459 of file misc.cpp.

References FALSE, LPDWORD, and TRUE.

void DNPEntry_SetValue ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString,
const void *  lpNewVal 
)

Definition at line 431 of file misc.cpp.

References fsnew, LPSTR, LPVOID, and SAFE_DELETE_ARRAY.

void DNPEntry_SetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 480 of file misc.cpp.

References LPDWORD.

void DNPEntry_UnsetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 489 of file misc.cpp.

References LPDWORD.

BOOL DPEntry_IsAllEqual ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString 
)

Definition at line 300 of file misc.cpp.

References FALSE, LPVOID, and TRUE.

BOOL DPEntry_IsAllEqual_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwBitMask 
)

Definition at line 364 of file misc.cpp.

References FALSE, LPDWORD, and TRUE.

void DPEntry_SetValue ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString,
const void *  lpNewVal 
)

Definition at line 385 of file misc.cpp.

References fsnew, LPSTR, LPVOID, and SAFE_DELETE_ARRAY.

void DPEntry_SetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 413 of file misc.cpp.

References LPDWORD.

void DPEntry_UnsetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 422 of file misc.cpp.

References LPDWORD.

void DrawHorizontalFrame ( HDC  hdc,
int  yStart,
int  yEnd,
int  xStart,
int  width 
)

Definition at line 50 of file misc.cpp.

References NULL.

Referenced by CWndSplitter::OnPaint().

void DrawVerticalFrame ( HDC  hdc,
int  xStart,
int  xEnd,
int  yStart,
int  height 
)

Definition at line 21 of file misc.cpp.

References NULL.

Referenced by CWndSplitter::OnPaint().

void FileTimeToStr ( FILETIME time,
LPSTR  pszDate,
LPSTR  pszTime,
BOOL  bSeconds 
)

BOOL fsBuildPathToFile ( LPCSTR  pszFileName  ) 

BOOL fsBuildPathToFileW ( LPCWSTR  pwszFileName  ) 

Definition at line 279 of file misc.cpp.

References MY_MAX_PATH, NULL, and TRUE.

Referenced by vmsBtDownloadManager::MoveToFolder().

CString fsBytesToStr ( UINT64  uBytes  ) 

BOOL fsErrorToStr ( LPSTR  pszErr,
DWORD  dwMaxSize,
DWORD *  pdwLastError 
)

void fsGetFileName ( LPCSTR  pszFilePath,
LPSTR  pszFileName 
)

CString fsGetGrpOTHEROutFolder (  ) 

Definition at line 744 of file misc.cpp.

References _DldsGrps, vmsDownloadsGroupsMgr::FindGroup(), and GRP_OTHER_ID.

void fsGetPath ( LPCSTR  pszFile,
LPSTR  pszPath 
)

DWORD fsGetTimeDelta ( const SYSTEMTIME *  t1,
const SYSTEMTIME *  t2 
)

Definition at line 648 of file misc.cpp.

References fsGetTimeDelta().

DWORD fsGetTimeDelta ( FILETIME t1,
FILETIME t2 
)

void fsOpenBuyPage (  ) 

void fsPathToGoodPath ( LPSTR  pszPath  ) 

void fsPathToGoodUrlPath ( LPSTR  pszPath  ) 

Definition at line 677 of file misc.cpp.

References LPSTR.

Referenced by fsWebPageDownloader::GetFileForReplace().

BOOL fsReadStrFromFile ( LPSTR ppszStr,
HANDLE  hFile 
)

BOOL fsReadStringFromFile ( HANDLE  hFile,
fsString str 
)

BOOL fsSaveStrToFile ( LPCSTR  pszStr,
HANDLE  hFile 
)

CString fsTimeInSecondsToStr ( DWORD  dwAmount  ) 

Definition at line 656 of file misc.cpp.

Referenced by CDownloads_Tasks::GetDownloadText(), and CUpdateDlg::OnTimer().

BOOL IsExtInExtsStr ( LPCSTR  pszExts,
LPCSTR  pszExt 
)

Definition at line 559 of file misc.cpp.

References FALSE, IsExtStrEq(), NULL, and TRUE.

BOOL IsExtStrEq ( LPCSTR  pszMasked,
LPCSTR  psz2 
)

Definition at line 554 of file misc.cpp.

References NULL, and strcmpi_m().

LPCSTR strcmp_m ( LPCSTR  pszWhere,
LPCSTR  pszWhat 
)

Definition at line 500 of file misc.cpp.

References NULL, and strcmp_m().

LPCSTR strcmpi_m ( LPCSTR  pszWhere,
LPCSTR  pszWhat 
)

Definition at line 531 of file misc.cpp.

References NULL, and strcmp_m().

void SystemTimeToStr ( SYSTEMTIME *  time,
LPSTR  pszDate,
LPSTR  pszTime,
BOOL  bSeconds 
)

void vmsUtf8ToAscii ( LPSTR  psz  ) 

std::wstring vmsUtf8Unicode ( LPCSTR  psz  ) 

Definition at line 758 of file misc.cpp.

Referenced by vmsBtDownloadManager::get_FileNameW().


Variable Documentation

Definition at line 41 of file DownloadsWnd.cpp.


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