-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdllmain.cpp
More file actions
43 lines (38 loc) · 916 Bytes
/
dllmain.cpp
File metadata and controls
43 lines (38 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "pch.h"
#include "qmc.hpp"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
void __declspec(dllexport) qmcEncS(const char* fn, const char* type)
{
QmcEncode e(fn, type);
e.Encode();
}
void __declspec(dllexport) qmcDecS(const char* fn)
{
QmcDecode e(fn);
e.Decode();
}
void __declspec(dllexport) qmcEncD(const char* fn, const char* pswFn, const char* type)
{
QmcEncode e(fn, pswFn, type);
e.Encode();
}
void __declspec(dllexport) qmcDecD(const char* fn, const char* pswFn)
{
QmcDecode e(fn, pswFn);
e.Decode();
}