source: trunk/Utilities/MaxMindGeoLite/MaxMindGeoLite.idl @ 47

Last change on this file since 47 was 47, checked in by roman, 10 years ago
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2012
3// Created by Roman Ryltsov roman@alax.info
4// 
5// $Id: MaxMindGeoLite.idl 47 2012-02-11 13:53:43Z roman $
6
7import "oaidl.idl";
8import "ocidl.idl";
9
10[
11        object,
12        uuid(3C3125E8-60D6-4703-B7B4-7A024CEA2F05),
13        dual,
14        oleautomation,
15        helpstring("ILocation Interface"),
16        pointer_default(unique)
17]
18interface ILocation : IDispatch
19{
20        [propget, id(1)] HRESULT Country([out, retval] BSTR* psCountry);
21        [propget, id(2)] HRESULT Region([out, retval] BSTR* psRegion);
22        [propget, id(3)] HRESULT City([out, retval] BSTR* psCity);
23        [propget, id(4)] HRESULT PostalCode([out, retval] BSTR* psPostalCode);
24        [propget, id(5)] HRESULT Latitude([out, retval] DOUBLE* pfLatitude);
25        [propget, id(6)] HRESULT Longitude([out, retval] DOUBLE* pfLongitude);
26        [propget, id(7)] HRESULT MetroCode([out, retval] BSTR* psMetroCode);
27        [propget, id(8)] HRESULT AreaCode([out, retval] BSTR* psAreaCode);
28};
29[
30        object,
31        uuid(B6E2FBEB-1AC2-424B-B2DA-FF6398ADCF0C),
32        dual,
33        oleautomation,
34        helpstring("ILocations Interface"),
35        pointer_default(unique)
36]
37interface ILocations : IDispatch
38{
39        [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT vIndex, [out, retval] ILocation** ppLocation);
40};
41[
42        uuid(F80BC862-E43E-4809-ACFC-1A608209C860),
43        version(1.0),
44        helpstring("Alax.Info Geolocation Tools (using MaxMind GeoLite) 1.0 Type Library")
45]
46library AlaxInfoMaxMindGeoLite
47{
48        importlib("stdole2.tlb");
49        [
50                uuid(E4758497-363F-467D-BE04-C2222748C7E6),
51                noncreatable,
52                helpstring("Location Class")
53        ]
54        coclass Location
55        {
56                [default] interface ILocation;
57                //interface ISupportErrorInfo;
58        };
59        [
60                uuid(350EBCB9-942A-4D11-9192-54AA6230F7BF),
61                helpstring("Locations Class")
62        ]
63        coclass Locations
64        {
65                [default] interface ILocations;
66                //interface ISupportErrorInfo;
67        };
68};
Note: See TracBrowser for help on using the repository browser.