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.

61 lines
1.9 KiB

  1. /***
  2. *dllargv.c - Dummy _setargv() routine for use with C Run-Time as a DLL (CRTDLL)
  3. *
  4. * Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This object goes into CRTDLL.LIB, which is linked with user programs
  8. * to use CRTDLL.DLL for C run-time library functions. If the user
  9. * program links explicitly with SETARGV.OBJ, this object will not be
  10. * linked in, and the _setargv() that does get called with set the flag
  11. * that will enable wildcard expansion. If SETARGV.OBJ is not linked
  12. * into the EXE, this object will get called by the CRT start-up stub
  13. * and the flag to enable wildcard expansion will not be set.
  14. *
  15. *Revision History:
  16. * 10-19-92 SKS Initial version
  17. * 04-06-93 SKS Replace _CRTAPI* with _cdecl
  18. * 11-24-93 CFW Wide argv.
  19. * 03-27-01 PML Now return an int (vs7#231220)
  20. *
  21. *******************************************************************************/
  22. #ifndef _POSIX_
  23. #ifdef CRTDLL
  24. #include <cruntime.h>
  25. #include <internal.h>
  26. /***
  27. *_setargv - dummy version for CRTDLL.DLL model only
  28. *
  29. *Purpose:
  30. * This routine gets called by the C Run-Time start-up code in CRTEXE.C
  31. * which gets linked into an EXE file linked with CRTDLL.LIB. It does
  32. * nothing, but if the user links the EXE with SETARGV.OBJ, this routine
  33. * will not get called but instead __setargv() will be called. (In the
  34. * CRTDLL model, it will set the variable that is passed to _GetMainArgs
  35. * and enable wildcard expansion in the command line arguments.)
  36. *
  37. *Entry:
  38. *
  39. *Exit:
  40. * Always return 0 (full version in DLL code returns -1 on error)
  41. *
  42. *Exceptions:
  43. *
  44. *******************************************************************************/
  45. #ifdef WPRFLAG
  46. int __cdecl _wsetargv ( void )
  47. #else
  48. int __cdecl _setargv ( void )
  49. #endif
  50. {
  51. return 0;
  52. }
  53. #endif /* CRTDLL */
  54. #endif /* !_POSIX_ */