📄 mydll.cpp
字号:
//////////////////////////////////////////////////////////////////////////////
//
// Module: mydll.dll
// File: mydll.cpp
// Author: Galen C. Hunt
//
// Copyright 1998-1999, Microsoft Corporation
// http://www.research.microsoft.com/sn/detours
//
#include <stdio.h>
#include <windows.h>
//////////////////////////////////////////////////////////////////// DLL Stuff
//
__declspec(dllexport) VOID WINAPI MydllFunction(VOID)
{
return;
}
__declspec(dllexport) ULONG WINAPI
DllMain(HINSTANCE hInstance, DWORD dwReason, PVOID lpReserved)
{
switch (dwReason) {
case DLL_PROCESS_ATTACH:
OutputDebugString("+++ Entering MyDll!\n");
break;
case DLL_PROCESS_DETACH:
OutputDebugString("+++ Leaving MyDll!\n");
break;
}
return TRUE;
}
///////////////////////////////////////////////////////////////// End of File.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -