当前位置: 首页>>代码示例>>C++>>正文


C++ TraceMsg函数代码示例

本文整理汇总了C++中TraceMsg函数的典型用法代码示例。如果您正苦于以下问题:C++ TraceMsg函数的具体用法?C++ TraceMsg怎么用?C++ TraceMsg使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TraceMsg函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: TraceMsg

CMuxVirtualMiniport::CMuxVirtualMiniport(INetCfg *pnc,
                                         GUID    *pguidMiniport,
                                         GUID    *pguidAdapter)
{
    TraceMsg( L"-->CMuxVirtualMiniport::CMuxVirtualMiniport(Constructor).\n" );

    m_pnc = pnc;
    m_pnc->AddRef();

    CopyMemory( &m_guidAdapter,
                pguidAdapter,
                sizeof(GUID) );

    if ( pguidMiniport ) {

        CopyMemory( &m_guidMiniport,
                    pguidMiniport,
                    sizeof(GUID) );

    }
    else {

        ZeroMemory( &m_guidMiniport,
                    sizeof(GUID) );
    }

    TraceMsg( L"<--CMuxVirtualMiniport::CMuxVirtualMiniport(Constructor).\n" );
}
开发者ID:kcrazy,项目名称:winekit,代码行数:28,代码来源:virtual.cpp

示例2: DllMain

BOOL WINAPI DllMain (HINSTANCE hInstance,
                     DWORD dwReason,
                     LPVOID /*lpReserved*/)
{
	TraceMsg( L"-->DllMain.\n");

	if (dwReason == DLL_PROCESS_ATTACH) {

		TraceMsg( L"   Reason: Attach.\n");

		_Module.Init(ObjectMap, hInstance);

		DisableThreadLibraryCalls(hInstance);
	}
	else if (dwReason == DLL_PROCESS_DETACH) {

		TraceMsg( L"   Reason: Detach.\n");

		   _Module.Term();
	}

	TraceMsg( L"<--DllMain.\n");

	return TRUE;
}
开发者ID:0xhack,项目名称:Windows-driver-samples,代码行数:25,代码来源:dllmain.cpp

示例3: ServerInit

void
ServerInit(TServer * const serverP) {
/*----------------------------------------------------------------------------
   Initialize a server to accept connections.

   Do not confuse this with creating the server -- ServerCreate().

   Not necessary or valid with a server that doesn't accept connections (i.e.
   user supplies the TCP connections).
-----------------------------------------------------------------------------*/
    struct _TServer * const srvP = serverP->srvP;
    abyss_bool success;
    
    if (!srvP->serverAcceptsConnections) {
        TraceMsg("ServerInit() is not valid on a server that doesn't "
                 "accept connections "
                 "(i.e. created with ServerCreateNoAccept)");
        success = FALSE;
    } else {
        if (!srvP->socketBound)
            createAndBindSocket(srvP);

        if (srvP->socketBound) {
            success = SocketListen(srvP->listenSocketP, MAX_CONN);

            if (!success)
                TraceMsg("Failed to listen on bound socket.");
        } else
            success = FALSE;
    }
    if (!success)
        exit(1);
}
开发者ID:BenedictHiddleston,项目名称:xmlrpc-c-1.06.30,代码行数:33,代码来源:server.c

示例4: createAndBindSocket

static void
createAndBindSocket(struct _TServer * const srvP) {

    abyss_bool success;

    success = SocketInit();
    if (!success)
        TraceMsg("Can't initialize TCP sockets");
    else {
        TSocket * socketP;
        
        SocketUnixCreate(&socketP);
        
        if (!socketP)
            TraceMsg("Can't create a socket");
        else {
            abyss_bool success;
            
            success = SocketBind(socketP, NULL, srvP->port);
            
            if (!success)
                TraceMsg("Failed to bind listening socket to port number %u",
                         srvP->port);
            else {
                srvP->weCreatedListenSocket = TRUE;
                srvP->socketBound = TRUE;
                srvP->listenSocketP = socketP;
            }
            if (!success)
                SocketDestroy(socketP);
        }
    }
}
开发者ID:BenedictHiddleston,项目名称:xmlrpc-c-1.06.30,代码行数:33,代码来源:server.c

示例5: FileGetSomeBytes

