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.

48 lines
992 B

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. Excluded.cpp
  5. Abstract:
  6. This DLL is being excluded from the applied shim to GetCommandLine() API.
  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. Log.InitLogfileInfo();
  22. LPTSTR szTestStr = GetCommandLine();
  23. Log.LogResults(TestResults(szTestStr),TEXT("Calling GetCommandLine from DLL_PROCESS_ATTACH in implicitly linked dll (SMVSDLL.DLL)."));
  24. }
  25. return TRUE;
  26. }
  27. EXPORT BOOL WINAPI SDLLTestGetCommandLine()
  28. {
  29. CLog Log;
  30. LPTSTR szTestStr = GetCommandLine();
  31. Log.LogResults(TestResults(szTestStr),TEXT("Calling GetCommandLine from an exported function in implicitly linked dll (SMVSDLL.DLL)."));
  32. return TRUE;
  33. }