本文整理汇总了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");
}
}
示例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;
}
示例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;
}
示例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);
}
示例5: ODS
// *********************** CShellExt *************************
CFindExtension::CFindExtension()
{
ODS("CShellExt::CShellExt()\r\n");
m_cRef = 0L;
g_cRefThisDll++;
}
示例6: ShutdownTask
void ShutdownTask()
{
if(m_ShellHook != NULL)
{
UnhookWindowsHookEx(m_ShellHook);
ODS("ShellHook unhooked.");
}
}
示例7: ODS
CShellExtClassFactory::CShellExtClassFactory()
{
ODS(L"CShellExtClassFactory::CShellExtClassFactory()\r\n");
m_cRef = 0L;
g_cRefThisDll++;
}
示例8: InitializeTask
void InitializeTask()
{
m_ShellHook = SetWindowsHookEx(WH_SHELL, (HOOKPROC)ShellProc, m_hInstance, 0);
if(m_ShellHook != NULL)
{
ODS("Shell hook created\n");
}
}
示例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;
}
示例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;
}
}
示例11: STDMETHODIMP_
////////////////////////////////////////////////////////////////////////
// Release
//
STDMETHODIMP_(ULONG) CRatDVDClassFactory::Release(void)
{
if ( 0 != --m_cRef ) return m_cRef;
ODS(_T("CRatDVDClassFactory delete\n"));
LockServer(FALSE);
return 0;
}
示例12: ODS
STDMETHODIMP CFindExtension::QueryContextMenu(HMENU hMenu,
UINT indexMenu,
UINT idCmdFirst,
UINT idCmdLast,
UINT uFlags)
{
ODS("CFindExtension::QueryContextMenu()\r\n");
return NOERROR;
}
示例13: ODS
// *********************** CShellExt *************************
CLocateShellExtension::CLocateShellExtension()
{
ODS("CShellExt::CShellExt()");
m_cRef = 0L;
m_pDataObj = NULL;
g_cRefThisDll++;
}
示例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
}
示例15: ODS
// Our icon overlay priority
STDMETHODIMP CShellExt::GetPriority(int *pPriority)
{
ODS("In GetPriority\r\n");
//highest priority
*pPriority = 0;
return S_OK;
}