\hypertarget{Source_2DLLMain_8cpp}{\section{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-D\-L\-L\-Main.cpp \-File \-Reference}
\label{Source_2DLLMain_8cpp}\index{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-D\-L\-L\-Main.\-cpp@{trunk/bwapi/\-B\-W\-A\-P\-I/\-Source/\-D\-L\-L\-Main.\-cpp}}
}
{\ttfamily \#include $<$windows.\-h$>$}\*
{\ttfamily \#include $<$stdio.\-h$>$}\*
{\ttfamily \#include $<$\-Util/\-Gnu.\-h$>$}\*
{\ttfamily \#include $<$\-Util/\-Foreach.\-h$>$}\*
{\ttfamily \#include $<$\-B\-W\-A\-P\-I.\-h$>$}\*
{\ttfamily \#include \char`\"{}../../svnrev.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-B\-W/\-Offsets.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-B\-W\-A\-P\-I/\-Game\-Impl.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-D\-L\-L\-Main.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Exception\-Filter.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Detours.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Code\-Patch.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-Config.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-W\-Mode.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}../../\-Debug.\-h\char`\"{}}\*
\-Include dependency graph for \-D\-L\-L\-Main.\-cpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Source_2DLLMain_8cpp__incl}
\end{center}
\end{figure}
\-This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=276pt]{Source_2DLLMain_8cpp__dep__incl}
\end{center}
\end{figure}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{Source_2DLLMain_8cpp_ac7bef5d85e3dcd73eef56ad39ffc84a9}{\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \-\_\-\-\_\-fastcall \hyperlink{Source_2DLLMain_8cpp_ace5d5e51fef5fa548b80985eb4e5ac5f}{\-Queue\-Game\-Command} (void $\ast$p\-Buffer, \hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} dw\-Length)
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{Source_2DLLMain_8cpp_af11a09752aad90b7535bbd4ac645e808}{get\-File\-Type} (const char $\ast$\hyperlink{Detours_8h_acdbd01721a762455310282844bc72187}{sz\-File\-Name})
\item 
void \hyperlink{Source_2DLLMain_8cpp_a72ed8daffddba440a08774c1bd737b79}{\-B\-W\-A\-P\-I\-Error} (const char $\ast$format,...)
\item 
void \hyperlink{Source_2DLLMain_8cpp_aa4776f4f4970674b948e399bbeac255e}{\-B\-W\-A\-P\-I\-Error} (\hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} dw\-Err\-Code, const char $\ast$format,...)
\item 
void \hyperlink{Source_2DLLMain_8cpp_afa29e7b48c8e26bbcc6c8f00ed7ff66e}{\-Check\-Version} ()
\item 
\hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} \-W\-I\-N\-A\-P\-I \hyperlink{Source_2DLLMain_8cpp_a3e4fa06788a9e689f13af43ec266b111}{\-Persistent\-Patch} (\-L\-P\-V\-O\-I\-D)
\item 
\hyperlink{Types_8h_a3e5b8192e7d9ffaf3542f1210aec18dd}{\-B\-O\-O\-L} \-A\-P\-I\-E\-N\-T\-R\-Y \hyperlink{Source_2DLLMain_8cpp_a402eee2e750bc628efadb99d660a5564}{\-Dll\-Main} (\-H\-M\-O\-D\-U\-L\-E, \hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} \hyperlink{MPQDraftInjector_2source_2DLLMain_8cpp_a206f15170b0eb49d3940dbd3103bc2d2}{ul\-\_\-reason\-\_\-for\-\_\-call}, \-L\-P\-V\-O\-I\-D)
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{Source_2DLLMain_8cpp_ac7bef5d85e3dcd73eef56ad39ffc84a9}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N@{\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}}
\index{\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N@{\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}}}\label{Source_2DLLMain_8cpp_ac7bef5d85e3dcd73eef56ad39ffc84a9}


\subsection{\-Function \-Documentation}
\hypertarget{Source_2DLLMain_8cpp_a72ed8daffddba440a08774c1bd737b79}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-B\-W\-A\-P\-I\-Error@{\-B\-W\-A\-P\-I\-Error}}
\index{\-B\-W\-A\-P\-I\-Error@{\-B\-W\-A\-P\-I\-Error}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-B\-W\-A\-P\-I\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-B\-W\-A\-P\-I\-Error} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{format, }
\item[{}]{...}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_a72ed8daffddba440a08774c1bd737b79}


\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Source_2DLLMain_8cpp_a72ed8daffddba440a08774c1bd737b79_icgraph}
\end{center}
\end{figure}


