[0.1.x] +module [un-]load test code

git-svn-id: https://pykd.svn.codeplex.com/svn@72045 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-12-05 18:48:26 +00:00 committed by Mikhail I. Izmestev
parent c340df4e6c
commit 8e59db7fcc

View File

@ -155,10 +155,30 @@ void FuncWithName1(int a)
#pragma pack( pop ) #pragma pack( pop )
////////////////////////////////////////////////////////////////////////////////
int doLoadUnload()
{
HMODULE hmod = ::LoadLibrary( _T("iphlpapi.dll") );
if (hmod)
::FreeLibrary(hmod);
return 0;
}
////////////////////////////////////////////////////////////////////////////////
int _tmain(int argc, _TCHAR* argv[]) int _tmain(int argc, _TCHAR* argv[])
{ {
try try
{ {
if (2 == argc)
{
// run with parameters
if ( !_tcsicmp(argv[1], _T("-testLoadUnload")) )
return doLoadUnload();
}
// Let test scripts to execute // Let test scripts to execute
__debugbreak(); __debugbreak();
__debugbreak(); __debugbreak();