Subversion Repositories WoWGM

Rev

Rev 5 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 tristanc 1
#include "pch.h"
2
#pragma hdrstop
3
 
4
#include "CDataStore.h"
5
 
6
/****************************************************************************
7
*
8
*	Memory addresses
9
*
10
***/
11
#define CDATASTORE__INITIALIZE		0x00401050;
12
#define CDATASTORE__RESET			0x004010E0;
13
#define CDATASTORE__DESTROY			0x00403880;
14
#define CDATASTORE__SETCHAR			0x00417C80;	
15
#define CDATASTORE__SETUCHAR		0x00417CD0;
16
#define CDATASTORE__SETSHORT		0x00417D20;
17
#define CDATASTORE__SETUSHORT		0x00417D70;
18
#define CDATASTORE__SETINT			0x00417DC0;
19
#define CDATASTORE__SETUINT			0x00417E10;
20
#define CDATASTORE__SETLONG			0x00417E60;
21
#define CDATASTORE__SETULONG		0x00417EB0;
22
#define CDATASTORE__SETINT64		0x00417F00;
23
#define CDATASTORE__SETUINT64		0x00417F60;
24
#define CDATASTORE__SETFLOAT		0x00417FC0;
25
#define CDATASTORE__PUTCHAR			0x00418010;
26
#define CDATASTORE__PUTUCHAR		0x00418070;
27
#define CDATASTORE__PUTSHORT		0x004180D0;
28
#define CDATASTORE__PUTUSHORT		0x00418130;
29
#define CDATASTORE__PUTINT			0x0047B0A0;
30
#define CDATASTORE__PUTUINT			0x0047B0A0;
31
#define CDATASTORE__PUTLONG			0x00418250;
32
#define CDATASTORE__PUTULONG		0x004182B0;
33
#define CDATASTORE__PUTINT64		0x0047B100;
34
#define CDATASTORE__PUTUINT64		0x0047B100;
35
#define CDATASTORE__PUTFLOAT		0x0047B160;
36
#define CDATASTORE__PUTSTRING		0x00418430;
37
#define CDATASTORE__PUTSTRING2		0x00418470;
38
#define CDATASTORE__PUTARRAY		0x00418570;
39
#define CDATASTORE__PUTARRAY2		0x00418680;
40
#define CDATASTORE__PUTARRAY3		0x00418790;
41
#define CDATASTORE__PUTARRAY4		0x004188B0;
42
#define CDATASTORE__PUTARRAY5		0x004189D0;
43
#define CDATASTORE__PUTDATA			0x00418C10;
44
#define CDATASTORE__GETCHAR			0x00418C30;
45
#define CDATASTORE__GETUCHAR		0x00418CB0;
46
#define CDATASTORE__GETSHORT		0x00418D30;
47
#define CDATASTORE__GETUSHORT		0x00418DB0;
48
#define CDATASTORE__GETINT			0x00418E30;
49
#define CDATASTORE__GETUINT			0x00418EB0;
50
#define CDATASTORE__GETLONG			0x00418F30;
51
#define CDATASTORE__GETULONG		0x00418FB0;
52
#define CDATASTORE__GETINT64		0x00419030;
53
#define CDATASTORE__GETUINT64		0x004190B0;
54
#define CDATASTORE__GETFLOAT		0x00419130;
55
#define CDATASTORE__GETSTRING		0x004191B0;
56
#define CDATASTORE__GETSTRING2		0x004192E0;
57
#define CDATASTORE__GETARRAY		0x00419400;
58
#define CDATASTORE__GETARRAY2		0x00419510;
59
#define CDATASTORE__GETARRAY3		0x00419620;
60
#define CDATASTORE__GETARRAY4		0x00419740;
61
#define CDATASTORE__GETARRAY5		0x00419860;
62
#define CDATASTORE__GETDATA			0x00419AA0;
63
#define CDATASTORE__GETBUFFERPARAMS	0x00419B50;
64
#define CDATASTORE__DETACHBUFFER	0x00419B80;
65
 
66
 