boolean FileGetSomeBytes (blkhdrtype   *BlkHdr,     farlongtype  FileOffset,
                          unsigned      SomeBytes,
                          ft F,lt Z,zz *Status,     addrtype     BytesAddr)
{
size_t  CheckCount  = 0;
int     SeekStatus  = 0;

    SeekStatus = fseek (BlkHdr->BlkFile, FileOffset, SEEK_SET);
    if (SeekStatus != 0)
    {
        sprintf  (Msg, TraceStr(9),
/* "***FileGetSomeBytes... SeekStatus= %u\n" */
                  SeekStatus);
        TraceMsg  (0,   Msg);
       *Status = File_BadDiskWrite;
    }

    CheckCount = fread (BytesAddr,       SomeBytes,  (size_t )1,
                        BlkHdr->BlkFile);
    if (CheckCount != (int )1)
    {
        sprintf  (Msg, TraceStr(10),
/* "***FileGetSomeBytes... CheckCount= %u\n" */
                  CheckCount);
        TraceMsg  (0,   Msg);
       *Status = File_BadDiskWrite;
    }

    if (SomeBytes == 0)
       *Status = Err_NoBytesMoved;

TRACK(TrackBak,"FileGetSomeBytes\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:34,代码来源:fm.c

示例6: TraceMsg

HRESULT CMuxPhysicalAdapter::Remove (VOID)
{
    CMuxVirtualMiniport  *pMiniport = NULL;
    GUID                    guidMiniport;
    DWORD                   dwMiniportCount;
    DWORD                   i;

    TraceMsg( L"-->CMuxPhysicalAdapter::Remove.\n" );

    dwMiniportCount = m_MiniportList.ListCount();

    TraceMsg ( L"   Removing %d miniports.\n",
               dwMiniportCount );

    for (i=0; i < dwMiniportCount; ++i) {

        pMiniport = NULL;
        m_MiniportList.Remove( &pMiniport );
        pMiniport->GetMiniportGUID( &guidMiniport );
        m_MiniportsToRemove.Insert( pMiniport,
                                    guidMiniport );
        pMiniport->DeInstall();
    }

    TraceMsg( L"<--CMuxPhysicalAdapter::Remove(HRESULT = %x).\n",
              S_OK );

    return S_OK;
}
开发者ID:340211173,项目名称:Windows-driver-samples,代码行数:29,代码来源:adapter.cpp

示例7: TraceMsg

void Mem_ShowXmemStats       (void)
{
   TraceMsg (0, " Dump of XmemBlkSizeChunk  ::    ");
   DumpChunkChunk (0, XmemBlkSizeChunk);

   TraceMsg (0, "\n Dump of XmemBlkDirChunk   ::    ");
   DumpChunkChunk (0, XmemBlkDirChunk);

return;
}
开发者ID:palmerc,项目名称:lab,代码行数:10,代码来源:mem01.c

示例8: parsePidfile

static void
parsePidfile(const char *      const p,
             struct _TServer * const srvP) {
#ifdef _UNIX
    if (!FileOpenCreate(&srvP->pidfile, p, O_TRUNC | O_WRONLY)) {
        srvP->pidfile = -1;
        TraceMsg("Bad PidFile value '%s'", p);
    };
#else
    TraceMsg("PidFile option ignored");
#endif  /* _UNIX */
}
开发者ID:Distrotech,项目名称:opensips,代码行数:12,代码来源:abyss_conf.c

示例9: DllCanUnloadNow

STDAPI DllCanUnloadNow(void)
{
	HRESULT hr;

	TraceMsg( L"-->DllCanUnloadNow.\n");

	hr = (_Module.GetLockCount() == 0) ? S_OK : S_FALSE;

	TraceMsg( L"-->DllCanUnloadNow(HRESULT = %x).\n",
	        hr );

	return hr;  
}
开发者ID:0xhack,项目名称:Windows-driver-samples,代码行数:13,代码来源:dllmain.cpp

示例10: parsePidfile

static void
parsePidfile(const char *      const p,
             struct _TServer * const srvP) {
#ifdef _UNIX
    bool succeeded;
    succeeded = FileOpenCreate(&srvP->pidfileP, p, O_TRUNC | O_WRONLY);
    if (!succeeded) {
        srvP->pidfileP = NULL;
        TraceMsg("Bad PidFile value '%s'", p);
    };
#else
    TraceMsg("PidFile option ignored");
#endif  /* _UNIX */ 
}
开发者ID:odmanV2,项目名称:freecenter,代码行数:14,代码来源:conf.c

示例11: UNREFERENCED_PARAMETER

HRESULT CMuxVirtualMiniport::ApplyPnpChanges
                                 (INetCfgPnpReconfigCallback *pfCallback,
                                  ConfigAction eApplyAction)
{
    UNREFERENCED_PARAMETER(pfCallback);
    UNREFERENCED_PARAMETER(eApplyAction);

    TraceMsg( L"-->CMuxVirtualMiniport::ApplyPnpChanges.\n" );

    TraceMsg( L"<--CMuxVirtualMiniport::ApplyPnpChanges(HRESULT = %x).\n",
            S_OK );

    return S_OK;
}
开发者ID:kcrazy,项目名称:winekit,代码行数:14,代码来源:virtual.cpp

示例12: List01_NextIn

/*     14.4.2                                                             */
boolean   List01_NextIn    (tokentype    *ListTkn,    tokentype  *CurrNodeTkn,
                          ft F,lt Z,zz *Status,     tokentype  *NodeTkn,
                          tokentype    *MemberTkn)
{
listheadtype *HeadObj         = NullPtr;
listnodetype *NodeObj         = NullPtr;

 *NodeTkn    = NullToken;
 *MemberTkn  = NullToken;

  if (Normal(*Status))
  if (ListTkn->Handle == NullHandle)
     *Status = List01_NullListTkn;
 
  if (Normal(*Status))
  if (OaGetObject (ListTkn,   McStat,   (addrtype *)&HeadObj))

  if (CurrNodeTkn->Handle == NullHandle)
     *Status = List01_EmptyList;
 
  if (Normal(*Status))
  if (OaGetObject (CurrNodeTkn,   McStat,   (addrtype *)&NodeObj))

  if (NodeObj->NextNode  == NullHandle)
  {
     HeadObj->CurrentNode  =  HeadObj->LastNode;
    *Status = List01_EndOfList;

  } else {
     NodeTkn->DbId   = ListTkn->DbId;
     if ((NodeTkn->Handle = NodeObj->NextNode) != NullHandle)
     if (OaGetObject (NodeTkn,   McStat,   (addrtype *)&NodeObj))
       *MemberTkn          =  NodeObj->NodeObject;

     HeadObj->CurrentNode  =  NodeTkn->Handle;

  }

  if (ListBug ||  DeBug)
  if (sprintf (Msg, "  ListNextOf... Current[%2u,%4u]  Next[%2u,%4u]\n",
               CurrNodeTkn->DbId,    CurrNodeTkn->Handle,
               NodeTkn->DbId,        NodeTkn->Handle))
  if (TraceMsg (0, Msg))
  if (sprintf (Msg, "                Member [%2u,%4u]\n",
               MemberTkn->DbId,      MemberTkn->Handle))
    TraceMsg (0, Msg);
 
TRACK(TrackBak,"List01_NextIn\n");
return (STAT);
}
开发者ID:shivgarg,项目名称:SPEC_CPU_BENCH-2000-Android-APP,代码行数:51,代码来源:list01.c

示例13: ServerCreateSocket

abyss_bool
ServerCreateSocket(TServer *    const serverP,
                   const char * const name,
                   TOsSocket    const socketFd,
                   const char * const filesPath,
                   const char * const logFileName) {

    abyss_bool success;
    TSocket * socketP;

    createSocketFromOsSocket(socketFd, &socketP);

    if (socketP) {
        abyss_bool const noAcceptFalse = FALSE;

        const char * error;

        createServer(&serverP->srvP, noAcceptFalse, socketP, 0, &error);

        if (error) {
            TraceMsg(error);
            success = FALSE;
            xmlrpc_strfree(error);
        } else {
            success = TRUE;
            
            setNamePathLog(serverP, name, filesPath, logFileName);
        }
    } else
        success = FALSE;

    return success;
}
开发者ID:BenedictHiddleston,项目名称:xmlrpc-c-1.06.30,代码行数:33,代码来源:server.c

示例14: ServerCreate

abyss_bool
ServerCreate(TServer *    const serverP,
             const char * const name,
             uint16_t     const portNumber,
             const char * const filesPath,
             const char * const logFileName) {

    abyss_bool const noAcceptFalse = FALSE;

    abyss_bool success;
    const char * error;

    createServer(&serverP->srvP, noAcceptFalse, NULL, portNumber, &error);

    if (error) {
        TraceMsg(error);
        xmlrpc_strfree(error);
        success = FALSE;
    } else {
        success = TRUE;
    
        setNamePathLog(serverP, name, filesPath, logFileName);
    }

    return success;
}
开发者ID:BenedictHiddleston,项目名称:xmlrpc-c-1.06.30,代码行数:26,代码来源:server.c

示例15: TraceMsg

boolean Domain_Omi0Invoke
         (char         *Dat_File,         char         *Msg_File,  
          char         *Out_File,         char         *Xmem_File,  
          farlongtype   CorePageSize,     farlongtype   CoreMaxOnPage,
          indextype     AllocFreeAddrs,   indextype     ExtendFreeAddrs,
          indextype     AllocChunks,      indextype     ExtendChunks,
          indextype     AllocXmemBlocks,  indextype     ExtendXmemBlocks,
          indextype     AllocHandles,     indextype     ExtendHandles,
          indextype     AllocVchunks,     indextype     ExtendVchunks,
          indextype     AllocGrps,        indextype     ExtendGrps,
          indextype     AllocDbBlocks,    indextype     ExtendDbBlocks,
          char         *ParmsBuf,         ft F,lt Z,zz *Status)
{
   Domain_OmiInvoke
         (Dat_File,         Msg_File,  
          Out_File,         Xmem_File,  
          CorePageSize,     CoreMaxOnPage,
          AllocFreeAddrs,   ExtendFreeAddrs,
          AllocChunks,      ExtendChunks,
          AllocXmemBlocks,  ExtendXmemBlocks,
          AllocHandles,     ExtendHandles,
          AllocVchunks,     ExtendVchunks,
          AllocGrps,        ExtendGrps,
          AllocDbBlocks,    ExtendDbBlocks,
          McStat);

   TraceMsg(0, ParmsBuf);

TRACK(TrackBak,"Domain_Omi0Invoke\n");
return (STAT);
}
开发者ID:shivgarg,项目名称:SPEC_CPU_BENCH-2000-Android-APP,代码行数:31,代码来源:domain.c


注:本文中的TraceMsg函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。