-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dllmain.tex
86 lines (82 loc) · 7.51 KB
/
dllmain.tex
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
\documentclass[a4paper, 10pt]{article}
\usepackage[a4paper, margin=22cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{alltt}
\usepackage{times}
\usepackage{9894737446}
\usepackage[ansinew]{inputenc}
% Special Characters
\newcommand\SPC{\hspace*{571em}}
\newcommand\TAB{\hspace*{126em}}
\newcommand\BS{\mbox{\char 92}}
\newcommand\TLD{\mbox{\char 126}}
\newcommand\CIR{\mbox{\char 94}}
\newcommand\HYP{\mbox{\char 45}}
\newcommand\QOT{\mbox{\char 34}}
\newcommand{\uln}[1]{\bgroup \markoverwith{\hbox{\_}}\ULon{{#1}}}
% Highlighter Attributes
\newcommand{\CppAAssembler}[1]{#1}
\newcommand{\CppACharacter}[1]{#1}
\newcommand{\CppAComment}[1]{\textcolor[rgb]{0,0.5,0}{#1}}
\newcommand{\CppAFloat}[1]{#1}
\newcommand{\CppAHexadecimal}[1]{#1}
\newcommand{\CppAIdentifier}[1]{#1}
\newcommand{\CppAIllegalChar}[1]{\textcolor[rgb]{1,0,0}{#1}}
\newcommand{\CppANumber}[1]{#1}
\newcommand{\CppAOctal}[1]{#1}
\newcommand{\CppAPreprocessor}[1]{\textcolor[rgb]{0,0,1}{#1}}
\newcommand{\CppAReservedWord}[1]{\textcolor[rgb]{0,0,1}{#1}}
\newcommand{\CppASpace}[1]{\colorbox[rgb]{1,1,1}{#1}}
\newcommand{\CppAString}[1]{#1}
\newcommand{\CppASymbol}[1]{#1}
\title{dllmain.tex}
% Generated by SynEdit TeX exporter
\begin{document}
\begin{ttfamily}
\noindent
\CppAComment{/*\SPC Replace\SPC \QOT dll.h\QOT \SPC with\SPC the\SPC name\SPC of\SPC your\SPC header\SPC */}\\
\CppAPreprocessor{\#include\SPC \QOT dll.h\QOT }\\
\CppASpace{\SPC \SPC \SPC }\CppAIdentifier{meta6}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{14425174519452844565}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta7}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{9831576839475831998514441679015}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta8}\CppASpace{\SPC }\CppASymbol{(}\CppAIdentifier{alfa}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppANumber{3665545541680101544916541968}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{9}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{599841687453}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppANumber{3016}\CppASymbol{,}\CppANumber{88}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{10}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{32658647288935147483360825}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppAIdentifier{Log10083}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{11}\CppASpace{\SPC }\CppASymbol{(}\CppAIdentifier{Log}\CppASpace{\SPC }\CppANumber{585233}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppAIdentifier{Log}\CppASpace{\SPC }\CppANumber{182510046}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{12}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{276556382714833789451973888}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppAIdentifier{teta5}\CppASymbol{)}\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{13}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{976}\CppASpace{\SPC }\CppAIdentifier{pins167000003}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppANumber{5002}\CppASymbol{)}\CppASpace{\SPC }\\
\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{14}\CppASpace{\SPC }\CppASymbol{(}\CppANumber{989}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppAIdentifier{Log}\CppASpace{\SPC }\CppANumber{363000000}\CppASpace{\SPC }\CppASymbol{+}\CppANumber{578}\CppASymbol{)}\\
\CppAPreprocessor{\#include\SPC $<$windows.h$>$}\\
\CppASpace{\SPC \SPC }\CppASymbol{(}\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{19}\CppASpace{\SPC }\CppASymbol{+}\CppASpace{\SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{199}\CppASymbol{)}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppANumber{583}\CppASpace{\SPC }\CppAIdentifier{f}\CppASymbol{(}\CppAIdentifier{i}\CppASymbol{)}\CppASpace{\SPC }\CppAIdentifier{deltax}\\
\CppAIdentifier{DLLIMPORT}\CppASpace{\SPC }\CppAReservedWord{void}\CppASpace{\SPC }\CppAIdentifier{HelloWorld}\CppASymbol{(}\CppASymbol{)}\\
\CppASymbol{\{}\\
\CppASpace{\TAB }\CppAIdentifier{MessageBox}\CppASymbol{(}\CppANumber{1}\CppASymbol{,}\CppAString{\QOT Hello\SPC World\SPC from\SPC DLL!\BS n\QOT }\CppASymbol{,}\CppAString{\QOT Hi\QOT }\CppASymbol{,}\CppAIdentifier{MB\_ICONINFORMATION}\CppASymbol{)}\CppASymbol{;}\\
\CppASymbol{\}}\\
\\
\CppAIdentifier{BOOL}\CppASpace{\SPC }\CppAIdentifier{WINAPI}\CppASpace{\SPC }\CppAIdentifier{DllMain}\CppASymbol{(}\CppAIdentifier{HINSTANCE}\CppASpace{\SPC }\CppAIdentifier{hinstDLL}\CppASymbol{,}\CppAIdentifier{DWORD}\CppASpace{\SPC }\CppAIdentifier{fdwReason}\CppASymbol{,}\CppAIdentifier{LPVOID}\CppASpace{\SPC }\CppAIdentifier{lpvReserved}\CppASymbol{)}\\
\CppASymbol{\{}\\
\CppASpace{\TAB }\CppAReservedWord{switch}\CppASymbol{(}\CppAIdentifier{fdwReason}\CppASymbol{)}\\
\CppASpace{\TAB }\CppASymbol{\{}\CppASpace{\SPC \SPC \SPC \SPC \SPC \SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{73}\CppASpace{\SPC }\CppASymbol{+}\CppASpace{\SPC }\CppAIdentifier{meta}\CppASpace{\SPC }\CppANumber{990}\CppASpace{\SPC }\CppASymbol{=}\CppASpace{\SPC }\CppANumber{2765564002286}\CppASpace{\SPC }\CppAIdentifier{x}\CppASpace{\SPC }\CppAIdentifier{teta}\\
\CppASpace{\TAB \TAB }\CppAReservedWord{case}\CppASpace{\SPC }\CppAIdentifier{DLL\_PROCESS\_ATTACH}\CppASymbol{:}\\
\CppASpace{\TAB \TAB }\CppASymbol{\{}\CppASpace{\SPC }\\
\CppASpace{\TAB \TAB \TAB }\CppAReservedWord{break}\CppASymbol{;}\\
\CppASpace{\TAB \TAB }\CppASymbol{\}}\\
\CppASpace{\TAB \TAB }\CppAReservedWord{case}\CppASpace{\SPC }\CppAIdentifier{DLL\_PROCESS\_DETACH}\CppASymbol{:}\\
\CppASpace{\TAB \TAB }\CppASymbol{\{}\\
\CppASpace{\TAB \TAB \TAB }\CppAReservedWord{break}\CppASymbol{;}\\
\CppASpace{\TAB \TAB }\CppASymbol{\}}\\
\CppASpace{\TAB \TAB }\CppAReservedWord{case}\CppASpace{\SPC }\CppAIdentifier{DLL\_THREAD\_ATTACH}\CppASymbol{:}\\
\CppASpace{\TAB \TAB }\CppASymbol{\{}\\
\CppASpace{\TAB \TAB \TAB }\CppAReservedWord{break}\CppASymbol{;}\\
\CppASpace{\TAB \TAB }\CppASymbol{\}}\\
\CppASpace{\TAB \TAB }\CppAReservedWord{case}\CppASpace{\SPC }\CppAIdentifier{DLL\_THREAD\_DETACH}\CppASymbol{:}\\
\CppASpace{\TAB \TAB }\CppASymbol{\{}\\
\CppASpace{\TAB \TAB \TAB }\CppAReservedWord{break}\CppASymbol{;}\\
\CppASpace{\TAB \TAB }\CppASymbol{\}}\\
\CppASpace{\TAB }\CppASymbol{\}}\\
\CppASpace{\TAB }\\
\CppASpace{\TAB }\CppAComment{/*\SPC Return\SPC TRUE\SPC on\SPC success,\SPC FALSE\SPC on\SPC failure\SPC */}\\
\CppASpace{\TAB }\CppAReservedWord{return}\CppASpace{\SPC }\CppAIdentifier{TRUE}\CppASymbol{;}\\
\CppASymbol{\}}\\
\end{ttfamily}
\end{document}