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

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

?? wxdebug.cpp

?? 用DirectX制作高級動畫-[Advanced.Animation.with.DirectX]
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
                                          MB_ICONHAND |
                                          MB_YESNOCANCEL |
                                          MB_SETFOREGROUND);
        switch (MsgId)
        {
          case IDNO:              /* Kill the application */

              FatalAppExit(FALSE, TEXT("Application terminated"));
              break;

          case IDCANCEL:          /* Break into the debugger */

              DebugBreak();
              break;

          case IDYES:             /* Ignore assertion continue execution */
              break;
        }
    }
}

/* Displays a message box at a break point */

void WINAPI DbgBreakPoint(const TCHAR *pCondition,const TCHAR *pFileName,INT iLine)
{
    if(g_fUseKASSERT)
    {
        DbgKernelAssert(pCondition, pFileName, iLine);
    }
    else
    {
        TCHAR szInfo[iDEBUGINFO];

        wsprintf(szInfo, TEXT("%s \nAt line %d of %s\nContinue? (Cancel to debug)"),
                 pCondition, iLine, pFileName);

        INT MsgId = MessageBoxOtherThread(NULL,szInfo,TEXT("Hard coded break point"),
                                          MB_SYSTEMMODAL |
                                          MB_ICONHAND |
                                          MB_YESNOCANCEL |
                                          MB_SETFOREGROUND);
        switch (MsgId)
        {
          case IDNO:              /* Kill the application */

              FatalAppExit(FALSE, TEXT("Application terminated"));
              break;

          case IDCANCEL:          /* Break into the debugger */

              DebugBreak();
              break;

          case IDYES:             /* Ignore break point continue execution */
              break;
        }
    }
}

void WINAPI DbgBreakPoint(const TCHAR *pFileName,INT iLine,const TCHAR* szFormatString,...)
{
    // A debug break point message can have at most 2000 characters if 
    // ANSI or UNICODE characters are being used.  A debug break point message
    // can have between 1000 and 2000 double byte characters in it.  If a 
    // particular message needs more characters, then the value of this constant
    // should be increased.
    const DWORD MAX_BREAK_POINT_MESSAGE_SIZE = 2000;

    TCHAR szBreakPointMessage[MAX_BREAK_POINT_MESSAGE_SIZE];
    
    const DWORD MAX_CHARS_IN_BREAK_POINT_MESSAGE = sizeof(szBreakPointMessage) / sizeof(TCHAR);

    va_list va;
    va_start( va, szFormatString );

    int nReturnValue = _vsntprintf( szBreakPointMessage, MAX_CHARS_IN_BREAK_POINT_MESSAGE, szFormatString, va );

    va_end(va);
    
    // _vsnprintf() returns -1 if an error occurs.
    if( -1 == nReturnValue ) {
        DbgBreak( "ERROR in DbgBreakPoint().  The variable length debug message could not be displayed because _vsnprintf() failed." );
        return;
    }

    ::DbgBreakPoint( szBreakPointMessage, pFileName, iLine );
}


/* When we initialised the library we stored in the m_Levels array the current
   debug output level for this module for each of the five categories. When
   some debug logging is sent to us it can be sent with a combination of the
   categories (if it is applicable to many for example) in which case we map
   the type's categories into their current debug levels and see if any of
   them can be accepted. The function looks at each bit position in turn from
   the input type field and then compares it's debug level with the modules.

   A level of 0 means that output is always sent to the debugger.  This is
   due to producing output if the input level is <= m_Levels.
*/


BOOL WINAPI DbgCheckModuleLevel(DWORD Type,DWORD Level)
{
    if(g_fAutoRefreshLevels)
    {
        // re-read the registry every second. We cannot use RegNotify() to
        // notice registry changes because it's not available on win9x.
        static g_dwLastRefresh = 0;
        DWORD dwTime = timeGetTime();
        if(dwTime - g_dwLastRefresh > 1000) {
            g_dwLastRefresh = dwTime;

            // there's a race condition: multiple threads could update the
            // values. plus read and write not synchronized. no harm
            // though.
            DbgInitModuleSettings(false);
        }
    }


    DWORD Mask = 0x01;

    // If no valid bits are set return FALSE
    if ((Type & ((1<<iMAXLEVELS)-1))) {

	// speed up unconditional output.
	if (0==Level)
	    return(TRUE);
	
        for (LONG lKeyPos = 0;lKeyPos < iMAXLEVELS;lKeyPos++) {
            if (Type & Mask) {
                if (Level <= (m_Levels[lKeyPos] & ~LOG_FORCIBLY_SET)) {
                    return TRUE;
                }
            }
            Mask <<= 1;
        }
    }
    return FALSE;
}


