亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? path.cpp

?? cabinet file (.CAB) file handlig.
?? CPP
?? 第 1 頁 / 共 5 頁
字號(hào):
//---------------------------------------------------------------------------
// Copyright (C) 1998, Interscope Ltd. All rights reserved.
// Reproduction or distribution of this program, or any portion of it, 
// is permitted only if this header is kept as it is.
// For more information, contact:
//
// Interscope Ltd., 5 Culturii St., 5th Floor, 4800 Baia Mare, RO
//    Phone/Fax: +40-62-215023
//    E-mail: office@interscope.ro
//
//   $Author: Levente Farkas $
//     $Date: 9/14/98 4:34a $
//  $Modtime: 9/14/98 4:34a $
// $Revision: 120 $
//  $Archive: /Interscope/Callisto/Path.Cpp $
// $Workfile: Path.Cpp $
//-----------------------------------------------------------------------

#ifdef __STDAFX__
#include "StdAfx.H"
#endif

#include <Direct.H>
#include <StdLib.H>
#include <StdIO.H>
#include <IO.H>
#include <ShlObj.H>

#ifndef __MFC__
#include "Trace.H"
#endif

#include "AssertX.H"
#include "StringHelper.Hpp"
#include "OSVersion.Hpp"
#include "Registry.Hpp"
#include "Reminder.Hpp"
#include "Path.Hpp"


//--- Debugee --------------------------------------------------------------

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#ifdef __MFC__
#define new DEBUG_NEW
#endif // __MFC__
#endif // _DEBUG


