if (pPlugin->m_firstAction == action_npn_request_read) { if (stream->notifyData) { NPByteRange* rangeList = 	(NPByteRange*) stream->notifyData; NPN_RequestRead(stream, rangeList); stream->notifyData = 0; } }
int32 NPP_Write (NPP instance, NPStream *stream, int32 offset, int32 len, void *buffer){     DWORD dwTickEnter = XP_GetTickCount();  CPluginBase * pPlugin = NULL;  int32 ret = len;  if(!instance)    goto Return;    pPlugin = (CPluginBase *)instance->pdata;Return:  DWORD dwTickReturn = XP_GetTickCount();  pLogger->appendToLog(action_npp_write, dwTickEnter, dwTickReturn, (DWORD)ret,                        (DWORD)instance, (DWORD)stream,                        (DWORD)offset, (DWORD)len, (DWORD)buffer);  return ret;}