本文整理汇总了C++中NPNetscapeFuncs::destroystream方法的典型用法代码示例。如果您正苦于以下问题:C++ NPNetscapeFuncs::destroystream方法的具体用法?C++ NPNetscapeFuncs::destroystream怎么用?C++ NPNetscapeFuncs::destroystream使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NPNetscapeFuncs
的用法示例。
在下文中一共展示了NPNetscapeFuncs::destroystream方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MyNPN_DestroyStream
static
NPError MyNPN_DestroyStream(NPP instance, NPStream* stream,
NPReason reason)
{
NPError err;
DEB(ef, "-> NPN_DestroyStream( %x, 0x%x, %d )\n", instance, stream, reason);
err = gNetscapeFuncs.destroystream( instance, stream, reason );
DEB(ef, "<- NPN_DestroyStream = %d\n", err);
return err;
}
示例2: NPN_DestroyStream
NPError NPN_DestroyStream(NPP instance, NPStream * stream, NPError reason)
{
int navMinorVersion = NPNFuncs.version & 0xFF;
NPError rv = NPERR_NO_ERROR;
if (navMinorVersion >= NPVERS_HAS_STREAMOUTPUT)
rv = NPNFuncs.destroystream(instance, stream, reason);
else
rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
return rv;
}
示例3: NPN_DestroyStream
NPError NPN_DestroyStream(NPP instance, NPStream* stream, NPError reason)
{
int navMinorVersion = NPNFuncs.version & 0xFF;
NPError rv = NPERR_NO_ERROR;
if(logger)
logger->logCall(action_npn_destroy_stream, (DWORD)instance, (DWORD)stream, (DWORD)reason);
if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
rv = NPNFuncs.destroystream(instance, stream, reason);
else
rv = NPERR_INCOMPATIBLE_VERSION_ERROR;
if(logger)
logger->logReturn();
return rv;
}
示例4: NPN_DestroyStream
NPError NPN_DestroyStream(NPP instance, NPStream* stream, NPError reason)
{
return NPNFuncs.destroystream(instance, stream, reason);
}