这篇教程C++ CR_DDI_PROLOGUE函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中CR_DDI_PROLOGUE函数的典型用法代码示例。如果您正苦于以下问题:C++ CR_DDI_PROLOGUE函数的具体用法?C++ CR_DDI_PROLOGUE怎么用?C++ CR_DDI_PROLOGUE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了CR_DDI_PROLOGUE函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wglDescribeLayerPlane_proxBOOL WINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR lpd ){ CR_DDI_PROLOGUE(); crWarning( "wglDescribeLayerPlane: unimplemented" ); return 0;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,
示例2: DrvSetContext//we're not going to change icdTable at runtime, so callback is unusedPICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback){ ContextInfo *pContext; WindowInfo *pWindowInfo; BOOL ret = false; CR_DDI_PROLOGUE(); (void) (callback); crHashtableLock(stub.windowTable); crHashtableLock(stub.contextTable); pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); if (pContext) { pWindowInfo = stubGetWindowInfo(hdc); if (pWindowInfo) ret = stubMakeCurrent(pWindowInfo, pContext); else crError("no window info available."); } else crError("No context found."); crHashtableUnlock(stub.contextTable); crHashtableUnlock(stub.windowTable); return ret ? &icdTable : NULL;}
开发者ID:svn2github,项目名称:virtualbox,代码行数:31,
示例3: DECLEXPORTDECLEXPORT(GLint) WINAPI VBoxGetWindowId( HDC hdc ){ WindowInfo *window; GLint winid = 0; CR_DDI_PROLOGUE(); crHashtableLock(stub.windowTable); window = stubGetWindowInfo(hdc); if (!window) { crWarning("stubGetWindowInfo: window not found!"); goto end; } if (!window->spuWindow) { crWarning("stubGetWindowInfo: window is null!"); goto end; } winid = window->spuWindow;end: crHashtableUnlock(stub.windowTable); return winid;}
开发者ID:MadHacker217,项目名称:VirtualBox-OSE,代码行数:27,
示例4: DrvCreateContextHGLRC APIENTRY DrvCreateContext(HDC hdc){ char dpyName[MAX_DPY_NAME]; ContextInfo *context; CR_DDI_PROLOGUE(); crDebug( "DrvCreateContext(0x%x) called.", hdc); stubInit(); CRASSERT(stub.contextTable); sprintf(dpyName, "%d", hdc);#ifndef VBOX_CROGL_USE_VBITS_SUPERSET if (stub.haveNativeOpenGL) desiredVisual |= ComputeVisBits( hdc );#endif context = stubNewContext(dpyName, desiredVisual, UNDECIDED, 0#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) , NULL#endif ); if (!context) return 0; return (HGLRC) context->id;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:29,
示例5: wglGetLayerPaletteEntries_proxint WINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start, int entries, COLORREF *cr ){ CR_DDI_PROLOGUE(); crWarning( "wglGetLayerPaletteEntries: unsupported" ); return 0;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,
示例6: wglCreateLayerContext_proxHGLRC WINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane ){ CR_DDI_PROLOGUE(); stubInit(); crWarning( "wglCreateLayerContext: unsupported" ); return 0;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,
示例7: DrvDeleteContextBOOL APIENTRY DrvDeleteContext(HGLRC hglrc){#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) ContextInfo *pContext; PVBOXUHGSMI pHgsmi = NULL;#endif CR_DDI_PROLOGUE(); crDebug( "DrvDeleteContext(0x%x) called", hglrc );#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) crHashtableLock(stub.contextTable); pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); if (pContext) pHgsmi = pContext->pHgsmi; crHashtableUnlock(stub.contextTable);#endif stubDestroyContext( (unsigned long) hglrc );#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) if (pHgsmi) VBoxCrHgsmiDestroy(pHgsmi);#endif return true;}
开发者ID:svn2github,项目名称:virtualbox,代码行数:29,
示例8: DrvDeleteContextBOOL APIENTRY DrvDeleteContext(HGLRC hglrc){ CR_DDI_PROLOGUE(); /*crDebug( "DrvDeleteContext(0x%x) called", hglrc );*/ stubDestroyContext( (unsigned long) hglrc ); return 1;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:7,
示例9: wglGetExtensionsStringARB_proxconst GLubyte * WINAPI wglGetExtensionsStringARB_prox(HDC hdc){ CR_DDI_PROLOGUE(); (void) hdc; return gsz_wgl_extensions;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,
示例10: wglMakeCurrent_proxBOOL WINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc ){ ContextInfo *context; WindowInfo *window; BOOL ret; CR_DDI_PROLOGUE(); crHashtableLock(stub.windowTable); crHashtableLock(stub.contextTable); context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); window = stubGetWindowInfo(hdc); if (hglrc!=0 && !context) { crWarning("wglMakeCurrent got unexpected hglrc 0x%x", hglrc); } ret = stubMakeCurrent( window, context ); crHashtableUnlock(stub.contextTable); crHashtableUnlock(stub.windowTable); return ret;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:26,
示例11: wglUseFontOutlinesW_proxBOOL WINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT gmf ){ CR_DDI_PROLOGUE(); crWarning( "wglUseFontOutlinesW: unsupported" ); return 0;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:8,
示例12: wglSwapBuffers_proxBOOL WINAPIwglSwapBuffers_prox( HDC hdc ){ WindowInfo *window = stubGetWindowInfo(hdc); CR_DDI_PROLOGUE(); stubSwapBuffers( window, 0 ); return 1;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:8,
示例13: DrvSetLayerPaletteEntriesint APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries, CONST COLORREF *pcr){ CR_DDI_PROLOGUE(); crWarning( "DrvSetLayerPaletteEntries: unsupported" ); return 0;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:8,
示例14: wglGetCurrentDC_proxHDC WINAPI wglGetCurrentDC_prox( void ){ ContextInfo *context = stubGetCurrentContext(); CR_DDI_PROLOGUE(); if (context && context->currentDrawable) return (HDC) context->currentDrawable->drawable; else return (HDC) NULL;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:9,
示例15: DrvDescribeLayerPlaneBOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat, int iLayerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd){ CR_DDI_PROLOGUE(); crWarning( "DrvDescribeLayerPlane: unimplemented" ); CRASSERT(false); return 0;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:9,
示例16: DrvSwapBuffersBOOL APIENTRY DrvSwapBuffers(HDC hdc){ WindowInfo *window; CR_DDI_PROLOGUE(); /*crDebug( "DrvSwapBuffers(0x%x) called", hdc );*/ window = stubGetWindowInfo(hdc); stubSwapBuffers( window, 0 ); return 1;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:10,
示例17: wglSetPixelFormat_proxBOOL WINAPI wglSetPixelFormat_prox( HDC hdc, int pixelFormat, CONST PIXELFORMATDESCRIPTOR *pdf ){ CR_DDI_PROLOGUE(); if ( pixelFormat != 1 ) { crError( "wglSetPixelFormat: pixelFormat=%d?/n", pixelFormat ); } return 1;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:11,
示例18: DrvValidateVersionBOOL APIENTRY DrvValidateVersion(DWORD version){ CR_DDI_PROLOGUE(); if (stubInit()) { crDebug("DrvValidateVersion %x -> TRUE/n", version); return TRUE; } crDebug("DrvValidateVersion %x -> FALSE, going to use system default opengl32.dll/n", version); return FALSE;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:11,
示例19: DrvSetPixelFormatBOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat){ CR_DDI_PROLOGUE(); crDebug( "DrvSetPixelFormat(0x%x, %i) called.", hdc, iPixelFormat ); if ( (iPixelFormat<1) || (iPixelFormat>2) ) { crError( "wglSetPixelFormat: iPixelFormat=%d?", iPixelFormat ); } return 1;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:11,
示例20: wglDescribePixelFormat_proxint WINAPI wglDescribePixelFormat_prox( HDC hdc, int pixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd ){ CR_DDI_PROLOGUE();/* if ( pixelFormat != 1 ) { * crError( "wglDescribePixelFormat: pixelFormat=%d?/n", pixelFormat ); * return 0; * } */ if ( !pfd ) { crWarning( "wglDescribePixelFormat: pfd=NULL/n" ); return 1; /* There's only one, baby */ } if ( nBytes != sizeof(*pfd) ) { crWarning( "wglDescribePixelFormat: nBytes=%u?/n", nBytes ); return 1; /* There's only one, baby */ } pfd->nSize = sizeof(*pfd); pfd->nVersion = 1; pfd->dwFlags = ( PFD_DRAW_TO_WINDOW | PFD_SUPPORT_GDI | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER ); pfd->iPixelType = PFD_TYPE_RGBA; pfd->cColorBits = 32; pfd->cRedBits = 8; pfd->cRedShift = 24; pfd->cGreenBits = 8; pfd->cGreenShift = 16; pfd->cBlueBits = 8; pfd->cBlueShift = 8; pfd->cAlphaBits = 8; pfd->cAlphaShift = 0; pfd->cAccumBits = 0; pfd->cAccumRedBits = 0; pfd->cAccumGreenBits = 0; pfd->cAccumBlueBits = 0; pfd->cAccumAlphaBits = 0; pfd->cDepthBits = 32; pfd->cStencilBits = 8; pfd->cAuxBuffers = 0; pfd->iLayerType = PFD_MAIN_PLANE; pfd->bReserved = 0; pfd->dwLayerMask = 0; pfd->dwVisibleMask = 0; pfd->dwDamageMask = 0; /* the max PFD index */ return 1;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:53,
示例21: DrvCreateLayerContextHGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane){ CR_DDI_PROLOGUE(); crDebug( "DrvCreateLayerContext(0x%x, %i) called.", hdc, iLayerPlane); //We don't support more than 1 layers. if (iLayerPlane == 0) { return DrvCreateContext(hdc); } else { crError( "DrvCreateLayerContext (%x,%x): unsupported", hdc, iLayerPlane); return NULL; }}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:13,
示例22: wglSwapLayerBuffers_proxBOOL WINAPI wglSwapLayerBuffers_prox( HDC hdc, UINT planes ){ CR_DDI_PROLOGUE(); if (planes == WGL_SWAP_MAIN_PLANE) { return wglSwapBuffers_prox(hdc); } else { crWarning( "wglSwapLayerBuffers: unsupported" ); return 0; }}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:13,
示例23: DrvSwapLayerBuffersBOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes){ CR_DDI_PROLOGUE(); if (fuPlanes == 1) { return DrvSwapBuffers(hdc); } else { crWarning( "DrvSwapLayerBuffers: unsupported" ); CRASSERT(false); return 0; }}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:14,
示例24: wglCreateContext_proxHGLRC WINAPI wglCreateContext_prox( HDC hdc ){ char dpyName[MAX_DPY_NAME]; ContextInfo *context; CR_DDI_PROLOGUE(); stubInit(); CRASSERT(stub.contextTable); sprintf(dpyName, "%d", hdc); if (stub.haveNativeOpenGL) desiredVisual |= ComputeVisBits( hdc ); context = stubNewContext(dpyName, desiredVisual, UNDECIDED, 0); if (!context) return 0; return (HGLRC) context->id;}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:21,
示例25: DECLEXPORTDECLEXPORT(void) WINAPI VBoxCtxChromiumParameteriCR(HGLRC hglrc, GLenum param, GLint value){ ContextInfo *context; CR_DDI_PROLOGUE();// crHashtableLock(stub.windowTable); crHashtableLock(stub.contextTable); context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); if (context) { stubCtxCheckCreate(context); stubConChromiumParameteriCR(CR_CTX_CON(context), param, value); } else crWarning("invalid context %#x", hglrc); crHashtableUnlock(stub.contextTable);// crHashtableUnlock(stub.windowTable);}
开发者ID:jbremer,项目名称:virtualbox,代码行数:22,
示例26: DrvSetContext//we're not going to change icdTable at runtime, so callback is unusedPICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback){ ContextInfo *context; WindowInfo *window; BOOL ret; CR_DDI_PROLOGUE(); /*crDebug( "DrvSetContext called(0x%x, 0x%x)", hdc, hglrc );*/ (void) (callback); crHashtableLock(stub.windowTable); crHashtableLock(stub.contextTable); context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc); window = stubGetWindowInfo(hdc); ret = stubMakeCurrent(window, context); crHashtableUnlock(stub.contextTable); crHashtableUnlock(stub.windowTable); return ret ? &icdTable:NULL;}
开发者ID:marktsai0316,项目名称:VirtualMonitor,代码行数:25,
注:本文中的CR_DDI_PROLOGUE函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ CR_GET_BUFFERED_POINTER函数代码示例 C++ CR_CHAN函数代码示例 |