// Generated .IDL file (by the OLE/COM Object Viewer) // // typelib filename: Wolapi.dll [ uuid(925CDED1-71B9-11D1-B1C5-006097176556), version(1.3), helpstring("WOLAPI 1.003 Type Library"), custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 83951780), custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 919123959) ] library WOLAPILib { // TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046} importlib("stdole2.tlb"); // Forward declare all types defined in this typelib interface IRTPatcher; interface IRTPatcherEvent; interface IChat; interface IChatEvent; interface IDownload; interface IDownloadEvent; interface INetUtil; interface INetUtilEvent; interface IChat2; interface IChat2Event; [ uuid(925CDEDF-71B9-11D1-B1C5-006097176556), helpstring("RTPatcher Class") ] coclass RTPatcher { [default] interface IRTPatcher; [default, source] interface IRTPatcherEvent; }; [ odl, uuid(925CDEDE-71B9-11D1-B1C5-006097176556), helpstring("IRTPatcher Interface") ] interface IRTPatcher : IUnknown { [helpstring("method ApplyPatch")] HRESULT _stdcall ApplyPatch( [in] LPSTR destpath, [in] LPSTR filename); [helpstring("method PumpMessages")] HRESULT _stdcall PumpMessages(); }; [ odl, uuid(925CDEE3-71B9-11D1-B1C5-006097176556), helpstring("IRTPatcherEvent Interface") ] interface IRTPatcherEvent : IUnknown { [helpstring("method FileProgress")] HRESULT _stdcall OnProgress( [in] LPSTR filename, [in] int progress); [helpstring("method OnTermination")] HRESULT _stdcall OnTermination([in] long success); }; [ uuid(4DD3BAF5-7579-11D1-B1C6-006097176556), helpstring("Chat Class") ] coclass Chat { [default] interface IChat; [default, source] interface IChatEvent; }; [ odl, uuid(4DD3BAF4-7579-11D1-B1C6-006097176556), helpstring("IChat Interface") ] interface IChat : IUnknown { [helpstring("method PumpMessages")] HRESULT _stdcall PumpMessages(); [helpstring("method RequestServerList")] HRESULT _stdcall RequestServerList( [in] unsigned long SKU, [in] unsigned long current_version, [in] LPSTR loginname, [in] LPSTR password, [in] int timeout); [helpstring("method RequestConnection")] HRESULT _stdcall RequestConnection( [in] Server* Server, [in] int timeout, int domangle); [helpstring("method RequestChannelList")] HRESULT _stdcall RequestChannelList( [in] int channelType, [in] int autoping); [helpstring("method RequestChannelCreate")] HRESULT _stdcall RequestChannelCreate([in] Channel* Channel); [helpstring("method RequestChannelJoin")] HRESULT _stdcall RequestChannelJoin([in] Channel* Channel); [helpstring("method RequestChannelLeave")] HRESULT _stdcall RequestChannelLeave(); [helpstring("method RequestUserList")] HRESULT _stdcall RequestUserList(); [helpstring("method RequestPublicMessage")] HRESULT _stdcall RequestPublicMessage([in] LPSTR message); [helpstring("method RequestPrivateMessage")] HRESULT _stdcall RequestPrivateMessage( [in] User* users, [in] LPSTR message); [helpstring("method RequestLogout")] HRESULT _stdcall RequestLogout(); [helpstring("method RequestPrivateGameOptions")] HRESULT _stdcall RequestPrivateGameOptions( [in] User* users, [in] LPSTR options); [helpstring("method RequestPublicGameOptions")] HRESULT _stdcall RequestPublicGameOptions([in] LPSTR options); [helpstring("method RequestPublicAction")] HRESULT _stdcall RequestPublicAction([in] LPSTR action); [helpstring("method RequestPrivateAction")] HRESULT _stdcall RequestPrivateAction( [in] User* users, [in] LPSTR action); [helpstring("method RequestGameStart")] HRESULT _stdcall RequestGameStart([in] User* users); [helpstring("method RequestChannelTopic")] HRESULT _stdcall RequestChannelTopic([in] LPSTR topic); [helpstring("method GetVersion")] HRESULT _stdcall GetVersion([in] unsigned long* version); [helpstring("method RequestUserKick")] HRESULT _stdcall RequestUserKick([in] User* User); [helpstring("method RequestUserIP")] HRESULT _stdcall RequestUserIP([in] User* User); [helpstring("method GetGametypeInfo")] HRESULT _stdcall GetGametypeInfo( unsigned int gtype, int icon_size, unsigned char** bitmap, int* bmp_bytes, LPSTR* name, LPSTR* URL); [helpstring("method RequestFind")] HRESULT _stdcall RequestFind(User* User); [helpstring("method RequestPage")] HRESULT _stdcall RequestPage( User* User, LPSTR message); [helpstring("method SetFindPage")] HRESULT _stdcall SetFindPage( int findOn, int pageOn); [helpstring("method SetSquelch")] HRESULT _stdcall SetSquelch( User* User, int squelch); [helpstring("method GetSquelch")] HRESULT _stdcall GetSquelch(User* User); [helpstring("method SetChannelFilter")] HRESULT _stdcall SetChannelFilter(int channelType); [helpstring("method RequestGameEnd")] HRESULT _stdcall RequestGameEnd(); [helpstring("method SetLangFilter")] HRESULT _stdcall SetLangFilter(int onoff); [helpstring("method RequestChannelBan")] HRESULT _stdcall RequestChannelBan( LPSTR name, int ban); [helpstring("method GetGametypeList")] HRESULT _stdcall GetGametypeList(LPSTR* list); [helpstring("method GetHelpURL")] HRESULT _stdcall GetHelpURL(LPSTR* URL); [helpstring("method SetProductSKU")] HRESULT _stdcall SetProductSKU(unsigned long SKU); [helpstring("method GetNick")] HRESULT _stdcall GetNick( int num, LPSTR* nick, LPSTR* pass); [helpstring("method SetNick")] HRESULT _stdcall SetNick( int num, LPSTR nick, LPSTR pass, int domangle); [helpstring("method GetLobbyCount")] HRESULT _stdcall GetLobbyCount(int* count); [helpstring("method RequestRawMsg")] HRESULT _stdcall RequestRawMessage(LPSTR ircmsg); [helpstring("method GetAttributeValue")] HRESULT _stdcall GetAttributeValue( LPSTR attrib, LPSTR* value); [helpstring("method SetAttributeValue")] HRESULT _stdcall SetAttributeValue( LPSTR attrib, LPSTR value); [helpstring("method SetChannelExInfo")] HRESULT _stdcall SetChannelExInfo(LPSTR info); [helpstring("method StopAutoping")] HRESULT _stdcall StopAutoping(); [helpstring("method RequestSquadInfo")] HRESULT _stdcall RequestSquadInfo(unsigned long id); }; typedef struct tagServer { int gametype; int chattype; int timezone; single longitude; single lattitude; Server* next; char name[71]; char connlabel[5]; char conndata[128]; char login[10]; char password[10]; } Server; typedef struct tagChannel { int type; unsigned int minUsers; unsigned int maxUsers; unsigned int currentUsers; unsigned int official; unsigned int tournament; unsigned int ingame; unsigned int flags; unsigned long reserved; unsigned long ipaddr; int latency; int hidden; Channel* next; char name[17]; char topic[81]; char location[65]; char key[9]; char exInfo[41]; } Channel; typedef struct tagUser { unsigned int flags; int group; unsigned long reserved; unsigned long reserved2; unsigned long reserved3; unsigned long squadID; unsigned long ipaddr; unsigned long squad_icon; User* next; char name[10]; char squadname[41]; } User; [ odl, uuid(4DD3BAF6-7579-11D1-B1C6-006097176556), helpstring("IChatEvent Interface") ] interface IChatEvent : IUnknown { [helpstring("method OnServerList")] HRESULT _stdcall OnServerList( [in] HRESULT res, [in] Server* servers); [helpstring("method OnUpdateList")] HRESULT _stdcall OnUpdateList( [in] HRESULT res, [in] Update* updates); [helpstring("method OnServerError")] HRESULT _stdcall OnServerError( [in] HRESULT res, [in] LPSTR ircmsg); [helpstring("method OnConnection")] HRESULT _stdcall OnConnection( [in] HRESULT res, [in] LPSTR motd); [helpstring("method OnMessageOfTheDay")] HRESULT _stdcall OnMessageOfTheDay( [in] HRESULT res, [in] LPSTR motd); [helpstring("method OnChannelList")] HRESULT _stdcall OnChannelList( [in] HRESULT res, [in] Channel* channels); [helpstring("method OnChannelCreate")] HRESULT _stdcall OnChannelCreate( [in] HRESULT res, [in] Channel* Channel); [helpstring("method OnChannelJoin")] HRESULT _stdcall OnChannelJoin( [in] HRESULT res, [in] Channel* Channel, [in] User* User); [helpstring("method OnChannelLeave")] HRESULT _stdcall OnChannelLeave( [in] HRESULT res, [in] Channel* Channel, [in] User* User); [helpstring("method OnChannelTopic")] HRESULT _stdcall OnChannelTopic( [in] HRESULT res, [in] Channel* Channel, [in] LPSTR topic); [helpstring("method OnPrivateAction")] HRESULT _stdcall OnPrivateAction( [in] HRESULT res, [in] User* User, [in] LPSTR action); [helpstring("method OnPublicAction")] HRESULT _stdcall OnPublicAction( [in] HRESULT res, [in] Channel* Channel, User* User, [in] LPSTR action); [helpstring("method OnUserList")] HRESULT _stdcall OnUserList( [in] HRESULT res, [in] Channel* Channel, [in] User* users); [helpstring("method OnPublicMessage")] HRESULT _stdcall OnPublicMessage( [in] HRESULT res, [in] Channel* Channel, [in] User* User, [in] LPSTR message); [helpstring("method OnPrivateMessage")] HRESULT _stdcall OnPrivateMessage( [in] HRESULT res, [in] User* User, [in] LPSTR message); [helpstring("method OnSystemMessage")] HRESULT _stdcall OnSystemMessage( [in] HRESULT res, [in] LPSTR message); [helpstring("method OnNetStatus")] HRESULT _stdcall OnNetStatus([in] HRESULT res); [helpstring("method OnLogout")] HRESULT _stdcall OnLogout( [in] HRESULT status, [in] User* User); [helpstring("method OnPublicGameOptions")] HRESULT _stdcall OnPrivateGameOptions( [in] HRESULT res, [in] User* User, [in] LPSTR options); [helpstring("method OnPrivateGameOptions")] HRESULT _stdcall OnPublicGameOptions( [in] HRESULT res, [in] Channel* Channel, [in] User* User, [in] LPSTR options); [helpstring("method OnGameStart")] HRESULT _stdcall OnGameStart( [in] HRESULT res, [in] Channel* Channel, [in] User* users, [in] int gameid); [helpstring("method OnUserKick")] HRESULT _stdcall OnUserKick( [in] HRESULT res, [in] Channel* Channel, [in] User* kicked, [in] User* kicker); [helpstring("method OnUserIP")] HRESULT _stdcall OnUserIP( [in] HRESULT res, [in] User* User); [helpstring("method OnFind")] HRESULT _stdcall OnFind( HRESULT res, Channel* chan); [helpstring("method OnPageSend")] HRESULT _stdcall OnPageSend(HRESULT res); [helpstring("method OnPaged")] HRESULT _stdcall OnPaged( HRESULT res, User* User, LPSTR message); [helpstring("method OnServerBannedYou")] HRESULT _stdcall OnServerBannedYou( HRESULT res, long bannedTill); [helpstring("method OnUserFlags")] HRESULT _stdcall OnUserFlags( HRESULT res, LPSTR name, unsigned int flags, unsigned int mask); [helpstring("method OnChannelBan")] HRESULT _stdcall OnChannelBan( HRESULT res, LPSTR name, int banned); [helpstring("method OnSquadInfo")] HRESULT _stdcall OnSquadInfo( HRESULT res, unsigned long id, Squad* Squad); }; typedef struct tagUpdate { unsigned long SKU; unsigned long version; int required; Update* next; char Server[65]; char patchpath[256]; char patchfile[33]; char login[33]; char password[65]; char localpath[256]; } Update; typedef struct tagSquad { unsigned long id; int SKU; int members; Squad* next; char URL[129]; char name[41]; } Squad; [ uuid(BF6EA206-9E55-11D1-9DC6-006097C54321), helpstring("Download Class") ] coclass Download { [default] interface IDownload; [default, source] interface IDownloadEvent; }; [ odl, uuid(0BF5FCEB-9F03-11D1-9DC7-006097C54321), helpstring("IDownload Interface"), dual, oleautomation ] interface IDownload : IUnknown { [id(0x00000001), helpstring("method DownloadFile")] HRESULT DownloadFile( LPSTR Server, LPSTR login, LPSTR password, LPSTR file, LPSTR localfile, LPSTR regkey); [id(0x00000002), helpstring("method Abort")] HRESULT Abort(); [id(0x00000003), helpstring("method PumpMessages")] HRESULT PumpMessages(); }; [ odl, uuid(6869E99D-9FB4-11D1-9DC8-006097C54321), helpstring("IDownloadEvent Interface") ] interface IDownloadEvent : IUnknown { [helpstring("method OnEnd")] HRESULT _stdcall OnEnd(); [helpstring("method OnError")] HRESULT _stdcall OnError(int error); [helpstring("method OnProgressUpdate")] HRESULT _stdcall OnProgressUpdate( int bytesread, int totalsize, int timetaken, int timeleft); [helpstring("method OnQueryResume")] HRESULT _stdcall OnQueryResume(); [helpstring("method OnStatusUpdate")] HRESULT _stdcall OnStatusUpdate(int status); }; [ uuid(B832B0AB-A7D3-11D1-97C3-00609706FA0C), helpstring("NetUtil Class") ] coclass NetUtil { [default] interface INetUtil; [default, source] interface INetUtilEvent; }; [ odl, uuid(B832B0AA-A7D3-11D1-97C3-00609706FA0C), helpstring("INetUtil Interface") ] interface INetUtil : IUnknown { [helpstring("method RequestGameresSend")] HRESULT _stdcall RequestGameresSend( LPSTR host, int port, unsigned char* data, int length); [helpstring("method RequestLadderSearch")] HRESULT _stdcall RequestLadderSearch( LPSTR host, int port, LPSTR key, unsigned long SKU, int team, int cond, int sort, int number, int leading); [helpstring("method RequestLadderList")] HRESULT _stdcall RequestLadderList( LPSTR host, int port, LPSTR keys, unsigned long SKU, int team, int cond, int sort); [helpstring("method RequestPing")] HRESULT _stdcall RequestPing( LPSTR host, int timeout, int* handle); [helpstring("method PumpMessages")] HRESULT _stdcall PumpMessages(); [helpstring("method GetAvgPing")] HRESULT _stdcall GetAvgPing( unsigned long ip, int* avg); [helpstring("method RequestNewNick")] HRESULT _stdcall RequestNewNick( LPSTR nick, LPSTR pass, LPSTR email, LPSTR parentEmail, int newsletter); [helpstring("method RequestAgeCheck")] HRESULT _stdcall RequestAgeCheck( int month, int day, int year, LPSTR email); }; [ odl, uuid(B832B0AC-A7D3-11D1-97C3-00609706FA0C), helpstring("INetUtilEvent Interface") ] interface INetUtilEvent : IUnknown { [helpstring("method OnPing")] HRESULT _stdcall OnPing( HRESULT res, int time, unsigned long ip, int handle); [helpstring("method OnLadderList")] HRESULT _stdcall OnLadderList( HRESULT res, [in] Ladder* list, int totalCount, long timeStamp, int keyRung); [helpstring("method OnGameresSent")] HRESULT _stdcall OnGameresSent(HRESULT res); [helpstring("method OnNewNick")] HRESULT _stdcall OnNewNick( HRESULT res, LPSTR message, LPSTR nick, LPSTR pass); [helpstring("method OnAgeCheck")] HRESULT _stdcall OnAgeCheck( HRESULT res, int years, int consent); }; typedef struct tagLadder { unsigned int SKU; unsigned int team_no; unsigned int wins; unsigned int losses; unsigned int points; unsigned int kills; unsigned int rank; unsigned int rung; unsigned int disconnects; unsigned int team_rung; unsigned int provisional; unsigned int last_game_date; unsigned int win_streak; unsigned int reserved1; unsigned int reserved2; Ladder* next; char login_name[40]; } Ladder; [ uuid(8B938191-EF3F-11D1-9808-00609706FA0C), helpstring("Chat2 Class") ] coclass Chat2 { [default] interface IChat2; [default, source] interface IChat2Event; }; [ odl, uuid(8B938190-EF3F-11D1-9808-00609706FA0C), helpstring("IChat2 Interface") ] interface IChat2 : IUnknown { [helpstring("method PumpMessages")] HRESULT _stdcall PumpMessages(); [helpstring("method RequestConnection")] HRESULT _stdcall RequestConnection( Server* Server, int timeout); [helpstring("method RequestMessage")] HRESULT _stdcall RequestMessage( unsigned long who, LPSTR message); [helpstring("method GetTypeFromGID")] HRESULT _stdcall GetTypeFromGID( unsigned long id, GTYPE_* type); [helpstring("method RequestChannelList")] HRESULT _stdcall RequestChannelList(); [helpstring("method RequestChannelJoin")] HRESULT _stdcall RequestChannelJoin(LPSTR name); [helpstring("method RequestChannelLeave")] HRESULT _stdcall RequestChannelLeave(Channel* chan); [helpstring("method RequestUserList")] HRESULT _stdcall RequestUserList(Channel* chan); [helpstring("method RequestLogout")] HRESULT _stdcall RequestLogout(); [helpstring("method RequestChannelCreate")] HRESULT _stdcall RequestChannelCreate(Channel* chan); [helpstring("method RequestRawCmd")] HRESULT _stdcall RequestRawCmd(LPSTR cmd); }; typedef enum { Server = 0, Channel = 1, CLIENT = 2 } GTYPE_; [ odl, uuid(8B938192-EF3F-11D1-9808-00609706FA0C), helpstring("IChat2Event Interface") ] interface IChat2Event : IUnknown { [helpstring("method OnNetStatus")] HRESULT _stdcall OnNetStatus(HRESULT res); [helpstring("method OnMessage")] HRESULT _stdcall OnMessage( HRESULT res, User* User, LPSTR message); [helpstring("method OnChannelList")] HRESULT _stdcall OnChannelList( HRESULT res, Channel* list); [helpstring("method OnChannelJoin")] HRESULT _stdcall OnChannelJoin( HRESULT res, Channel* chan, User* User); [helpstring("method OnLogin")] HRESULT _stdcall OnLogin(HRESULT res); [helpstring("method OnUserList")] HRESULT _stdcall OnUserList( HRESULT res, Channel* chan, User* users); [helpstring("method OnChannelLeave")] HRESULT _stdcall OnChannelLeave( HRESULT res, Channel* chan, User* User); [helpstring("method OnChannelCreate")] HRESULT _stdcall OnChannelCreate( HRESULT res, Channel* chan); [helpstring("method OnUnknownLine")] HRESULT _stdcall OnUnknownLine( HRESULT res, LPSTR line); }; };