• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ ODS函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ShutdownSystray

void ShutdownSystray()
{
	if(m_hWndTray != NULL)
	{
		DestroyWindow(m_hWndTray);
		UnregisterClass(L"TrayNotifyWnd", m_hInstance);
		ODS("TrayNotifyWnd destroyed.\n");
	}

	if(m_hWndNotify != NULL)
	{
		DestroyWindow(m_hWndNotify);
		UnregisterClass(L"Shell_TrayWnd", m_hInstance);
		ODS("Shell_TrayWnd destroyed.\n");
	}
}
开发者ID:dremin,项目名称:cairoshell,代码行数:16,代码来源:WindowsHooks.cpp


示例2: PacketDeviceIoControl

//---------------------------------------------------------------------------
BOOL PacketDeviceIoControl (LPADAPTER lpAdapterObject,
			      LPPACKET lpPacket,
			      ULONG ulIoctl,
			      BOOLEAN bSync)
{
	BOOLEAN Result;
	DWORD Error;

	ODS ("Packet32: PacketDeviceIoControl\n");
	_ASSERTE (lpAdapterObject != NULL);
	_ASSERTE (lpPacket != NULL);
	lpPacket->OverLapped.Offset = 0;
	lpPacket->OverLapped.OffsetHigh = 0;
	lpPacket->ulBytesReceived		= 0;
	if (!ResetEvent (lpPacket->OverLapped.hEvent))
	{
		lpPacket->bIoComplete = FALSE;
		return FALSE;
	}

    Result = DeviceIoControl (lpAdapterObject->hFile,
				ulIoctl,
				lpPacket->Buffer,
				lpPacket->Length,
				lpPacket->Buffer,
				lpPacket->Length,
				&(lpPacket->ulBytesReceived), 
				&(lpPacket->OverLapped));
	Error=GetLastError () ;
    
	if (!Result && bSync)
	{
		if (Error == ERROR_IO_PENDING)
		{
			Result = GetOverlappedResult (lpAdapterObject->hFile,
					&(lpPacket->OverLapped),
					&(lpPacket->ulBytesReceived), 
					TRUE);
		}
		else
			ODS ("Packet32: unsupported API call return error!\n");
	}

	lpPacket->bIoComplete = Result;

	return Result;
}
开发者ID:OPEXGroup,项目名称:winpcap,代码行数:48,代码来源:Packet32.c


示例3: ODS

////////////////////////////////////////////////////////////////////////
// Remove
//
HRESULT CDocProperty::Remove()
{
	ODS(_T("CDocProperty::Remove\n"));
	CHECK_FLAG_RETURN((m_fDeadObj || m_fRemovedItem), E_INVALIDOBJECT);
	VariantClear(&m_vValue);
	m_fRemovedItem = TRUE;
	return S_OK;
}
开发者ID:lemonxiao0,项目名称:peerproject,代码行数:11,代码来源:PropItem.cpp


示例4: strcpy

void TTrdItf_DDABOSS::SetError(void)
{
   char buffer[512];
   strcpy(FLastError.Sender,"DDABOSS");
	 FLastError.ErrorCode = FDll.FixGetInt(FFix, FID_CODE);
	 lstrcpyn( FLastError.Text,FDll.FixGet(FFix, FID_MESSAGE, buffer, 0),MAX_TEXT );
	 ODS('M',PLUGINNAME,"ErrCode=%d,%s",FLastError.ErrorCode,FLastError.Text);
}
开发者ID:code4hunter,项目名称:oldpts,代码行数:8,代码来源:UTrdItf_DDABOSS.cpp


示例5: ODS

// *********************** CShellExt *************************
CFindExtension::CFindExtension()
{
    ODS("CShellExt::CShellExt()\r\n");

    m_cRef = 0L;

    g_cRefThisDll++;
}
开发者ID:eladkarako,项目名称:locate32,代码行数:9,代码来源:FindExtension.Cpp


示例6: ShutdownTask

void ShutdownTask()
{
	if(m_ShellHook != NULL)
	{
		UnhookWindowsHookEx(m_ShellHook);
		ODS("ShellHook unhooked.");
	}
}
开发者ID:24500,项目名称:cairoshell,代码行数:8,代码来源:WindowsHooks.cpp


示例7: ODS

CShellExtClassFactory::CShellExtClassFactory()
{
    ODS(L"CShellExtClassFactory::CShellExtClassFactory()\r\n");

    m_cRef = 0L;

    g_cRefThisDll++;
}
开发者ID:RandallFlagg,项目名称:kgbarchiver,代码行数:8,代码来源:ShellExt.Cpp


示例8: InitializeTask

void InitializeTask()
{
	m_ShellHook = SetWindowsHookEx(WH_SHELL, (HOOKPROC)ShellProc, m_hInstance, 0);
	if(m_ShellHook != NULL)
	{
		ODS("Shell hook created\n");
	}
}
开发者ID:24500,项目名称:cairoshell,代码行数:8,代码来源:WindowsHooks.cpp


示例9: ODS

