D:/opendownloadmanager/ODM-1.x/Include.Add/archive/MyWindows.cpp File Reference

#include "StdAfx.h"
#include "MyWindows.h"
#include "Types.h"
#include <malloc.h>

Go to the source code of this file.

Functions

static void * AllocateForBSTR (size_t cb)
static void FreeForBSTR (void *pv)
static UINT MyStringLen (const wchar_t *s)
BSTR SysAllocStringByteLen (LPCSTR psz, UINT len)
BSTR SysAllocString (const OLECHAR *sz)
void SysFreeString (BSTR bstr)
UINT SysStringByteLen (BSTR bstr)
UINT SysStringLen (BSTR bstr)
HRESULT VariantClear (VARIANTARG *prop)
HRESULT VariantCopy (VARIANTARG *dest, VARIANTARG *src)
LONG CompareFileTime (const FILETIME *ft1, const FILETIME *ft2)
DWORD GetLastError ()


Function Documentation

static void* AllocateForBSTR ( size_t  cb  )  [inline, static]

Definition at line 13 of file MyWindows.cpp.

References malloc.

Referenced by SysAllocString(), and SysAllocStringByteLen().

LONG CompareFileTime ( const FILETIME ft1,
const FILETIME ft2 
)

static void FreeForBSTR ( void *  pv  )  [inline, static]

Definition at line 14 of file MyWindows.cpp.

References free.

Referenced by SysFreeString().

DWORD GetLastError (  ) 

Definition at line 110 of file MyWindows.cpp.

Referenced by fsInternetDownloader::_threadDownload(), CFdmApp::_threadExitProcess(), AmGetLastErrorToHResult(), AMovieDllRegisterServer(), AMovieDllRegisterServer2(), vmsFileUtil::BuildPath(), CFdmApp::CheckFdmStartedAlready(), CFdmApp::CheckLocked(), vmsFDM::vmsFile::Close(), ConvertBoolToHRESULT(), COutputQueue::COutputQueue(), fsURL::Crack(), vmsFDM::vmsFile::Create(), vmsFileExtensionInOs::CreateAssociation(), NWindows::NFile::NDirectory::CreateComplexDirectory(), CImageAllocator::CreateDIB(), NWindows::NFile::NDirectory::CreateTempDirectory(), CBaseWindow::DoCreateWindow(), CBaseWindow::DoneWithWindow(), CDlgExportHistory::ExportHistory(), fsBuildPathToFile(), fsErrorToStr(), fsSetFilePointer(), fsWinErrorToIR(), fsWinInetErrorToIR(), CCrc32Static::GetFileSizeQW(), NWindows::NFile::NIO::CFileBase::GetLength(), COpenCallbackImp::GetStream(), CBaseDispatch::GetTypeInfo(), CFdmApp::InitATL(), fsWebPageDownloadsMgr::Load(), CFdmApp::LoadHistory(), NWindows::NFile::NFind::MyGetCompressedFileSize(), NWindows::NFile::NFind::MyGetCompressedFileSizeW(), NWindows::NFile::NFind::CEnumeratorW::Next(), NWindows::NFile::NFind::CEnumerator::Next(), CDownloadProperties_GeneralPage::OnApply(), CDownloadProperties_ConnectionPage::OnApply(), OpenArchive(), fsFDMCmdLineParser::Parse(), fsDownloadsMgr::PerformVirusCheck(), CStdInFileStream::Read(), vmsFDM::vmsFile::Read(), vmsFDM::vmsFile::ReadString(), CFdmApp::SaveHistory(), fsMirrorURLsMgr::SearchForMirrors(), NWindows::NFile::NIO::CFileBase::Seek(), CBaseControlWindow::SetWindowPosition(), CAsyncIo::StartThread(), throw_exception(), vmsSingleInstance::vmsSingleInstance(), WinMain(), WndProc(), vmsFDM::vmsFile::Write(), and vmsFDM::vmsFile::WriteString().

static UINT MyStringLen ( const wchar_t *  s  )  [static]

BSTR SysAllocString ( const OLECHAR sz  ) 

BSTR SysAllocStringByteLen ( LPCSTR  psz,
UINT  len 
)

Definition at line 23 of file MyWindows.cpp.

References AllocateForBSTR().

Referenced by CMyComBSTR::MyCopy(), and VariantCopy().

void SysFreeString ( BSTR  bstr  ) 

UINT SysStringByteLen ( BSTR  bstr  ) 

Definition at line 59 of file MyWindows.cpp.

Referenced by CMyComBSTR::MyCopy(), ReadArchiverInfoList(), SysStringLen(), and VariantCopy().

UINT SysStringLen ( BSTR  bstr  ) 

Definition at line 66 of file MyWindows.cpp.

References SysStringByteLen().

Referenced by CMyComBSTR::Length().

HRESULT VariantClear ( VARIANTARG prop  ) 

HRESULT VariantCopy ( VARIANTARG dest,
VARIANTARG src 
)


Generated on Sun May 25 00:19:55 2008 by  doxygen 1.5.6