IPX95.H 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /***************************************************************************
  15. ** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S **
  16. ***************************************************************************
  17. * *
  18. * Project Name : Command & Conquer *
  19. * *
  20. * File Name : IPX95PP *
  21. * *
  22. * Programmer : Steve Tall *
  23. * *
  24. * Start Date : January 22nd, 1996 *
  25. * *
  26. * Last Update : January 22nd, 1996 [ST] *
  27. * *
  28. *-------------------------------------------------------------------------*
  29. * *
  30. * *
  31. * *
  32. *-------------------------------------------------------------------------*
  33. * Functions: *
  34. * *
  35. * *
  36. * *
  37. * *
  38. * *
  39. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  40. #if (0)
  41. /*
  42. ** Types for function pointers
  43. */
  44. typedef BOOL __stdcall (*IPXInitialiseType) (void);
  45. typedef BOOL __stdcall (*IPXGetOutstandingBuffer95Type) (unsigned char*);
  46. typedef void __stdcall (*IPXShutDown95Type) (void);
  47. typedef int __stdcall (*IPXSendPacket95Type) (unsigned char *, unsigned char *, int, unsigned char*, unsigned char*);
  48. typedef int __stdcall (*IPXBroadcastPacket95Type) (unsigned char *, int);
  49. typedef BOOL __stdcall (*IPXStartListening95Type) (void);
  50. typedef int __stdcall (*IPXOpenSocket95Type) (int);
  51. typedef void __stdcall (*IPXCloseSocket95Type) (int);
  52. typedef int __stdcall (*IPXGetConnectionNumber95Type) (void);
  53. typedef int __stdcall (*IPXGetLocalTarget95) (unsigned char *, unsigned char*, unsigned short, unsigned char*);
  54. /*
  55. ** Function pointers
  56. */
  57. //extern "C"{
  58. extern IPXInitialiseType IPX_Initialise;
  59. extern IPXGetOutstandingBuffer95Type IPX_Get_Outstanding_Buffer95;
  60. extern IPXShutDown95Type IPX_Shut_Down95;
  61. extern IPXSendPacket95Type IPX_Send_Packet95;
  62. extern IPXBroadcastPacket95Type IPX_Broadcast_Packet95;
  63. extern IPXStartListening95Type IPX_Start_Listening95;
  64. extern IPXOpenSocket95Type IPX_Open_Socket95;
  65. extern IPXCloseSocket95Type IPX_Close_Socket95;
  66. extern IPXGetConnectionNumber95Type IPX_Get_Connection_Number95;
  67. extern IPXGetLocalTarget95 IPX_Get_Local_Target95;
  68. //}
  69. /*
  70. ** Functions
  71. */
  72. bool Load_IPX_Dll (void);
  73. void Unload_IPX_Dll (void);
  74. #endif
  75. #if (1)
  76. extern "C"{
  77. extern BOOL __stdcall IPX_Initialise(void);
  78. extern BOOL __stdcall IPX_Get_Outstanding_Buffer95(unsigned char *buffer);
  79. extern void __stdcall IPX_Shut_Down95(void);
  80. extern int __stdcall IPX_Send_Packet95(unsigned char *, unsigned char *, int, unsigned char*, unsigned char*);
  81. extern int __stdcall IPX_Broadcast_Packet95(unsigned char *, int);
  82. extern BOOL __stdcall IPX_Start_Listening95(void);
  83. extern int __stdcall IPX_Open_Socket95(int socket);
  84. extern void __stdcall IPX_Close_Socket95(int socket);
  85. extern int __stdcall IPX_Get_Connection_Number95(void);
  86. extern int __stdcall IPX_Get_Local_Target95(unsigned char *, unsigned char*, unsigned short, unsigned char*);
  87. }
  88. #endif //(1)
  89. extern bool WindowsNT;