/* Set debug levels to a given value */

void WINAPI DbgSetModuleLevel(DWORD Type, DWORD Level)
{
    DWORD Mask = 0x01;

    for (LONG lKeyPos = 0;lKeyPos < iMAXLEVELS;lKeyPos++) {
        if (Type & Mask) {
            m_Levels[lKeyPos] = Level | LOG_FORCIBLY_SET;
        }
        Mask <<= 1;
    }
}

/* whether to check registry values periodically. this isn't turned
   automatically because of the potential performance hit. */
void WINAPI DbgSetAutoRefreshLevels(bool fAuto)
{
    g_fAutoRefreshLevels = fAuto;
}

#ifdef UNICODE
// 
// warning -- this function is implemented twice for ansi applications
// linking to the unicode library
// 
void WINAPI DbgLogInfo(DWORD Type,DWORD Level,const CHAR *pFormat,...)
{
    /* Check the current level for this type combination */

    BOOL bAccept = DbgCheckModuleLevel(Type,Level);
    if (bAccept == FALSE) {
        return;
    }

    TCHAR szInfo[2000];

    /* Format the variable length parameter list */

    va_list va;
    va_start(va, pFormat);

    lstrcpy(szInfo,m_ModuleName);
    wsprintf(szInfo + lstrlen(szInfo),
             TEXT("(tid %x) %8d : "),
             GetCurrentThreadId(), timeGetTime() - dwTimeOffset);

    CHAR szInfoA[2000];
    WideCharToMultiByte(CP_ACP, 0, szInfo, -1, szInfoA, NUMELMS(szInfoA), 0, 0);

    wvsprintfA(szInfoA + lstrlenA(szInfoA), pFormat, va);
    lstrcatA(szInfoA, "\r\n");

    WCHAR wszOutString[2000];
    MultiByteToWideChar(CP_ACP, 0, szInfoA, -1, wszOutString, NUMELMS(wszOutString));
    DbgOutString(wszOutString);

    va_end(va);
}

void DbgAssert(const CHAR *pCondition,const CHAR *pFileName,INT iLine)
{
    if(g_fUseKASSERT)
    {
        DbgKernelAssert(pCondition, pFileName, iLine);
    }
    else
    {

        TCHAR szInfo[iDEBUGINFO];

        wsprintf(szInfo, TEXT("%hs \nAt line %d of %hs\nContinue? (Cancel to debug)"),
                 pCondition, iLine, pFileName);

        INT MsgId = MessageBoxOtherThread(NULL,szInfo,TEXT("ASSERT Failed"),
                                          MB_SYSTEMMODAL |
                                          MB_ICONHAND |
                                          MB_YESNOCANCEL |
                                          MB_SETFOREGROUND);
        switch (MsgId)
        {
          case IDNO:              /* Kill the application */

              FatalAppExit(FALSE, TEXT("Application terminated"));
              break;

          case IDCANCEL:          /* Break into the debugger */

              DebugBreak();
              break;

          case IDYES:             /* Ignore assertion continue execution */
              break;
        }
    }
}

/* Displays a message box at a break point */

void WINAPI DbgBreakPoint(const CHAR *pCondition,const CHAR *pFileName,INT iLine)
{
    if(g_fUseKASSERT)
    {
        DbgKernelAssert(pCondition, pFileName, iLine);
    }
    else
    {
        TCHAR szInfo[iDEBUGINFO];

        wsprintf(szInfo, TEXT("%hs \nAt line %d of %hs\nContinue? (Cancel to debug)"),
                 pCondition, iLine, pFileName);

        INT MsgId = MessageBoxOtherThread(NULL,szInfo,TEXT("Hard coded break point"),
                                          MB_SYSTEMMODAL |
                                          MB_ICONHAND |
                                          MB_YESNOCANCEL |
                                          MB_SETFOREGROUND);
        switch (MsgId)
        {
          case IDNO:              /* Kill the application */

              FatalAppExit(FALSE, TEXT("Application terminated"));
              break;

          case IDCANCEL:          /* Break into the debugger */

              DebugBreak();
              break;

          case IDYES:             /* Ignore break point continue execution */
              break;
        }
    }
}

