#include #include #include #include #include #include int TestLibraryFreeLibrary(int argc, char* argv[]) { HINSTANCE library; library = LoadLibrary(_T("kernel32.dll")); if (!library) { printf("LoadLibrary failure\n"); return -1; } if (!FreeLibrary(library)) { printf("FreeLibrary failure\n"); return -1; } return 0; }