D:/opendownloadmanager/ODM-1.x/OpNetCatcher/OpNetCatcher.cpp File Reference

#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
NPPluginFuncsg_plugFuncs
HINSTANCE _hModule
const LPCSTR _pszWndClass = "FDM OpNetCatcher wnd class"
NPNetscapeFuncs_pNFuncs


Function Documentation

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 
)

Definition at line 22 of file OpNetCatcher.cpp.

References _hModule, _Icon, IDI_FDM, NULL, and TRUE.

short _stdcall NP_GetEntryPoints ( NPPluginFuncs p  ) 

short _stdcall NP_Initialize ( NPNetscapeFuncs p  ) 

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().

NPError NPP_DestroyStream ( NPP  ,
NPStream ,
NPReason   
)

Definition at line 199 of file OpNetCatcher.cpp.

References NPERR_GENERIC_ERROR.

Referenced by NP_GetEntryPoints().

int16 NPP_HandleEvent ( NPP  ,
void *  ev 
)

Definition at line 229 of file OpNetCatcher.cpp.

References NPERR_GENERIC_ERROR.

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().

NPError NPP_NewStream ( NPP  npp,
NPMIMEType  ,
NPStream stream,
NPBool  ,
uint16 stype 
)

Definition at line 118 of file OpNetCatcher.cpp.

References _threadUrlToFdm(), NP_NORMAL, NPERR_GENERIC_ERROR, NULL, and _NPStream::url.

Referenced by NP_GetEntryPoints().

void NPP_Print ( NPP  ,
NPPrint  
)

Definition at line 224 of file OpNetCatcher.cpp.

Referenced by NP_GetEntryPoints().

NPError NPP_SetWindow ( NPP  npp,
NPWindow wnd 
)

void NPP_StreamAsFile ( NPP  ,
NPStream ,
const char *  file 
)

Definition at line 205 of file OpNetCatcher.cpp.

Referenced by NP_GetEntryPoints().

void NPP_URLNotify ( NPP  instance,
const char *  url,
NPReason  reason,
void *  notifyData 
)

Definition at line 43 of file OpNetCatcher.cpp.

Referenced by NP_Initialize().

int32 NPP_Write ( NPP  npp,
NPStream stream,
int32  off,
int32  len,
void *   
)

Definition at line 217 of file OpNetCatcher.cpp.

Referenced by NP_GetEntryPoints().

int32 NPP_WriteReady ( NPP  npp,
NPStream stream 
)

Definition at line 210 of file OpNetCatcher.cpp.

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 
)


Variable Documentation

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 15 of file OpNetCatcher.cpp.

Referenced by DllMain().

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.


Generated on Sun May 25 00:20:17 2008 by  doxygen 1.5.6