67
/****************************************************************************
68
*
69
*	Private
70
*
71
***/
72
CDataStore* (__thiscall* CDataStore__InitializePtr)	(CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__INITIALIZE;
73
CDataStore* (__thiscall* CDataStore__ResetPtr)		(CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__RESET;
74
CDataStore* (__thiscall* CDataStore__DestroyPtr)	(CDataStore* pData) = *(CDataStore*(__thiscall *)(CDataStore *))CDATASTORE__DESTROY;
75
CDataStore& (__thiscall* CDataStore__SetCharPtr)	(CDataStore* pData, DWORD pos, CHAR bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,CHAR))CDATASTORE__SETCHAR;
76
CDataStore& (__thiscall* CDataStore__SetUCharPtr)	(CDataStore* pData, DWORD pos, UCHAR bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,UCHAR))CDATASTORE__SETUCHAR;
77
CDataStore& (__thiscall* CDataStore__SetShortPtr)	(CDataStore* pData, DWORD pos, SHORT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,SHORT))CDATASTORE__SETSHORT;
78
CDataStore& (__thiscall* CDataStore__SetUShortPtr)	(CDataStore* pData, DWORD pos, USHORT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,USHORT))CDATASTORE__SETSHORT;
79
CDataStore& (__thiscall* CDataStore__SetIntPtr)		(CDataStore* pData, DWORD pos, INT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,INT))CDATASTORE__SETINT;
80
CDataStore& (__thiscall* CDataStore__SetUIntPtr)	(CDataStore* pData, DWORD pos, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,DWORD))CDATASTORE__SETUINT;
81
CDataStore& (__thiscall* CDataStore__SetLongPtr)	(CDataStore* pData, DWORD pos, long bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,long))CDATASTORE__SETLONG;
82
CDataStore& (__thiscall* CDataStore__SetULongPtr)	(CDataStore* pData, DWORD pos, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,DWORD))CDATASTORE__SETULONG;
83
CDataStore& (__thiscall* CDataStore__SetInt64Ptr)	(CDataStore* pData, DWORD pos, INT64 bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,INT64))CDATASTORE__SETINT64;
84
CDataStore& (__thiscall* CDataStore__SetUInt64Ptr)	(CDataStore* pData, DWORD pos, UINT64 bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,UINT64))CDATASTORE__SETUINT64;
85
CDataStore& (__thiscall* CDataStore__SetFloatPtr)	(CDataStore* pData, DWORD pos, float bytes) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD,float))CDATASTORE__SETFLOAT;
86
CDataStore& (__thiscall* CDataStore__PutCharPtr)	(CDataStore* pData, char val) = *(CDataStore&(__thiscall*)(CDataStore*,char))CDATASTORE__PUTCHAR;
87
CDataStore& (__thiscall* CDataStore__PutUCharPtr)	(CDataStore* pData, UCHAR val) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR))CDATASTORE__PUTUCHAR;
88
CDataStore& (__thiscall* CDataStore__PutShortPtr)	(CDataStore* pData, short val) = *(CDataStore&(__thiscall*)(CDataStore*,short))CDATASTORE__PUTSHORT;
89
CDataStore& (__thiscall* CDataStore__PutUShortPtr)	(CDataStore* pData, USHORT val) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT))CDATASTORE__PUTUSHORT;
90
CDataStore& (__thiscall* CDataStore__PutIntPtr)		(CDataStore* pData, int val) = *(CDataStore&(__thiscall*)(CDataStore*,int))CDATASTORE__PUTINT;
91
CDataStore& (__thiscall* CDataStore__PutUIntPtr)	(CDataStore* pData, UINT val) = *(CDataStore&(__thiscall*)(CDataStore*,UINT))CDATASTORE__PUTUINT;
92
CDataStore& (__thiscall* CDataStore__PutLongPtr)	(CDataStore* pData, long val) = *(CDataStore&(__thiscall*)(CDataStore*,long))CDATASTORE__PUTLONG;
93
CDataStore& (__thiscall* CDataStore__PutULongPtr)	(CDataStore* pData, DWORD val) = *(CDataStore&(__thiscall*)(CDataStore*,DWORD))CDATASTORE__PUTULONG;
94
CDataStore& (__thiscall* CDataStore__PutInt64Ptr)	(CDataStore* pData, INT64 val) = *(CDataStore&(__thiscall*)(CDataStore*,INT64))CDATASTORE__PUTINT64;
95
CDataStore& (__thiscall* CDataStore__PutUInt64Ptr)	(CDataStore* pData, UINT64 val) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64))CDATASTORE__PUTUINT64;
96
CDataStore& (__thiscall* CDataStore__PutFloatPtr)	(CDataStore* pData, float val) = *(CDataStore&(__thiscall*)(CDataStore*,float))CDATASTORE__PUTFLOAT;
97
CDataStore& (__thiscall* CDataStore__PutStringPtr)	(CDataStore* pData, LPCSTR pval) = *(CDataStore&(__thiscall*)(CDataStore*,LPCSTR))CDATASTORE__PUTSTRING;
98
CDataStore& (__thiscall* CDataStore__PutStringPtr2) (CDataStore* pData, USHORT const* pval) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT const*))CDATASTORE__PUTSTRING2;
99
CDataStore& (__thiscall* CDataStore__PutArrayPtr)	(CDataStore* pData, UCHAR const* pval, DWORD bytes) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR const*,DWORD))CDATASTORE__PUTARRAY;
100
CDataStore& (__thiscall* CDataStore__PutArrayPtr2)	(CDataStore* pData, USHORT const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT const*,UINT))CDATASTORE__PUTARRAY2;
101
CDataStore& (__thiscall* CDataStore__PutArrayPtr3)	(CDataStore* pData, ULONG const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG const*,UINT))CDATASTORE__PUTARRAY3;
102
CDataStore& (__thiscall* CDataStore__PutArrayPtr4)	(CDataStore* pData, UINT64 const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64 const*,UINT))CDATASTORE__PUTARRAY4;
103
CDataStore& (__thiscall* CDataStore__PutArrayPtr5)	(CDataStore* pData, float const* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,float const*,UINT))CDATASTORE__PUTARRAY5;
104
CDataStore& (__thiscall* CDataStore__PutDataPtr)	(CDataStore* pData, const void* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,const void*,UINT))CDATASTORE__PUTDATA;
105
CDataStore& (__thiscall* CDataStore__GetCharPtr)	(CDataStore* pData, char& rval) = *(CDataStore&(__thiscall*)(CDataStore*,char&))CDATASTORE__GETCHAR;
106
CDataStore& (__thiscall* CDataStore__GetUCharPtr)	(CDataStore* pData, UCHAR& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR&))CDATASTORE__GETUCHAR;
107
CDataStore& (__thiscall* CDataStore__GetShortPtr)	(CDataStore* pData, short& rval) = *(CDataStore&(__thiscall*)(CDataStore*,short&))CDATASTORE__GETSHORT;
108
CDataStore& (__thiscall* CDataStore__GetUShortPtr)	(CDataStore* pData, USHORT& rval) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT&))CDATASTORE__GETUSHORT;
109
CDataStore& (__thiscall* CDataStore__GetIntPtr)		(CDataStore* pData, int& rval) = *(CDataStore&(__thiscall*)(CDataStore*,int&))CDATASTORE__GETINT;
110
CDataStore& (__thiscall* CDataStore__GetUIntPtr)	(CDataStore* pData, UINT& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UINT&))CDATASTORE__GETUINT;
111
CDataStore& (__thiscall* CDataStore__GetLongPtr)	(CDataStore* pData, long& rval) = *(CDataStore&(__thiscall*)(CDataStore*,long&))CDATASTORE__GETLONG;
112
CDataStore& (__thiscall* CDataStore__GetULongPtr)	(CDataStore* pData, ULONG& rval) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG&))CDATASTORE__GETULONG;
113
CDataStore& (__thiscall* CDataStore__GetInt64Ptr)	(CDataStore* pData, INT64& rval) = *(CDataStore&(__thiscall*)(CDataStore*,INT64&))CDATASTORE__GETINT64;
114
CDataStore& (__thiscall* CDataStore__GetUInt64Ptr)	(CDataStore* pData, UINT64& rval) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64&))CDATASTORE__GETUINT64;
115
CDataStore& (__thiscall* CDataStore__GetFloatPtr)	(CDataStore* pData, float& rval) = *(CDataStore&(__thiscall*)(CDataStore*,float&))CDATASTORE__GETFLOAT;
116
CDataStore& (__thiscall* CDataStore__GetStringPtr)	(CDataStore* pData, LPSTR pval, DWORD maxChars) = *(CDataStore&(__thiscall*)(CDataStore*,LPSTR,DWORD))CDATASTORE__GETSTRING;
117
CDataStore& (__thiscall* CDataStore__GetStringPtr2) (CDataStore* pData, LPWSTR pval, DWORD maxChars) = *(CDataStore&(__thiscall*)(CDataStore*,LPWSTR,DWORD))CDATASTORE__GETSTRING2;
118
CDataStore& (__thiscall* CDataStore__GetArrayPtr)	(CDataStore* pData, UCHAR* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,UCHAR*,UINT))CDATASTORE__GETARRAY;
119
CDataStore& (__thiscall* CDataStore__GetArrayPtr2)	(CDataStore* pData, USHORT* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,USHORT*,UINT))CDATASTORE__GETARRAY2;
120
CDataStore& (__thiscall* CDataStore__GetArrayPtr3)	(CDataStore* pData, ULONG* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,ULONG*,UINT))CDATASTORE__GETARRAY3;
121
CDataStore& (__thiscall* CDataStore__GetArrayPtr4)	(CDataStore* pData, UINT64* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,UINT64*,UINT))CDATASTORE__GETARRAY4;
122
CDataStore& (__thiscall* CDataStore__GetArrayPtr5)	(CDataStore* pData, float* pval, UINT count) = *(CDataStore&(__thiscall*)(CDataStore*,float*,UINT))CDATASTORE__GETARRAY5;
123
CDataStore& (__thiscall* CDataStore__GetDataPtr)	(CDataStore* pData, void* pval, UINT bytes) = *(CDataStore&(__thiscall*)(CDataStore*,void*,UINT))CDATASTORE__GETDATA;
124
void (__thiscall* CDataStore__GetBufferParamsPtr)	(const CDataStore* pData, const void** dataPtr, UINT* sizePtr, UINT* allocPtr) = *(void(__thiscall*)(const CDataStore*,const void**,UINT*,UINT*))CDATASTORE__GETBUFFERPARAMS;
125
void (__thiscall* CDataStore__DetachBufferPtr)		(CDataStore* pData, void** dataPtr, UINT* sizePtr, UINT* allocPtr) = *(void (__thiscall*)(CDataStore*,void**,UINT*,UINT*))CDATASTORE__DETACHBUFFER;
126
 