void WINAPI DbgKernelAssert(const CHAR *pCondition,const CHAR *pFileName,INT iLine)
{
    DbgLog((LOG_ERROR,0,TEXT("Assertion FAILED (%hs) at line %d in file %hs"),
           pCondition, iLine, pFileName));
    DebugBreak();
}

#endif

/* Print a formatted string to the debugger prefixed with this module's name
   Because the COMBASE classes are linked statically every module loaded will
   have their own copy of this code. It therefore helps if the module name is
   included on the output so that the offending code can be easily found */

// 
// warning -- this function is implemented twice for ansi applications
// linking to the unicode library
// 
void WINAPI DbgLogInfo(DWORD Type,DWORD Level,const TCHAR *pFormat,...)
{
    
    /* Check the current level for this type combination */

    BOOL bAccept = DbgCheckModuleLevel(Type,Level);
    if (bAccept == FALSE) {
        return;
    }

    TCHAR szInfo[2000];

    /* Format the variable length parameter list */

    va_list va;
    va_start(va, pFormat);

    lstrcpy(szInfo,m_ModuleName);
    wsprintf(szInfo + lstrlen(szInfo),
             TEXT("(tid %x) %8d : "),
             GetCurrentThreadId(), timeGetTime() - dwTimeOffset);

    _vstprintf(szInfo + lstrlen(szInfo), pFormat, va);
    lstrcat(szInfo, TEXT("\r\n"));
    DbgOutString(szInfo);

    va_end(va);
}


/* If we are executing as a pure kernel filter we cannot display message
   boxes to the user, this provides an alternative which puts the error
   condition on the debugger output with a suitable eye catching message */

void WINAPI DbgKernelAssert(const TCHAR *pCondition,const TCHAR *pFileName,INT iLine)
{
    DbgLog((LOG_ERROR,0,TEXT("Assertion FAILED (%s) at line %d in file %s"),
           pCondition, iLine, pFileName));
    DebugBreak();
}



/* Each time we create an object derived from CBaseObject the constructor will
   call us to register the creation of the new object. We are passed a string
   description which we store away. We return a cookie that the constructor
   uses to identify the object when it is destroyed later on. We update the
   total number of active objects in the DLL mainly for debugging purposes */

DWORD WINAPI DbgRegisterObjectCreation(const CHAR *szObjectName,
                                       const WCHAR *wszObjectName)
{
    /* If this fires you have a mixed DEBUG/RETAIL build */

    ASSERT(!!szObjectName ^ !!wszObjectName);

    /* Create a place holder for this object description */

    ObjectDesc *pObject = new ObjectDesc;
    ASSERT(pObject);

    /* It is valid to pass a NULL object name */
    if (pObject == NULL) {
        return FALSE;
    }

    /* Check we have been initialised - we may not be initialised when we are
       being pulled in from an executable which has globally defined objects
       as they are created by the C++ run time before WinMain is called */

    if (m_bInit == FALSE) {
        DbgInitialise(GetModuleHandle(NULL));
    }

    /* Grab the list critical section */
    EnterCriticalSection(&m_CSDebug);

    /* If no name then default to UNKNOWN */
    if (!szObjectName && !wszObjectName) {
        szObjectName = pUnknownName;
    }

    /* Put the new description at the head of the list */

    pObject->m_szName = szObjectName;
    pObject->m_wszName = wszObjectName;
    pObject->m_dwCookie = ++m_dwNextCookie;
    pObject->m_pNext = pListHead;

    pListHead = pObject;
    m_dwObjectCount++;

    DWORD ObjectCookie = pObject->m_dwCookie;
    ASSERT(ObjectCookie);

    if(wszObjectName) {
        DbgLog((LOG_MEMORY,2,TEXT("Object created   %d (%ls) %d Active"),
                pObject->m_dwCookie, wszObjectName, m_dwObjectCount));
    } else {
        DbgLog((LOG_MEMORY,2,TEXT("Object created   %d (%hs) %d Active"),
                pObject->m_dwCookie, szObjectName, m_dwObjectCount));
    }

    LeaveCriticalSection(&m_CSDebug);
    return ObjectCookie;
}


