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.

81 lines
1.5 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows 4.0 **/
  3. /** Copyright (C) Microsoft Corp., 1992-1993 **/
  4. /*****************************************************************/
  5. /* INIT.C -- General code for MS/Netware network driver emulator.
  6. *
  7. * History:
  8. * 09/22/93 vlads Created
  9. *
  10. */
  11. #include "netware.h"
  12. #define Reference(x) ((void)(x))
  13. extern BOOL far pascal GetLowRedirInfo(void);
  14. int FAR PASCAL LibMain(
  15. HANDLE hInst,
  16. WORD wDataSeg,
  17. WORD wcbHeapSize,
  18. LPSTR lpstrCmdLine)
  19. {
  20. //
  21. // get shared data segment address. Fail initialization if an error is
  22. // returned
  23. //
  24. if (!GetLowRedirInfo()) {
  25. return 0;
  26. }
  27. //
  28. // return success
  29. //
  30. return 1;
  31. }
  32. /* WEP
  33. * Windows Exit Procedure
  34. */
  35. int FAR PASCAL _loadds WEP(int nParameter)
  36. {
  37. Reference(nParameter);
  38. return 1;
  39. }
  40. WINAPI PNETWAREREQUEST(LPVOID x)
  41. {
  42. return(1);
  43. }
  44. //
  45. // removed because nwcalls makes use of this function; removing it causes
  46. // NWCALLS to use real INT 21
  47. //
  48. //WINAPI DOSREQUESTER(LPVOID x)
  49. //{
  50. // return(1);
  51. //}
  52. UINT WINAPI WNetAddConnection(LPSTR p1, LPSTR p2, LPSTR p3)
  53. {
  54. return(1);
  55. }
  56. UINT WINAPI WNetGetConnection(LPSTR p1, LPSTR p2, UINT FAR *p3)
  57. {
  58. return(1);
  59. }
  60. UINT WINAPI WNetCancelConnection(LPSTR p1, BOOL p2)
  61. {
  62. return(1);
  63. }