127
//=======================================================================
128
void CDataStore::Initialize(CDataStore* pData)
129
{
130
	CDataStore__InitializePtr(pData);
131
}
132
 
133
//=======================================================================
134
void CDataStore::Destroy(CDataStore* pData)
135
{
136
	CDataStore__DestroyPtr(pData);
137
}
138
 
139
 
140
/***************************************************************************
141
*
142
*	External
143
*
144
***/
145
//=======================================================================
146
CDataStore::CDataStore()
147
{
148
	Initialize(this);
149
}
150
 
151
//=======================================================================
152
CDataStore::~CDataStore()
153
{
154
	Destroy(this);
155
}
156
 
157
//=======================================================================
158
CDataStore* CDataStore::Reset()
159
{
160
	return CDataStore__ResetPtr(this);
161
}
162
 
163
//=======================================================================
164
CDataStore& CDataStore::Set(DWORD pos, char bytes)
165
{
166
	return CDataStore__SetCharPtr(this,pos,bytes);
167
}
168
 
169
//=======================================================================
170
CDataStore& CDataStore::Set(DWORD pos, UCHAR bytes)
171
{
172
	return CDataStore__SetUCharPtr(this, pos, bytes);
173
}
174
 
175
//=======================================================================
176
CDataStore& CDataStore::Set(DWORD pos, short bytes)
177
{
178
	return CDataStore__SetShortPtr(this, pos, bytes);
179
}
180
 
