ssbase.cpp
资源名称:ssbase.rar [点击查看]
上传用户:linpin
上传日期:2022-02-22
资源大小:24k
文件大小:1k
源码类别:
屏幕保护
开发平台:
Visual C++
- // ssbase.cpp : Defines the initialization routines for the DLL.
- //
- #include "stdafx.h"
- #include <afxdllx.h>
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- static AFX_EXTENSION_MODULE SsbaseDLL = { NULL, NULL };
- extern "C" int APIENTRY
- DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
- {
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- TRACE0("SSBASE.DLL Initializing!n");
- // Extension DLL one-time initialization
- AfxInitExtensionModule(SsbaseDLL, hInstance);
- // Insert this DLL into the resource chain
- new CDynLinkLibrary(SsbaseDLL);
- }
- else if (dwReason == DLL_PROCESS_DETACH)
- {
- TRACE0("SSBASE.DLL Terminating!n");
- }
- return 1; // ok
- }