Windows NT 4.0 source code leak
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.

49 lines
1.5 KiB

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