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


C++ ODS函数代码示例

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


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


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