Leaked source code of windows server 2003
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.

31 lines
1.3 KiB

  1. /***
  2. *xncommode.c - set global file commit mode flag to nocommit
  3. *
  4. * Copyright (c) 1990-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Sets the global file commit mode flag to nocommit. This is the default.
  8. *
  9. * This is a special version for the DLL model. This object goes into
  10. * MSVCRT.LIB (and therefore into the client EXE) and not into the
  11. * CRTL in a DLL (MSVCRTXX.DLL). It is identical to ncommode.obj
  12. * except that the latter has a DLL export definition in the DLL model.
  13. *
  14. *Revision History:
  15. * 07-11-90 SBM Module created, based on asm version.
  16. * 04-05-94 GJF Added conditional so this definition doesn't make it
  17. * into the msvcrt*.dll for Win32s.
  18. * 05-16-95 SKS This is a copy of ncommode.obj except for the
  19. * DLL import semantics.
  20. * 06-28-96 GJF Removed DLL_FOR_WIN32S. Also, detab-ed.
  21. *
  22. *******************************************************************************/
  23. #define SPECIAL_CRTEXE /* turn off _CRTIMP for decl. of _commode */
  24. #define _DLL /* also necessary to turn off _CRTIMP */
  25. #include <cruntime.h>
  26. #include <internal.h>
  27. /* set default file commit mode to nocommit */
  28. int _commode = 0;