if (pPlugin->m_firstAction == action_npn_request_read && seekable) { *stype = NP_SEEK; }
NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype){  DWORD dwTickEnter = XP_GetTickCount();  CPluginBase * pPlugin = NULL;  NPError ret = NPERR_NO_ERROR;  if(!instance) {    ret = NPERR_INVALID_INSTANCE_ERROR;    goto Return;  }  pPlugin = (CPluginBase *)instance->pdata;  pPlugin->onNPP_NewStream(instance, (LPSTR)type, stream, seekable, stype);Return:  DWORD dwTickReturn = XP_GetTickCount();  pLogger->appendToLog(action_npp_new_stream, dwTickEnter, dwTickReturn, (DWORD)ret, (DWORD)instance,                        (DWORD)type, (DWORD)stream, (DWORD)seekable, (DWORD)stype);  return ret;}