/*
 * Replies to cookie requestor message
 */
void CookieSupport::ReplyCookie(const char *cookie, int len, int pnum){

    CWriteBuffer wb;
    trace("CookieSupport reply for an original JAVA_PLUGIN_COOKIE_REQUEST\n");
    wb.putInt(JAVA_PLUGIN_COOKIE);
    wb.putInt(pnum);
    wb.putString(cookie);
    mJvm->SendRequest(wb, FALSE);
}
JD_IMETHODIMP JavaPluginFactory5::ShowJavaConsole(void) {

    JavaVM5 *vm = GetJavaVM();

    CWriteBuffer wb;
    trace("JavaPluginFactory5:ShowJavaConsole");
    wb.putInt(JAVA_PLUGIN_CONSOLE_SHOW);
    SendRequest(wb, FALSE);

    UNUSED(vm);

    return JD_OK;
}
void PluginPrint::sendRequest()
{
  CWriteBuffer wb;
  JDPluginEmbedPrint embedPrint= mPrintInfo->print.embedPrint;
  JDPluginWindow window=embedPrint.window;
  wb.putInt(JAVA_PLUGIN_PRINT);
  wb.putInt( mInst->GetPluginNumber());
  wb.putInt(window.x);
  wb.putInt(window.y);
  wb.putInt(window.width);
  wb.putInt(window.height);
  mInst->GetPluginFactory()->SendRequest(wb, FALSE);
}