market_type  TTrdItf_DDABOSS::ConvertMarketType(const char *t)
{
	if(t==NULL || strlen(t)<2 ) return mtNo;
	if( t[1] == 'H' ) return mtSHA;
	if( t[1] == 'Z' ) return mtSZA;
	ODS('M',PLUGINNAME,"MarketType = %s",t);
	return mtNo;
}
开发者ID:code4hunter,项目名称:oldpts,代码行数:8,代码来源:UTrdItf_DDABOSS.cpp


示例10: createEvents

static void createEvents()
{
    eventEnter = CreateEvent(NULL, false, false, _T("Local\\Shachar_Shemesh_TempLang_Event_Enter"));
    if(eventEnter == NULL) {
        ODS(_T("Failed to create enter event: %ld"), GetLastError());
        return;
    }
    eventHookInstalled = CreateEvent(NULL, false, false, _T("Local\\Shachar_Shemesh_TempLang_Event_Hook"));
    if(eventHookInstalled == NULL) {
        ODS(_T("Failed to create hook installed event: %ld"), GetLastError());
        return;
    }
    eventExit = CreateEvent(NULL, false, false, _T("Local\\Shachar_Shemesh_TempLang_Event_Exit"));
    if(eventExit == NULL) {
        ODS(_T("Failed to create exit event: %ld"), GetLastError());
        return;
    }
}
开发者ID:Shachar,项目名称:TempLang,代码行数:18,代码来源:dllmain.cpp


示例11: STDMETHODIMP_

////////////////////////////////////////////////////////////////////////
// Release
//
STDMETHODIMP_(ULONG) CRatDVDClassFactory::Release(void)
{
    if ( 0 != --m_cRef ) return m_cRef;

	ODS(_T("CRatDVDClassFactory delete\n"));

    LockServer(FALSE);
    return 0;
}
开发者ID:lemonxiao0,项目名称:peerproject,代码行数:12,代码来源:ClassFactory.cpp


示例12: ODS

STDMETHODIMP CFindExtension::QueryContextMenu(HMENU hMenu,
                                         UINT indexMenu,
                                         UINT idCmdFirst,
                                         UINT idCmdLast,
                                         UINT uFlags)
{
    ODS("CFindExtension::QueryContextMenu()\r\n");
	return NOERROR;
}
开发者ID:eladkarako,项目名称:locate32,代码行数:9,代码来源:CtxMenuHandler.Cpp


示例13: ODS

// *********************** CShellExt *************************
CLocateShellExtension::CLocateShellExtension()
{
    ODS("CShellExt::CShellExt()");

    m_cRef = 0L;
    m_pDataObj = NULL;

    g_cRefThisDll++;
}
开发者ID:eladkarako,项目名称:locate32,代码行数:10,代码来源:LocateShellExtension.Cpp


示例14: DllMain

extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
    if (dwReason == DLL_PROCESS_ATTACH)
    {
        ODS(L"In DLLMain, DLL_PROCESS_ATTACH\r\n");

        // Extension DLL one-time initialization

        g_hmodThisDll = hInstance;
    }
    else if (dwReason == DLL_PROCESS_DETACH)
    {
        ODS(L"In DLLMain, DLL_PROCESS_DETACH\r\n");
    }

    return 1;   // ok
}
开发者ID:RandallFlagg,项目名称:kgbarchiver,代码行数:18,代码来源:ShellExt.Cpp


示例15: ODS

// Our icon overlay priority
STDMETHODIMP CShellExt::GetPriority(int *pPriority)
{
	ODS("In GetPriority\r\n");

	//highest priority
	*pPriority = 0;

	return S_OK;
}
开发者ID:mihaipopescu,项目名称:Zeus,代码行数:10,代码来源:ShellIconOverlay.cpp


示例16: memset

void RecvEventsTh::ConnectToServer(void)
{
	int nReturn;
	sockaddr_in tagSockAddrServer;
	// Set values to server sockaddr
	memset (&tagSockAddrServer, 0, sizeof (tagSockAddrServer) );
	tagSockAddrServer.sin_family = AF_INET;
	tagSockAddrServer.sin_port = htons(PushPort);
	tagSockAddrServer.sin_addr.S_un.S_addr = inet_addr (SvrIp.c_str());

	// Create the socket
	hSockContral = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
	if (hSockContral == INVALID_SOCKET)
	{
		ODS('E',"JSDEventsRecv","Create socket Error Number: %d.",GetLastError());
		return;
	}
	
	// connect to server
	nReturn = connect (hSockContral, (sockaddr*) &tagSockAddrServer, sizeof (tagSockAddrServer) );
	if (nReturn == -1)
	{
		ODS('E',"JSDEventsRecv","Connect failed, Error Number: %d, Message : client connected to server %s.",
			GetLastError(),inet_ntoa (tagSockAddrServer.sin_addr));
		closesocket (hSockContral);
		hSockContral = INVALID_SOCKET;
		return;
	}

	last_ping_tick = 0;
	// send connect command to server
	char szSend[MSG_MAXLEN];
	memset(szSend, 0, sizeof(szSend));
	ST_PUSHHEAD* pstPushHead = (ST_PUSHHEAD *)szSend;
	pstPushHead->usType = htons(CMD_CONNECT);
	nReturn = ::send(hSockContral, szSend, sizeof(szSend), 0);
	if (nReturn == -1)
	{
		ODS('E',"JSDEventsRecv","login failed, Error Number: %d.",GetLastError());
		closesocket (hSockContral);
		hSockContral = INVALID_SOCKET;
		return;
	}
}
开发者ID:code4hunter,项目名称:oldpts,代码行数:44,代码来源:uRecvEventsTh.cpp