//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Create a string of length nDigits containing random digits
//-------------------------------------------------------------
static string RandomDigits(int nDigits)
{
    // Keep the number of digits in a rational limit
    ASSERTX(nDigits >  0);
    ASSERTX(nDigits < 20);
    
	int    nDigits2 = nDigits;
	string Digits;
    TCHAR  next_8_digits[9];
    while(nDigits2 > 0)
    {
        SPRINTF(next_8_digits,_T("%08lx"),GetTickCount());

        for(int i=0; i<8; i++)
        {
            Digits += next_8_digits[i];
            if(--nDigits2 == 0)
                break;
        }
    }

    int last_digit =rand();
    if(last_digit < 0)
        last_digit =(-last_digit);
    last_digit %= 10;
    Digits[nDigits - 1] ='0' + last_digit;
    
	return Digits;
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Helper function for the various CPath constructors. 
//           Initializes the data members and establishes various
//           class invariants
//-------------------------------------------------------------
inline void CPath::Init()
{
	m_dwFindFileAttributes =0;
	m_hFindFile =NULL;
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Helper function for the various CPath destructors.
//           Cleans up varios internals
//-------------------------------------------------------------
inline void CPath::Exit()
{
	if(m_hFindFile != NULL)
    {
		FindClose(m_hFindFile);
        m_hFindFile =NULL;
    }
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Constructs a path
//-------------------------------------------------------------
CPath::CPath()
{
	Init();
    Empty();
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Constructs a path as copy of another
//-------------------------------------------------------------
CPath::CPath(const CPath& rPath)
{
	Init();
	m_strPath =rPath.m_strPath;
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Constructs a path and points it 2 lpszPath
//-------------------------------------------------------------
CPath::CPath(LPCTSTR lpszPath)
{
	Init();
    m_strPath =lpszPath ? lpszPath : _T("");
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Constructs a path and points it 2 strPath
//-------------------------------------------------------------
CPath::CPath(const string& strPath)
{
    Init();
    m_strPath =strPath;
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Constructs a path and points it 2 specified 
//           special directory
//-------------------------------------------------------------
CPath::CPath(SpecialDirectoryType eInitialDir)
{
	Init();
    switch(eInitialDir)
    {	
        // Application's current directory	 
        case CURRENT_DIRECTORY:
            CurrentDirectory();
            break;
        // Windows directory
        case WINDOWS_DIRECTORY:
            WindowsDirectory();
            break;
        // Windows' system directory    
        case SYSTEM_DIRECTORY:
            SystemDirectory();
            break;
        // The root directory of system drive
        case SYSTEM_DRIVE_ROOT_DIRECTORY:
            SystemDriveRootDirectory();
            break;
        // The directory where the executable of this app is
        case MODULE_DIRECTORY:
            #ifdef __MFC__
            ModuleDirectory();
            #else
            ASSERTX(FALSE);
            #endif
            break;
        // Windows temp directory
		case TEMP_DIRECTORY:
			TempDirectory();
			break;

        // Program files directory
        case PROGRAM_FILES_DIRECTORY:
            ProgramFilesDirectory();
            break;
        // Common files directory
        case COMMON_FILES_DIRECTORY:
            CommonFilesDirectory();
            break;
        // Accessories directory
        case ACCESSORIES_DIRECTORY:
            AccessoriesDirectory();
            break;
        // Media directory
        case MEDIA_DIRECTORY:
            MediaDirectory();
            break;
        // INF directory
        case DEVICE_DIRECTORY:
            DeviceDirectory();
            break;

        // User specific directories
        case USER_DESKTOP_DIRECTORY:
            UserDesktopDirectory();
            break;
        case USER_FAVORITES_DIRECTORY:
            UserFavoritesDirectory();
            break;
        case USER_FONTS_DIRECTORY:
            UserFontsDirectory();
            break;
        case USER_NETHOOD_DIRECTORY:
            UserNetworkNeighbourhoodDirectory();
            break;
        case USER_DOCUMENTS_DIRECTORY:
            UserDocumentsDirectory();
            break;
        case USER_RECENT_DIRECTORY:
            UserRecentDirectory();
            break;
        case USER_SENDTO_DIRECTORY:
            UserSendToDirectory();
            break;
        case USER_RECYCLE_DIRECTORY:
            UserRecycleBinDirectory();
            break;
        case USER_APPLICATION_DATA_DIRECTORY:
            UserApplicationDataDirectory();
            break;
        case USER_TEMPLATES_DIRECTORY:
            UserTemplatesDirectory();
            break;
        case USER_STARTMENU_DIRECTORY:
            UserStartMenuDirectory();
            break;
        case USER_STARTMENU_STARTUP_DIRECTORY:
            UserStartMenuStartupDirectory();
            break;
        case USER_STARTMENU_PROGRAMS_DIRECTORY:
            UserStartMenuProgramsDirectory();
            break;

        // Directories common 2 all users
        case COMMON_DESKTOP_DIRECTORY:
            CommonDesktopDirectory();
            break;
        case COMMON_STARTMENU_DIRECTORY:
            CommonStartMenuDirectory();
            break;
        case COMMON_STARTMENU_STARTUP_DIRECTORY:
            CommonStartMenuStartupDirectory();
            break;
        case COMMON_STARTMENU_PROGRAMS_DIRECTORY:
            CommonStartMenuProgramsDirectory();
            break;

        // Unknown special directory constant    
        default:
            // Accept only constants we know about
            ASSERTX(FALSE);
    }
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Cleanup and destruct a path object
//-------------------------------------------------------------
CPath::~CPath()
{
	Exit();
}

//-------------------------------------------------------------
// Pre     :
// Post    : Return TRUE if paths are equal
// Globals :
// I/O     :
// Task    : Check if the two path are the same
//-------------------------------------------------------------
BOOL CPath::operator ==(const CPath& rPath) const
{
    // Get fully qualified versions of the paths
	string FullyQualified1;
    string FullyQualified2;
	
	GetFullyQualified(FullyQualified1);
	rPath.GetFullyQualified(FullyQualified2);
	
    // Compare them
	return STRICMP(FullyQualified1.c_str(),FullyQualified2.c_str()) == 0;
}

//-------------------------------------------------------------
// Pre     :
// Post    : Return TRUE if paths are different
// Globals :
// I/O     :
// Task    : Check if the two path are different
//-------------------------------------------------------------
BOOL CPath::operator !=(const CPath& rPath) const
{
    return !(*this == rPath);
}

//-------------------------------------------------------------
// Pre     :
// Post    : 
// Globals :
// I/O     :
// Task    : Assign a path 2 another
//-------------------------------------------------------------
CPath& CPath::operator =(const CPath& rPath)
{                   
	if(this != &rPath)
		m_strPath =rPath.m_strPath;
		    
    return *this;
}

//-------------------------------------------------------------
// Pre     :
// Post    : Return the path, so that assignements can be chained
// Globals :
// I/O     :
// Task    : Assign a string 2 a path
//-------------------------------------------------------------
CPath& CPath::operator =(LPCTSTR lpszPath)
{
    m_strPath =lpszPath ? lpszPath : _T("");
    return *this;
}

//-------------------------------------------------------------
// Pre     :
// Post    : Return the path, so that assignements can be chained
// Globals :
// I/O     :
// Task    : Assign a string 2 a path
//-------------------------------------------------------------
CPath& CPath::operator =(const string& strPath)
{
    m_strPath =strPath;
    return *this;
}

//-------------------------------------------------------------
// Pre     :
// Post    : Converts path 2 string
// Globals :
// I/O     :
// Task    : Convert path 2 string
//           Warning: because this pointer 2 string point in the data
//           of this class, it is possible 2 cast the result of this 
//           function in any non-constant pointer and alter the data.
//           Very dangerous
//-------------------------------------------------------------
CPath::operator LPCTSTR() const
{
    return (LPCTSTR)m_strPath.c_str();
}

//-------------------------------------------------------------
// Pre     :
// Post    : Returns the drive component without a colon, e.g. "c"
//           Returns the directory component with a leading backslash, 
//              but no trailing backslash, e.g. "\dir\subdir"
//           Returns name compleletely without delimiters, e.g "letter"
//           Returns extension completely without delimiters, e.g. "doc"
// Globals :
// I/O     :
// Task    : Return the individual components of this path. 
//           For any given argument, you can pass NULL if you are not 
//           interested in that component.
//           Do not rely on pNames being <= 8 characters, extensions 
//           being <= 3 characters, or drives being 1 character
//-------------------------------------------------------------
void CPath::GetComponents(string* pDrive, 
                       	  string* pDirectory, 
                       	  string* pName, 
                          string* pExtension) const
{
    TCHAR buff_drive[_MAX_DRIVE + 1];
    TCHAR buff_dir  [_MAX_DIR   + 1];
    TCHAR buff_name [_MAX_FNAME + 1];
    TCHAR buff_ext  [_MAX_EXT   + 1];

    ZeroMemory(buff_drive,sizeof(buff_drive));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜揉揉日日人人青青一国产精品| 麻豆91免费看| 国产精品国产馆在线真实露脸 | 蜜臀av性久久久久蜜臀aⅴ| 亚洲综合久久久久| 亚洲伦理在线免费看| 亚洲精品国产一区二区精华液| 一区精品在线播放| 亚洲精品免费看| 一区二区三区四区激情| 一区二区三区在线影院| 亚洲综合在线免费观看| 亚洲综合色自拍一区| 亚洲高清在线精品| 免费看日韩精品| 国产一区二区在线观看免费| 国内精品视频一区二区三区八戒| 精品一区二区在线看| 国产一区二区成人久久免费影院| 国产精品综合网| 国产盗摄一区二区| 成人午夜av电影| 91亚洲精品乱码久久久久久蜜桃 | 久久综合成人精品亚洲另类欧美| 久久久精品免费免费| 国产精品美女一区二区| 一区二区三区不卡在线观看| 无码av免费一区二区三区试看 | 久久国产三级精品| 国产精品77777| 99久久伊人精品| 欧美精品丝袜中出| 久久先锋影音av| 亚洲精品国产成人久久av盗摄 | 欧美亚一区二区| 亚洲成人1区2区| 六月丁香婷婷久久| 97久久超碰国产精品| 欧美日韩精品电影| 久久一区二区视频| 成人免费一区二区三区视频| 日日骚欧美日韩| 国产寡妇亲子伦一区二区| 在线看不卡av| 欧美精品一区二| 亚洲激情综合网| 激情综合网天天干| 在线免费观看日韩欧美| 日韩欧美国产精品一区| 亚洲欧洲精品一区二区三区不卡 | 99re在线视频这里只有精品| 欧美三级电影一区| 国产片一区二区| 亚洲风情在线资源站| 国产成人一区在线| 欧美日韩黄色影视| 国产亚洲女人久久久久毛片| 亚洲成人你懂的| 国产成人综合视频| 91精品福利在线一区二区三区| 中文字幕精品综合| 精久久久久久久久久久| 欧亚一区二区三区| 国产精品每日更新在线播放网址| 秋霞国产午夜精品免费视频| 99精品久久只有精品| 日韩高清中文字幕一区| 国产.欧美.日韩| 日韩欧美在线影院| 夜色激情一区二区| 国产91高潮流白浆在线麻豆| 欧美一区二区精品在线| 一区二区日韩电影| 成人av资源在线观看| 精品少妇一区二区三区在线视频| 亚洲综合色婷婷| 97精品视频在线观看自产线路二| 久久久综合精品| 久久电影网站中文字幕| 欧美色图第一页| 亚洲女性喷水在线观看一区| 国产高清精品在线| 久久综合狠狠综合久久综合88| 亚洲福利电影网| 欧美在线一二三| 亚洲欧美视频一区| 成人黄页在线观看| 亚洲精品一区二区精华| 麻豆极品一区二区三区| 欧美一区二区性放荡片| 天天色 色综合| 欧美色爱综合网| 亚洲综合男人的天堂| 色综合婷婷久久| 亚洲同性同志一二三专区| 成人看片黄a免费看在线| 久久精品网站免费观看| 国产在线一区观看| 2017欧美狠狠色| 激情图片小说一区| 久久综合一区二区| 狠狠色综合色综合网络| 精品国产乱子伦一区| 麻豆91小视频| 久久五月婷婷丁香社区| 激情综合网激情| 国产清纯白嫩初高生在线观看91 | 久久久精品免费网站| 国产精品123区| 国产网站一区二区三区| 国产午夜精品福利| 国产精品18久久久久久久网站| 2020国产精品自拍| 国产老肥熟一区二区三区| 久久精品在这里| 日韩综合在线视频| 欧美一区二区三区免费视频 | 国产成人免费av在线| 久久久久久久久伊人| 成人精品视频一区| 亚洲欧美影音先锋| 91网站最新地址| 亚洲日本在线观看| 欧美日本不卡视频| 另类的小说在线视频另类成人小视频在线 | 中文字幕在线一区免费| 91国偷自产一区二区三区成为亚洲经典 | 欧美午夜不卡在线观看免费| 婷婷综合另类小说色区| 日韩欧美一区二区久久婷婷| 国产精品一区二区三区网站| 中文字幕一区二区在线观看| 欧美伊人久久大香线蕉综合69| 日韩精品免费视频人成| 久久久精品人体av艺术| 一本大道久久a久久精品综合| 亚洲午夜成aⅴ人片| 精品三级在线观看| 成人18视频日本| 午夜精品一区在线观看| 久久夜色精品国产欧美乱极品| 懂色av一区二区三区免费观看| 一区二区在线观看免费| 欧美一区二区精美| 成人av先锋影音| 日韩综合小视频| 国产精品国产自产拍在线| 欧美精品久久99| 国产福利不卡视频| 五月天激情综合| 国产精品欧美一区二区三区| 欧美日韩免费电影| 国产成人精品影视| 肉丝袜脚交视频一区二区| 日本一区二区在线不卡| 555www色欧美视频| 99精品欧美一区二区三区小说| 日本美女视频一区二区| ㊣最新国产の精品bt伙计久久| 欧美人与禽zozo性伦| 成人国产精品视频| 免费久久精品视频| 亚洲精品国产视频| 国产欧美日韩久久| 日韩欧美色综合| 日本高清不卡一区| 国产suv一区二区三区88区| 肉丝袜脚交视频一区二区| 亚洲欧洲三级电影| 欧美精品一区二区三区四区 | 99vv1com这只有精品| 久久疯狂做爰流白浆xx| 亚洲主播在线观看| 国产精品高潮久久久久无| 精品乱人伦一区二区三区| 欧美日韩一区二区三区在线| 岛国一区二区在线观看| 精品亚洲免费视频| 日本成人中文字幕在线视频| 亚洲精品欧美激情| 国产精品电影一区二区三区| 久久综合色天天久久综合图片| 欧美巨大另类极品videosbest| 国产.欧美.日韩| 日本在线播放一区二区三区| 亚洲免费观看高清完整版在线观看熊 | 欧美成人一区二区三区| 欧美三级中文字| 色噜噜狠狠色综合中国| 99久久久国产精品| 国产精品18久久久久久久网站| 蜜臀av一区二区在线免费观看| 亚洲国产一区二区在线播放| 国产精品久久久爽爽爽麻豆色哟哟| 精品国产乱码久久久久久久| 欧美一区二区在线观看| 91精品国产欧美日韩| 在线成人免费视频| 欧美久久一二区| 欧美一区二区三区视频在线 |