#include "stdafx.h"#include <windows.h>#include "npapi.h"#include "npupp.h"#include <objbase.h>#include "..\Fdm.h"#include <comdef.h>#include "resource.h"Go to the source code of this file.
Functions | |
| LRESULT WINAPI | WndProc (HWND hWnd, UINT uMsg, WPARAM wp, LPARAM lp) |
| BOOL APIENTRY | DllMain (HANDLE hModule, DWORD reason, LPVOID lpReserved) |
| void | NPP_URLNotify (NPP instance, const char *url, NPReason reason, void *notifyData) |
| short _stdcall | NP_Initialize (NPNetscapeFuncs *p) |
| NPError WINAPI | NP_Shutdown () |
| void | UrlToFdm (LPCSTR pszUrl) |
| DWORD WINAPI | _threadUrlToFdm (LPVOID lp) |
| NPError | NPP_NewStream (NPP npp, NPMIMEType, NPStream *stream, NPBool, uint16 *stype) |
| NPError | NPP_New (NPMIMEType, NPP npp, uint16, int16, char *arg[], char *argv[], NPSavedData *) |
| NPError | NPP_Destroy (NPP, NPSavedData **pp) |
| NPError | NPP_SetWindow (NPP npp, NPWindow *wnd) |
| NPError | NPP_DestroyStream (NPP, NPStream *, NPReason) |
| void | NPP_StreamAsFile (NPP, NPStream *, const char *file) |
| int32 | NPP_WriteReady (NPP npp, NPStream *stream) |
| int32 | NPP_Write (NPP npp, NPStream *stream, int32 off, int32 len, void *) |
| void | NPP_Print (NPP, NPPrint *) |
| int16 | NPP_HandleEvent (NPP, void *ev) |
| short _stdcall | NP_GetEntryPoints (NPPluginFuncs *p) |
Variables | |
| HICON | _Icon = NULL |
| NPPluginFuncs * | g_plugFuncs |
| HINSTANCE | _hModule |
| const LPCSTR | _pszWndClass = "FDM OpNetCatcher wnd class" |
| NPNetscapeFuncs * | _pNFuncs |
| DWORD WINAPI _threadUrlToFdm | ( | LPVOID | lp | ) |
Definition at line 109 of file OpNetCatcher.cpp.
References LPSTR, NULL, and UrlToFdm().
Referenced by NPP_NewStream().
| BOOL APIENTRY DllMain | ( | HANDLE | hModule, | |
| DWORD | reason, | |||
| LPVOID | lpReserved | |||
| ) |
| short _stdcall NP_GetEntryPoints | ( | NPPluginFuncs * | p | ) |
Definition at line 234 of file OpNetCatcher.cpp.
References _NPPluginFuncs::asfile, _NPPluginFuncs::destroy, _NPPluginFuncs::destroystream, _NPPluginFuncs::event, _NPPluginFuncs::newp, _NPPluginFuncs::newstream, NP_VERSION_MAJOR, NP_VERSION_MINOR, NPERR_INVALID_FUNCTABLE_ERROR, NPP_Destroy(), NPP_DestroyStream(), NPP_New(), NPP_NewStream(), NPP_Print(), NPP_SetWindow(), NPP_StreamAsFile(), NPP_Write(), NPP_WriteReady(), NULL, _NPPluginFuncs::print, _NPPluginFuncs::setwindow, _NPPluginFuncs::size, _NPPluginFuncs::version, _NPPluginFuncs::write, and _NPPluginFuncs::writeready.
| short _stdcall NP_Initialize | ( | NPNetscapeFuncs * | p | ) |
Definition at line 49 of file OpNetCatcher.cpp.
References _hModule, _pszWndClass, _NPPluginFuncs::javaClass, NPP_URLNotify(), NPVERS_HAS_LIVECONNECT, NPVERS_HAS_NOTIFICATION, NULL, _NPPluginFuncs::urlnotify, _NPNetscapeFuncs::version, and WndProc().
| NPError WINAPI NP_Shutdown | ( | ) |
Definition at line 81 of file OpNetCatcher.cpp.
References _hModule, _pszWndClass, and NPERR_NO_ERROR.
| NPError NPP_Destroy | ( | NPP | , | |
| NPSavedData ** | pp | |||
| ) |
Definition at line 140 of file OpNetCatcher.cpp.
References NPERR_NO_ERROR.
Referenced by NP_GetEntryPoints().
Definition at line 199 of file OpNetCatcher.cpp.
References NPERR_GENERIC_ERROR.
Referenced by NP_GetEntryPoints().
| NPError NPP_New | ( | NPMIMEType | , | |
| NPP | npp, | |||
| uint16 | , | |||
| int16 | , | |||
| char * | arg[], | |||
| char * | argv[], | |||
| NPSavedData * | ||||
| ) |
Definition at line 129 of file OpNetCatcher.cpp.
References NPERR_GENERIC_ERROR, NULL, and _NPP::pdata.
Referenced by NP_GetEntryPoints().
Definition at line 118 of file OpNetCatcher.cpp.
References _threadUrlToFdm(), NP_NORMAL, NPERR_GENERIC_ERROR, NULL, and _NPStream::url.
Referenced by NP_GetEntryPoints().
Definition at line 173 of file OpNetCatcher.cpp.
References _hModule, _pszWndClass, _NPWindow::height, if(), NPERR_GENERIC_ERROR, NPERR_INVALID_INSTANCE_ERROR, NPERR_NO_ERROR, NULL, _NPP::pdata, TRUE, _NPWindow::width, and _NPWindow::window.
Referenced by NP_GetEntryPoints().
| void UrlToFdm | ( | LPCSTR | pszUrl | ) |
Definition at line 88 of file OpNetCatcher.cpp.
References CLSID_WGUrlReceiver, FAILED, hr, HRESULT, IID_IWGUrlReceiver, and NULL.
Referenced by _threadUrlToFdm().
| LRESULT WINAPI WndProc | ( | HWND | hWnd, | |
| UINT | uMsg, | |||
| WPARAM | wp, | |||
| LPARAM | lp | |||
| ) |
Definition at line 295 of file winutil.cpp.
References ASSERT, CBaseWindow::DoneWithWindow(), EXECUTE_ASSERT, GetLastError(), GetWindowLongPtr, LONG, LONG_PTR, CBaseWindow::m_bDoPostToDestroy, MsgDestroy, NULL, CBaseWindow::OnReceiveMessage(), and SetWindowLongPtr.
Referenced by NP_Initialize().
| HINSTANCE _hModule |
Definition at line 17 of file OpNetCatcher.cpp.
Referenced by DllMain(), NP_Initialize(), NP_Shutdown(), and NPP_SetWindow().
| HICON _Icon = NULL |
Definition at line 48 of file OpNetCatcher.cpp.
| const LPCSTR _pszWndClass = "FDM OpNetCatcher wnd class" |
Definition at line 18 of file OpNetCatcher.cpp.
Referenced by NP_Initialize(), NP_Shutdown(), and NPP_SetWindow().
Definition at line 16 of file OpNetCatcher.cpp.
1.5.6