181
//=======================================================================
182
CDataStore& CDataStore::Set(DWORD pos, USHORT bytes)
183
{
184
	return CDataStore__SetUShortPtr(this, pos, bytes);
185
}
186
 
187
//=======================================================================
188
CDataStore& CDataStore::Set(DWORD pos, int bytes)
189
{
190
	return CDataStore__SetIntPtr(this, pos, bytes);
191
}
192
 
193
//=======================================================================
194
CDataStore& CDataStore::Set(DWORD pos, UINT bytes)
195
{
196
	return CDataStore__SetUIntPtr(this, pos, bytes);
197
}
198
 
199
//=======================================================================
200
CDataStore& CDataStore::Set(DWORD pos, long bytes)
201
{
202
	return CDataStore__SetLongPtr(this, pos, bytes);
203
}
204
 
205
//=======================================================================
206
CDataStore& CDataStore::Set(DWORD pos, ULONG bytes)
207
{
208
	return CDataStore__SetULongPtr(this, pos, bytes);
209
}
210
 
211
//=======================================================================
212
CDataStore& CDataStore::Set(DWORD pos, INT64 bytes)
213
{
214
	return CDataStore__SetInt64Ptr(this, pos, bytes);
215
}
216
 
217
//=======================================================================
218
CDataStore& CDataStore::Set(DWORD pos, UINT64 bytes)
219
{
220
	return CDataStore__SetUInt64Ptr(this, pos, bytes);
221
}
222
 
