CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

IPX95.H (5090B)


      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 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 /***************************************************************************
     17  **   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        **
     18  ***************************************************************************
     19  *                                                                         *
     20  *                 Project Name : Command & Conquer                        *
     21  *                                                                         *
     22  *                    File Name : IPX95PP                                  *
     23  *                                                                         *
     24  *                   Programmer : Steve Tall                               *
     25  *                                                                         *
     26  *                   Start Date : January 22nd, 1996                       *
     27  *                                                                         *
     28  *                  Last Update : January 22nd, 1996   [ST]                *
     29  *                                                                         *
     30  *-------------------------------------------------------------------------*
     31  *                                                                         *
     32  *                                                                         *
     33  *                                                                         *
     34  *-------------------------------------------------------------------------*
     35  * Functions:                                                              *
     36  *                                                                         *
     37  *                                                                         *
     38  *                                                                         *
     39  *                                                                         *
     40  *                                                                         *
     41  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
     42 
     43 
     44 #if (0)
     45 
     46 /*
     47 ** Types for function pointers
     48 */
     49 typedef BOOL __stdcall (*IPXInitialiseType) (void);
     50 typedef BOOL __stdcall (*IPXGetOutstandingBuffer95Type) (unsigned char*);
     51 typedef void __stdcall (*IPXShutDown95Type) (void);
     52 typedef int  __stdcall (*IPXSendPacket95Type) (unsigned char *, unsigned char *, int, unsigned char*, unsigned char*);
     53 typedef int  __stdcall (*IPXBroadcastPacket95Type) (unsigned char *, int);
     54 typedef BOOL __stdcall (*IPXStartListening95Type) (void);
     55 typedef int  __stdcall (*IPXOpenSocket95Type) (int);
     56 typedef void __stdcall (*IPXCloseSocket95Type) (int);
     57 typedef int  __stdcall (*IPXGetConnectionNumber95Type) (void);
     58 typedef int  __stdcall (*IPXGetLocalTarget95) (unsigned char *, unsigned char*, unsigned short, unsigned char*);
     59 
     60 
     61 
     62 /*
     63 ** Function pointers
     64 */
     65 //extern "C"{
     66 	extern IPXInitialiseType					IPX_Initialise;
     67 	extern IPXGetOutstandingBuffer95Type  	IPX_Get_Outstanding_Buffer95;
     68 	extern IPXShutDown95Type              	IPX_Shut_Down95;
     69 	extern IPXSendPacket95Type            	IPX_Send_Packet95;
     70 	extern IPXBroadcastPacket95Type       	IPX_Broadcast_Packet95;
     71 	extern IPXStartListening95Type        	IPX_Start_Listening95;
     72 	extern IPXOpenSocket95Type            	IPX_Open_Socket95;
     73 	extern IPXCloseSocket95Type           	IPX_Close_Socket95;
     74 	extern IPXGetConnectionNumber95Type   	IPX_Get_Connection_Number95;
     75 	extern IPXGetLocalTarget95            	IPX_Get_Local_Target95;
     76 //}
     77 
     78 /*
     79 ** Functions
     80 */
     81 bool Load_IPX_Dll (void);
     82 void Unload_IPX_Dll (void);
     83 #endif
     84 
     85 #if (1)
     86 extern "C"{
     87 	extern BOOL __stdcall IPX_Initialise(void);
     88 	extern BOOL __stdcall IPX_Get_Outstanding_Buffer95(unsigned char *buffer);
     89 	extern void __stdcall IPX_Shut_Down95(void);
     90 	extern int  __stdcall IPX_Send_Packet95(unsigned char *, unsigned char *, int, unsigned char*, unsigned char*);
     91 	extern int  __stdcall IPX_Broadcast_Packet95(unsigned char *, int);
     92 	extern BOOL __stdcall IPX_Start_Listening95(void);
     93 	extern int  __stdcall IPX_Open_Socket95(int socket);
     94 	extern void __stdcall IPX_Close_Socket95(int socket);
     95 	extern int  __stdcall IPX_Get_Connection_Number95(void);
     96 	extern int  __stdcall IPX_Get_Local_Target95(unsigned char *, unsigned char*, unsigned short, unsigned char*);
     97 }
     98 #endif	//(1)
     99 
    100 extern bool WindowsNT;
    101