C++???dll???????????
???????????? ???????[ 2014/3/24 10:57:11 ] ????????DLL ??? ????
??????????DLL?????
// mydll.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
DWORD WINAPI MyThreadProc1( LPVOID pParam );
DWORD WINAPI MyThreadProc2( LPVOID pParam );
BOOL APIENTRY DllMain( HANDLE hModule??
DWORD ul_reason_for_call??
LPVOID lpReserved
)
{
switch ( ul_reason_for_call )
{
case DLL_PROCESS_ATTACH:
{
MessageBox( NULL?? "DLL????????????"?? "???"?? MB_ICONINFORMATION );
DWORD dwThreadId;
HANDLE myThread1 = CreateThread(NULL?? 0?? (LPTHREAD_START_ROUTINE)MyThreadProc1?? NULL?? 0?? &dwThreadId);
HANDLE myThread2 = CreateThread(NULL?? 0?? (LPTHREAD_START_ROUTINE)MyThreadProc2?? NULL?? 0?? &dwThreadId);
break;
}
case DLL_PROCESS_DETACH:
{
MessageBox( NULL?? "DLL?????????ж???"?? "???"?? MB_ICONINFORMATION );
break;
}
}
return TRUE;
}
DWORD WINAPI MyThreadProc1( LPVOID pParam )
{
MessageBox( NULL?? "DLL????????1??"?? "???"?? MB_ICONINFORMATION );
return 0;
}
DWORD WINAPI MyThreadProc2( LPVOID pParam )
{
MessageBox( NULL?? "DLL????????2??"?? "???"?? MB_ICONINFORMATION );
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11