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.

81 lines
1.5 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1987-1990 **/
  4. /********************************************************************/
  5. /*
  6. * FILE STATUS:
  7. * 12/28/90 created
  8. * 1/12/91 Split from Logon App, reduced to just Shell Test APP
  9. */
  10. #ifdef CODESPEC
  11. /*START CODESPEC*/
  12. /***********
  13. APPHACKS.CXX
  14. ***********/
  15. /****************************************************************************
  16. MODULE: AppHacks.cxx
  17. PURPOSE: Hack nonsense added to correct linkage problems etc.
  18. FUNCTIONS:
  19. COMMENTS:
  20. ****************************************************************************/
  21. /***************
  22. end APPHACKS.CXX
  23. ***************/
  24. /*END CODESPEC*/
  25. #endif // CODESPEC
  26. #include "apptest.hxx"
  27. #undef brkpt
  28. extern "C" {
  29. void brkpt(void);
  30. void SetNetError(WORD);
  31. }
  32. /* internal procedure declarations */
  33. /* Junk added for linkage problems */
  34. extern "C" {
  35. extern DWORD FAR PASCAL GlobalDosAlloc (DWORD);
  36. DWORD (FAR PASCAL *lpfnGlbDosAlloc)(DWORD) = GlobalDosAlloc;
  37. }
  38. void SetNetError(WORD w)
  39. {
  40. (void) w;
  41. }
  42. /* procedures */
  43. /*
  44. * The following dummy ininlsf replaces the real one in the Windows
  45. * C-runtime. This prevents the real one from trying to call
  46. * DOSGETCOLLATE and crashing the system.
  47. */
  48. // void ininlsf()
  49. // {
  50. // return;
  51. // }
  52. /*
  53. * The following brkpt() hack makes it unnecessary to link DOSNET.
  54. */
  55. void brkpt(void)
  56. {
  57. }