Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
924 B

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. Excluded.cpp
  5. Abstract:
  6. This DLL is explicitly linked to the SMVEXE.
  7. Author:
  8. Diaa Fathalla (DiaaF) 27-Nov-2000
  9. Revision History:
  10. --*/
  11. #include "stdafx.h"
  12. #include "..\Common\Common.h"
  13. BOOL APIENTRY DllMain( HANDLE hModule,
  14. DWORD ul_reason_for_call,
  15. LPVOID lpReserved
  16. )
  17. {
  18. if (ul_reason_for_call == DLL_PROCESS_ATTACH)
  19. {
  20. CLog Log;
  21. LPTSTR szTestStr = GetCommandLine();
  22. Log.LogResults(TestResults(szTestStr),"Calling GetCommandLine from DLL_PROCESS_ATTACH in explicitly linked dll (SMVDDLL.DLL).");
  23. }
  24. return TRUE;
  25. }
  26. EXPORT BOOL WINAPI DDLLTestGetCommandLine()
  27. {
  28. CLog Log;
  29. LPTSTR szTestStr = GetCommandLine();
  30. Log.LogResults(TestResults(szTestStr),"Calling GetCommandLine from an exported function in explicitly linked dll (SMVDDLL.DLL).");
  31. return TRUE;
  32. }