223
//=======================================================================
224
CDataStore& CDataStore::Set(DWORD pos, float bytes)
225
{
226
	return CDataStore__SetFloatPtr(this, pos, bytes);
227
}
228
 
229
//=======================================================================
230
CDataStore& CDataStore::Put(char val)
231
{
232
	return CDataStore__PutCharPtr(this,val);
233
}
234
 
235
//=======================================================================
236
CDataStore& CDataStore::Put(UCHAR val)
237
{
238
	return CDataStore__PutUCharPtr(this, val);
239
}
240
 
241
//=======================================================================
242
CDataStore& CDataStore::Put(short val)
243
{
244
	return CDataStore__PutShortPtr(this, val);
245
}
246
 
247
//=======================================================================
248
CDataStore& CDataStore::Put(USHORT val)
249
{
250
	return CDataStore__PutUShortPtr(this, val);
251
}
252
 
253
//=======================================================================
254
CDataStore& CDataStore::Put(int val)
255
{
256
	return CDataStore__PutIntPtr(this, val);
257
}
258
 
259
//=======================================================================
260
CDataStore& CDataStore::Put(UINT val)
261
{
262
	return CDataStore__PutUIntPtr(this, val);
263
}
264
 
265
//=======================================================================
266
CDataStore& CDataStore::Put(long val)
267
{
268
	return CDataStore__PutLongPtr(this, val);
269
}
270
 
271
//=======================================================================
272
CDataStore& CDataStore::Put(ULONG val)
273
{
274
	return CDataStore__PutULongPtr(this, val);
275
}
276
 
277
//=======================================================================
278
CDataStore& CDataStore::Put(INT64 val)
279
{
280
	return CDataStore__PutInt64Ptr(this, val);
281
}
282
 
283
//=======================================================================
284
CDataStore& CDataStore::Put(UINT64 val)
285
{
286
	return CDataStore__PutUInt64Ptr(this, val);
287
}
288
 
289
//=======================================================================
290
CDataStore& CDataStore::Put(float val)
291
{
292
	return CDataStore__PutFloatPtr(this, val);
293
}
294
 
295
//=======================================================================
296
CDataStore& CDataStore::PutString(char const* pval)
297
{
298
	return CDataStore__PutStringPtr(this,pval);
299
}
300
 
301
//=======================================================================
302
CDataStore& CDataStore::PutString(USHORT const* pval)
303
{
304
	return CDataStore__PutStringPtr2(this, pval);
305
}
306
 
307
//=======================================================================
308
CDataStore& CDataStore::PutArray(UCHAR const* pval, DWORD bytes)
309
{
310
	return CDataStore__PutArrayPtr(this,pval,bytes);
311
}
312
 
313
//=======================================================================
314
CDataStore& CDataStore::PutArray(USHORT const* pval, DWORD bytes)
315
{
316
	return CDataStore__PutArrayPtr2(this, pval, bytes);
317
}
318
 
319
//=======================================================================
320
CDataStore& CDataStore::PutArray(ULONG const* pval, DWORD bytes)
321
{
322
	return CDataStore__PutArrayPtr3(this, pval, bytes);
323
}
324
 
325
//=======================================================================
326
CDataStore& CDataStore::PutArray (UINT64 const* pval, DWORD bytes)
327
{
328
	return CDataStore__PutArrayPtr4(this, pval, bytes);
329
}
330
 
331
//=======================================================================
332
CDataStore& CDataStore::PutArray (float const* pval, DWORD bytes)
333
{
334
	return CDataStore__PutArrayPtr5(this, pval, bytes);
335
}
336
 
