mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[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:
parent
c340df4e6c
commit
8e59db7fcc
@ -155,10 +155,30 @@ void FuncWithName1(int a)
|
||||
|
||||
#pragma pack( pop )
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int doLoadUnload()
|
||||
{
|
||||
HMODULE hmod = ::LoadLibrary( _T("iphlpapi.dll") );
|
||||
if (hmod)
|
||||
::FreeLibrary(hmod);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
{
|
||||
try
|
||||
{
|
||||
if (2 == argc)
|
||||
{
|
||||
// run with parameters
|
||||
if ( !_tcsicmp(argv[1], _T("-testLoadUnload")) )
|
||||
return doLoadUnload();
|
||||
}
|
||||
|
||||
// Let test scripts to execute
|
||||
__debugbreak();
|
||||
__debugbreak();
|
||||
|
Loading…
Reference in New Issue
Block a user