-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathClient.h
59 lines (46 loc) · 2.05 KB
/
Client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef CLIENT_INCLUDED
#define CLIENT_INCLUDED
/*
UOAI - Ultima Online Client Automation object
Client objects are created from within the ultima online client proccess after Injection of the UOAI dll (see onInjection).
-- Wim Decelle
*/
#include "Features.h"
#include "COMBase.h"
#include "UOCallibrations.h"
#include "UOItem.h"
#include "UOItemList.h"
// {BFC0EE0A-2B29-41d9-83DA-4B6B61EF54F9}
DEFINE_GUID(CLSID_Client,
0xbfc0ee0a, 0x2b29, 0x41d9, 0x83, 0xda, 0x4b, 0x6b, 0x61, 0xef, 0x54, 0xf9);
// {45A784D5-0E63-49c9-ACBA-46E4EDBD7D29}
DEFINE_GUID(IID_IClient,
0x45a784d5, 0xe63, 0x49c9, 0xac, 0xba, 0x46, 0xe4, 0xed, 0xbd, 0x7d, 0x29);
// {EC60659C-611F-467c-B1F8-2CDB15BD257E}
DEFINE_GUID(IID_IClientEvents,
0xec60659c, 0x611f, 0x467c, 0xb1, 0xf8, 0x2c, 0xdb, 0x15, 0xbd, 0x25, 0x7e);
typedef struct ClientStruct
{
COMObject header;
} Client;
typedef struct ClientVtblStruct
{
DEFAULT_DISPATCH;
HRESULT (STDMETHODCALLTYPE * GetPID)(Client * pThis, unsigned int * pPID);
HRESULT (STDMETHODCALLTYPE * Write)(Client * pThis, unsigned int color, unsigned int font, BSTR message);
HRESULT (STDMETHODCALLTYPE * Bark)(Client * pThis, BSTR speech);
HRESULT (STDMETHODCALLTYPE * ShowYesNoGump)(Client * pThis, BSTR question);
HRESULT (STDMETHODCALLTYPE * GetPlayer)(Client * pThis, Item ** pPlayer);
HRESULT (STDMETHODCALLTYPE * GetItems)(Client * pThis, void ** pItems);
} ClientVtbl;
void Client_constructor(Client * pThis);
void Client_destructor(Client * pThis);
HRESULT STDMETHODCALLTYPE GetPID(Client * pThis, unsigned int * pPID);
HRESULT STDMETHODCALLTYPE ClientWrite(Client * pThis, unsigned int color, unsigned int font, BSTR message);
HRESULT STDMETHODCALLTYPE Bark(Client * pThis, BSTR speech);
HRESULT STDMETHODCALLTYPE ShowYesNoGump(Client * pThis, BSTR question);
HRESULT STDMETHODCALLTYPE GetPlayer(Client * pThis, Item ** pPlayer);
HRESULT STDMETHODCALLTYPE GetItems(Client * pThis, void ** pItems);
void SetCallibrations(UOCallibrations * callibs);
UOCallibrations * GetCallibrations();
#endif