\hypertarget{Source_2DLLMain_8cpp_aa4776f4f4970674b948e399bbeac255e}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-B\-W\-A\-P\-I\-Error@{\-B\-W\-A\-P\-I\-Error}}
\index{\-B\-W\-A\-P\-I\-Error@{\-B\-W\-A\-P\-I\-Error}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-B\-W\-A\-P\-I\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-B\-W\-A\-P\-I\-Error} (
\begin{DoxyParamCaption}
\item[{{\bf \-D\-W\-O\-R\-D}}]{dw\-Err\-Code, }
\item[{const char $\ast$}]{format, }
\item[{}]{...}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_aa4776f4f4970674b948e399bbeac255e}
\hypertarget{Source_2DLLMain_8cpp_afa29e7b48c8e26bbcc6c8f00ed7ff66e}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-Check\-Version@{\-Check\-Version}}
\index{\-Check\-Version@{\-Check\-Version}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-Check\-Version}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Check\-Version} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_afa29e7b48c8e26bbcc6c8f00ed7ff66e}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=326pt]{Source_2DLLMain_8cpp_afa29e7b48c8e26bbcc6c8f00ed7ff66e_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=244pt]{Source_2DLLMain_8cpp_afa29e7b48c8e26bbcc6c8f00ed7ff66e_icgraph}
\end{center}
\end{figure}


\hypertarget{Source_2DLLMain_8cpp_a402eee2e750bc628efadb99d660a5564}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-Dll\-Main@{\-Dll\-Main}}
\index{\-Dll\-Main@{\-Dll\-Main}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-Dll\-Main}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-O\-O\-L} \-A\-P\-I\-E\-N\-T\-R\-Y {\bf \-Dll\-Main} (
\begin{DoxyParamCaption}
\item[{\-H\-M\-O\-D\-U\-L\-E}]{, }
\item[{{\bf \-D\-W\-O\-R\-D}}]{ul\-\_\-reason\-\_\-for\-\_\-call, }
\item[{\-L\-P\-V\-O\-I\-D}]{}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_a402eee2e750bc628efadb99d660a5564}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{Source_2DLLMain_8cpp_a402eee2e750bc628efadb99d660a5564_cgraph}
\end{center}
\end{figure}


\hypertarget{Source_2DLLMain_8cpp_af11a09752aad90b7535bbd4ac645e808}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!get\-File\-Type@{get\-File\-Type}}
\index{get\-File\-Type@{get\-File\-Type}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{get\-File\-Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf get\-File\-Type} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sz\-File\-Name}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_af11a09752aad90b7535bbd4ac645e808}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=282pt]{Source_2DLLMain_8cpp_af11a09752aad90b7535bbd4ac645e808_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Source_2DLLMain_8cpp_af11a09752aad90b7535bbd4ac645e808_icgraph}
\end{center}
\end{figure}


\hypertarget{Source_2DLLMain_8cpp_a3e4fa06788a9e689f13af43ec266b111}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-Persistent\-Patch@{\-Persistent\-Patch}}
\index{\-Persistent\-Patch@{\-Persistent\-Patch}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-Persistent\-Patch}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-D\-W\-O\-R\-D} \-W\-I\-N\-A\-P\-I {\bf \-Persistent\-Patch} (
\begin{DoxyParamCaption}
\item[{\-L\-P\-V\-O\-I\-D}]{}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_a3e4fa06788a9e689f13af43ec266b111}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Source_2DLLMain_8cpp_a3e4fa06788a9e689f13af43ec266b111_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=252pt]{Source_2DLLMain_8cpp_a3e4fa06788a9e689f13af43ec266b111_icgraph}
\end{center}
\end{figure}


\hypertarget{Source_2DLLMain_8cpp_ace5d5e51fef5fa548b80985eb4e5ac5f}{\index{\-Source/\-D\-L\-L\-Main.\-cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}!\-Queue\-Game\-Command@{\-Queue\-Game\-Command}}
\index{\-Queue\-Game\-Command@{\-Queue\-Game\-Command}!Source/DLLMain.cpp@{\-Source/\-D\-L\-L\-Main.\-cpp}}
\subsubsection[{\-Queue\-Game\-Command}]{\setlength{\rightskip}{0pt plus 5cm}void \-\_\-\-\_\-fastcall {\bf \-Queue\-Game\-Command} (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{p\-Buffer, }
\item[{{\bf \-D\-W\-O\-R\-D}}]{dw\-Length}
\end{DoxyParamCaption}
)}}\label{Source_2DLLMain_8cpp_ace5d5e51fef5fa548b80985eb4e5ac5f}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Source_2DLLMain_8cpp_ace5d5e51fef5fa548b80985eb4e5ac5f_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{Source_2DLLMain_8cpp_ace5d5e51fef5fa548b80985eb4e5ac5f_icgraph}
\end{center}
\end{figure}


