#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 () |
| static void* AllocateForBSTR | ( | size_t | cb | ) | [inline, static] |
Definition at line 13 of file MyWindows.cpp.
References malloc.
Referenced by SysAllocString(), and SysAllocStringByteLen().
Definition at line 97 of file MyWindows.cpp.
References _FILETIME::dwHighDateTime, and _FILETIME::dwLowDateTime.
Referenced by CDownloads_Tasks::_compareDownloads(), CDownloads_History::_sortFunc(), fsScheduleMgr::CalculateStartTime(), NWindows::NCOM::CPropVariant::Compare(), fsScheduleMgr::IsDownloadScheduled(), fsScheduleMgr::IsNeedToStart(), fsDldHistRecFilter_Custom::IsSatisfies(), fsDldTasksFilter::IsSatisfies(), fsScheduleMgr::NextTimeToStr(), and fsScheduleMgr::RepairNextTime().
| static void FreeForBSTR | ( | void * | pv | ) | [inline, static] |
| 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] |
Definition at line 16 of file MyWindows.cpp.
Referenced by CStringBase< wchar_t >::CStringBase(), NWindows::NFile::NDirectory::MyGetFullPathName(), CStringBase< wchar_t >::operator+=(), CStringBase< wchar_t >::operator=(), CStringBase< wchar_t >::ReleaseBuffer(), and SysAllocString().
Definition at line 38 of file MyWindows.cpp.
References AllocateForBSTR(), and MyStringLen().
Referenced by CMyComBSTR::CMyComBSTR(), CFDMFlashVideoDownloads::CreateFromUrl(), CWGUrlReceiver::get_Comment(), CWgUrlListReceiver::get_Comment(), CWGUrlReceiver::get_Cookies(), CWgUrlListReceiver::get_Cookies(), CFDMDownload::get_DownloadText(), CWGUrlReceiver::get_FileName(), CFDMUploadPackage::get_Name(), CWGUrlReceiver::get_PostData(), CWGUrlReceiver::get_Referer(), CWgUrlListReceiver::get_Referer(), CWGUrlReceiver::get_UIState(), CWgUrlListReceiver::get_Url(), CFDMDownload::get_Url(), CFDMUploadPackage::GetFilePath(), CFDMUploader::GetUploadPackageName(), CFDMUploader::GetUploadTargetUrl(), NWindows::NCOM::CPropVariant::operator=(), CMyComBSTR::operator=(), and WriteBSTR().
Definition at line 23 of file MyWindows.cpp.
References AllocateForBSTR().
Referenced by CMyComBSTR::MyCopy(), and VariantCopy().
| void SysFreeString | ( | BSTR | bstr | ) |
Definition at line 53 of file MyWindows.cpp.
References FreeForBSTR().
Referenced by CFDMFlashVideoDownloads::_threadCreateDownload(), CWgBHO::BeforeNavigate2(), CFDMIECookiesBHO::BeforeNavigate2(), CFDMUploader::CreateUpload(), CMyComBSTR::Empty(), FreeBSTR(), vms7zipFormatDLL::get_GUID(), vmsFlashHelper::GetFlashInfo(), vmsFlashHelper::GetFlashMoviesList(), vmsFlashHelper::GetFlashMoviesObjList_noframes(), CDownloads_Opinions_WBEvents::GetFormInputElementText(), vms7zipArchiveExtractCallback::GetStream(), CWgUrlListReceiver::GetUrlListFromDocumentSelection(), vmsFlashHelper::is_FlashElement(), vms7zipFormatDLL::IsSupportedArchive(), CMyComBSTR::operator=(), CFDMFlashVideoDownloads::ProcessIeDocument(), CFDMIECookiesBHO::ProgressChange(), vmsFlashHelper::SaveFlashMovies_noframes(), CFDMForFirefox::TransferUrlToFDM(), VariantClear(), CWgBHO::WalkThroughForm(), CFDMIECookiesBHO::WalkThroughForm(), and CMyComBSTR::~CMyComBSTR().
Definition at line 59 of file MyWindows.cpp.
Referenced by CMyComBSTR::MyCopy(), ReadArchiverInfoList(), SysStringLen(), and VariantCopy().
Definition at line 66 of file MyWindows.cpp.
References SysStringByteLen().
Referenced by CMyComBSTR::Length().
| HRESULT VariantClear | ( | VARIANTARG * | prop | ) |
Definition at line 71 of file MyWindows.cpp.
References tagPROPVARIANT::bstrVal, S_OK, SysFreeString(), tagPROPVARIANT::vt, VT_BSTR, and VT_EMPTY.
Referenced by NWindows::NCOM::CPropVariant::Copy(), NWindows::NCOM::MyPropVariantClear(), and VariantCopy().
| HRESULT VariantCopy | ( | VARIANTARG * | dest, | |
| VARIANTARG * | src | |||
| ) |
Definition at line 79 of file MyWindows.cpp.
References tagPROPVARIANT::bstrVal, E_OUTOFMEMORY, HRESULT, S_OK, SysAllocStringByteLen(), SysStringByteLen(), VariantClear(), tagPROPVARIANT::vt, and VT_BSTR.
Referenced by NWindows::NCOM::CPropVariant::Copy().
1.5.6