/* This is called by the CBaseObject destructor when an object is about to be
   destroyed, we are passed the cookie we returned during construction that
   identifies this object. We scan the object list for a matching cookie and
   remove the object if successful. We also update the active object count */

BOOL WINAPI DbgRegisterObjectDestruction(DWORD dwCookie)
{
    /* Grab the list critical section */
    EnterCriticalSection(&m_CSDebug);

    ObjectDesc *pObject = pListHead;
    ObjectDesc *pPrevious = NULL;

    /* Scan the object list looking for a cookie match */

    while (pObject) {
        if (pObject->m_dwCookie == dwCookie) {
            break;
        }
        pPrevious = pObject;
        pObject = pObject->m_pNext;
    }

    if (pObject == NULL) {
        DbgBreak("Apparently destroying a bogus object");
        LeaveCriticalSection(&m_CSDebug);
        return FALSE;
    }

    /* Is the object at the head of the list */

    if (pPrevious == NULL) {
        pListHead = pObject->m_pNext;
    } else {
        pPrevious->m_pNext = pObject->m_pNext;
    }

    /* Delete the object and update the housekeeping information */

    m_dwObjectCount--;

    if(pObject->m_wszName) {
        DbgLog((LOG_MEMORY,2,TEXT("Object destroyed %d (%ls) %d Active"),
                pObject->m_dwCookie, pObject->m_wszName, m_dwObjectCount));
    } else {
        DbgLog((LOG_MEMORY,2,TEXT("Object destroyed %d (%hs) %d Active"),
                pObject->m_dwCookie, pObject->m_szName, m_dwObjectCount));
    }

    delete pObject;
    LeaveCriticalSection(&m_CSDebug);
    return TRUE;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91蝌蚪porny| 欧美一二三区在线| 欧美a一区二区| 国产精品欧美一区二区三区| 欧美影片第一页| 国产麻豆午夜三级精品| 亚洲一区二区精品视频| 国产日韩欧美精品在线| 欧美一区二区三区公司| 一道本成人在线| 国产成a人亚洲| 轻轻草成人在线| 亚洲影院理伦片| 国产精品超碰97尤物18| 日韩免费一区二区| 欧美日韩免费观看一区二区三区| 成人午夜激情在线| 久久99精品国产.久久久久 | 精品欧美久久久| 色哦色哦哦色天天综合| 欧美成人vr18sexvr| 91久久精品午夜一区二区| 丁香亚洲综合激情啪啪综合| 久久国产精品露脸对白| 日韩影院在线观看| 亚洲成国产人片在线观看| 亚洲欧美日韩国产中文在线| 欧美国产禁国产网站cc| 2017欧美狠狠色| 精品少妇一区二区三区在线播放| 欧美酷刑日本凌虐凌虐| 欧美日韩综合在线免费观看| 在线免费观看日本一区| 97aⅴ精品视频一二三区| 福利电影一区二区三区| 国产精品一二二区| 国产精品18久久久久久久网站| 精品一区二区久久| 久久精品国产澳门| 激情五月激情综合网| 美国欧美日韩国产在线播放| 欧美aaa在线| 美女在线观看视频一区二区| 日本色综合中文字幕| 日本在线不卡一区| 另类成人小视频在线| 精油按摩中文字幕久久| 国精品**一区二区三区在线蜜桃| 国产在线视视频有精品| 国产精品一区二区果冻传媒| 国产91丝袜在线播放| av一区二区不卡| 日本久久一区二区| 欧美日韩国产高清一区二区三区 | 在线观看国产一区二区| 色婷婷综合久色| 欧美在线一区二区三区| 在线成人免费观看| 精品久久五月天| 中文字幕欧美激情| 亚洲最新视频在线观看| 日韩中文欧美在线| 激情成人综合网| 成人免费视频国产在线观看| 91在线视频在线| 欧美人狂配大交3d怪物一区| 日韩欧美综合一区| 国产欧美精品一区二区三区四区| 国产精品素人一区二区| 亚洲影院久久精品| 久色婷婷小香蕉久久| 高清国产一区二区三区| 色老汉av一区二区三区| 日韩一区二区免费视频| 日本一区二区免费在线观看视频| 亚洲人成在线播放网站岛国| 丝袜国产日韩另类美女| 国产盗摄一区二区三区| 在线看日韩精品电影| 欧美电视剧在线看免费| 18欧美乱大交hd1984| 日韩成人免费电影| 99久久久免费精品国产一区二区| 欧美三级中文字幕| 国产三级欧美三级日产三级99 | 久久精品99国产精品日本| 国产精品资源在线| 国产欧美一区二区三区沐欲 | 亚洲四区在线观看| 日韩精品乱码av一区二区| 国产精品中文欧美| 欧美日韩免费观看一区二区三区| 久久久国产精华| 亚洲午夜在线电影| 国产成人av一区二区三区在线| 一本久久精品一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲精品视频一区| 国产一区二区三区高清播放| 欧美三级蜜桃2在线观看| 久久久久久影视| 丝袜美腿亚洲一区二区图片| 91猫先生在线| 久久久久久久久久久黄色| 偷窥少妇高潮呻吟av久久免费| 成人精品小蝌蚪| 精品欧美一区二区久久 | 国产精品久久毛片a| 毛片一区二区三区| 欧美日韩亚洲国产综合| 综合自拍亚洲综合图不卡区| 激情综合网激情| 正在播放亚洲一区| 樱桃视频在线观看一区| 成人免费视频免费观看| 精品国产成人在线影院| 亚洲成人一二三| 色综合久久天天| 国产精品乱人伦| 国产呦精品一区二区三区网站| 欧美精品v国产精品v日韩精品 | 日韩亚洲欧美在线观看| 亚洲最色的网站| 色欧美日韩亚洲| 国产精品久久久久影院| 国产成人日日夜夜| 精品国产制服丝袜高跟| 麻豆极品一区二区三区| 欧美乱熟臀69xxxxxx| 亚洲国产另类精品专区| 91福利小视频| 亚洲精品大片www| 色综合久久久久综合| 日韩理论片网站| 国产欧美日韩亚州综合| 黄一区二区三区| 久久综合九色综合97婷婷女人 | 亚洲激情图片一区| 色综合一区二区三区| 国产精品狼人久久影院观看方式| 国产99久久精品| 中文字幕中文字幕在线一区| 成人的网站免费观看| 国产精品的网站| 97se狠狠狠综合亚洲狠狠| 亚洲视频狠狠干| 色婷婷综合中文久久一本| 一区二区三区中文字幕精品精品| 色综合久久久久综合99| 亚洲综合色丁香婷婷六月图片| 色屁屁一区二区| 午夜日韩在线观看| 日韩免费在线观看| 国产精品一区二区无线| 国产精品视频yy9299一区| 99精品黄色片免费大全| 亚洲精品国产精品乱码不99| 欧美日韩一区二区三区高清| 男女性色大片免费观看一区二区| 日韩网站在线看片你懂的| 国产一区不卡视频| 国产精品第一页第二页第三页| 91美女片黄在线观看| 日韩国产精品久久| 久久色.com| 91亚洲午夜精品久久久久久| 亚洲在线成人精品| 欧美成人a∨高清免费观看| 国产sm精品调教视频网站| 1024精品合集| 欧美一区二区三区在线观看| 国产精品白丝av| 一区二区三区欧美| 日韩女优电影在线观看| www.日韩av| 日产国产欧美视频一区精品| 国产亚洲美州欧州综合国| 91精彩视频在线| 久久成人精品无人区| 中文字幕欧美一区| 91精品一区二区三区在线观看| 国产乱国产乱300精品| 亚洲图片自拍偷拍| 久久久精品黄色| 欧美日韩中文一区| 成人手机电影网| 日韩av一区二区三区| 国产精品二区一区二区aⅴ污介绍| 欧美日韩久久久| 国产成人久久精品77777最新版本| 玉米视频成人免费看| 欧美mv日韩mv亚洲| 一本一本久久a久久精品综合麻豆| 蜜桃视频一区二区三区| 亚洲美女屁股眼交3| 精品国产精品一区二区夜夜嗨| 在线观看欧美精品| 高清视频一区二区| 免费久久99精品国产| 一区二区三区电影在线播|