337
//=======================================================================
338
CDataStore& CDataStore::PutData (void const* pval, DWORD bytes)
339
{
340
	return CDataStore__PutDataPtr(this,pval,bytes);
341
}
342
 
343
//=======================================================================
344
CDataStore& CDataStore::Get(char& pval)
345
{
346
	return CDataStore__GetCharPtr(this,pval);
347
}
348
 
349
//=======================================================================
350
CDataStore& CDataStore::Get(UCHAR& pval)
351
{
352
	return CDataStore__GetUCharPtr(this, pval);
353
}
354
 
355
//=======================================================================
356
CDataStore& CDataStore::Get(short& pval)
357
{
358
	return CDataStore__GetShortPtr(this, pval);
359
}
360
 
361
//=======================================================================
362
CDataStore& CDataStore::Get(USHORT& pval)
363
{
364
	return CDataStore__GetUShortPtr(this, pval);
365
}
366
 
367
//=======================================================================
368
CDataStore& CDataStore::Get(int& pval)
369
{
370
	return CDataStore__GetIntPtr(this, pval);
371
}
372
 
373
//=======================================================================
374
CDataStore& CDataStore::Get(UINT& pval)
375
{
376
	return CDataStore__GetUIntPtr(this, pval);
377
}
378
 
379
//=======================================================================
380
CDataStore& CDataStore::Get(long& pval)
381
{
382
	return CDataStore__GetLongPtr(this, pval);
383
}
384
 
385
//=======================================================================
386
CDataStore& CDataStore::Get(ULONG& pval)
387
{
388
	return CDataStore__GetULongPtr(this, pval);
389
}
390
 
391
//=======================================================================
392
CDataStore& CDataStore::Get(INT64& pval)
393
{
394
	return CDataStore__GetInt64Ptr(this, pval);
395
}
396
 
397
//=======================================================================
398
CDataStore& CDataStore::Get(UINT64& pval)
399
{
400
	return CDataStore__GetUInt64Ptr(this, pval);
401
}
402
 
403
//=======================================================================
404
CDataStore& CDataStore::Get(float& pval)
405
{
406
	return CDataStore__GetFloatPtr(this, pval);
407
}
408
 
409
//=======================================================================
410
CDataStore& CDataStore::GetString(LPSTR pval, DWORD maxChars)
411
{
412
	return CDataStore__GetStringPtr(this,pval,maxChars);
413
}
414
 
415
//=======================================================================
416
CDataStore& CDataStore::GetString(LPWSTR pval, DWORD maxChars)
417
{
418
	return CDataStore__GetStringPtr2(this, pval, maxChars);
419
}
420
 
421
//=======================================================================
422
CDataStore& CDataStore::GetArray(UCHAR* pval, DWORD count)
423
{
424
	return CDataStore__GetArrayPtr(this, pval, count);
425
}
426
 
427
//=======================================================================
428
CDataStore& CDataStore::GetArray(USHORT* pval, DWORD count)
429
{
430
	return CDataStore__GetArrayPtr2(this, pval, count);
431
}
432
 
433
//=======================================================================
434
CDataStore& CDataStore::GetArray(ULONG* pval, DWORD count)
435
{
436
	return CDataStore__GetArrayPtr3(this, pval, count);
437
}
438
 
439
//=======================================================================
440
CDataStore& CDataStore::GetArray(UINT64* pval, DWORD count)
441
{
442
	return CDataStore__GetArrayPtr4(this, pval, count);
443
}
444
 
445
//=======================================================================
446
CDataStore& CDataStore::GetArray(float* pval, DWORD count)
447
{
448
	return CDataStore__GetArrayPtr5(this, pval, count);
449
}
450
 
451
//=======================================================================
452
void CDataStore::GetBufferParams(LPCVOID*	dataPtr,
453
								 UINT*		sizePtr,
454
								 UINT*		allocPtr) const
455
{
456
	return CDataStore__GetBufferParamsPtr(this,dataPtr,sizePtr,allocPtr);
457
}
458
 
459
//=======================================================================
460
void CDataStore::DetachBuffer(PVOID* dataPtr, UINT* sizePtr, UINT* allocPtr)
461
{
462
	return CDataStore__DetachBufferPtr(this, dataPtr, sizePtr, allocPtr);
463
}