示例17: InitializeSystray

void InitializeSystray()
{
	memset(&m_TrayClass, 0, sizeof(m_TrayClass));
	
	m_TrayClass.lpszClassName = L"Shell_TrayWnd";
	m_TrayClass.lpfnWndProc = WndProc;
	m_TrayClass.style = CS_DBLCLKS;
	m_TrayClass.hInstance = m_hInstance;

	RegisterClass( &m_TrayClass );

	m_hWndTray = CreateWindowEx(	WS_EX_TOPMOST | WS_EX_TOOLWINDOW,
								TEXT("Shell_TrayWnd"),
								TEXT(""),
								WS_POPUP,
								0, 0,
								0, 0,
								NULL,
								NULL,
								m_hInstance,
								NULL);

	ODS("Shell_TrayWnd Created\n");

	memset(&m_NotifyClass,0, sizeof(m_NotifyClass));
     m_NotifyClass.lpszClassName = TEXT("TrayNotifyWnd");
     m_NotifyClass.lpfnWndProc = WndProc;
     //m_NotifyClass.cbSize = sizeof(WNDCLASSEX);
     m_NotifyClass.hInstance = m_hInstance;
     m_NotifyClass.style = CS_DBLCLKS;
     
     RegisterClass(&m_NotifyClass);
        
	 m_hWndNotify = CreateWindowEx( 0,
              TEXT("TrayNotifyWnd"), 
              NULL,
              WS_CHILD,
              0, 0, 0, 0,
              m_hWndTray, NULL,
              m_hInstance,
              NULL);

	 ODS("TrayNotifyWnd Created\n");
}
开发者ID:24500,项目名称:cairoshell,代码行数:44,代码来源:WindowsHooks.cpp


示例18: ODS

int CLocateShellExtension::InsertMenuItems(HMENU hMenu,UINT nStartIndex,UINT idCmdFirst,UINT& nHighestUsedID)
{
	ODS("CShellExt::InsertMenuItems()");
	
	if (m_pDataObj==NULL)
		return 0;

	
	

	

	
	MENUITEMINFOW mii;
	mii.cbSize=sizeof(MENUITEMINFOW);
	mii.fMask=MIIM_ID|MIIM_TYPE;
	mii.fType=MFT_STRING;
	mii.dwTypeData=L"Files:";
	mii.wID=idCmdFirst;
    InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);

	for (int i=0;i<m_aFiles.GetSize();i++)
	{
		mii.wID++;
		mii.dwTypeData=m_aFiles[i];
		InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);
	}

	mii.wID++;
	mii.dwTypeData=L"Directories:";
	InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);
	
	for (int i=0;i<m_aDirectories.GetSize();i++)
	{
		mii.wID++;
		mii.dwTypeData=m_aDirectories[i];
		InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);
	}


	mii.wID++;
	mii.dwTypeData=L"Computers:";
	InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);
	
	for (int i=0;i<m_aComputers.GetSize();i++)
	{
		mii.wID++;
		mii.dwTypeData=m_aComputers[i];
		InsertMenuItemW(hMenu,nStartIndex++,TRUE,&mii);
	}

	
	nHighestUsedID=mii.wID;
	
	return mii.wID-idCmdFirst+1;
}
开发者ID:joshball,项目名称:locate32-cogit.net,代码行数:56,代码来源:CtxMenu.Cpp


示例19: STDMETHODIMP_

////////////////////////////////////////////////////////////////////////
// CDsoFramerClassFactory::Release
//
STDMETHODIMP_(ULONG) CDsoFramerClassFactory::Release(void)
{
	TRACE1("CDsoFramerClassFactory::Release - %d\n", m_cRef-1);
    if (0 != --m_cRef) return m_cRef;

	ODS("CDsoFramerClassFactory delete\n");
	InterlockedDecrement((LPLONG)&v_cLocks);
    delete this;
    return 0;
}
开发者ID:ichengzi,项目名称:UDSOnlineEditor,代码行数:13,代码来源:classfactory.cpp


示例20: STDMETHODIMP_

STDMETHODIMP_(ULONG) CShellExtClassFactory::AddRef()
{
    ODS("CShellExtClassFactory::AddRef()\r\n");

	char szNum[100];
	wsprintf(szNum,"m_cRef is after this call %d",m_cRef+1);
	DebugMessage(szNum);

	return ++m_cRef;
}
开发者ID:eladkarako,项目名称:locate32,代码行数:10,代码来源:FindExtension.Cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ OFFSET函数代码示例发布时间:2022-05-30
下一篇:
C++ ODM_RT_TRACE函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap