05
#define GL_FRONT_AND_BACK                 0x0408
#define GL_TEXTURE_2D                     0x0DE1
#define GL_CULL_FACE                      0x0B44
#define GL_BLEND                          0x0BE2
#define GL_DITHER                         0x0BD0
#define GL_STENCIL_TEST                   0x0B90
#define GL_DEPTH_TEST                     0x0B71
#define GL_SCISSOR_TEST                   0x0C11
#define GL_POLYGON_OFFSET_FILL            0x8037
#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
#define GL_SAMPLE_COVERAGE                0x80A0
#define GL_NO_ERROR                       0
#define GL_INVALID_ENUM                   0x0500
#define GL_INVALID_VALUE                  0x0501
#define GL_INVALID_OPERATION              0x0502
#define GL_OUT_OF_MEMORY                  0x0505
#define GL_CW                             0x0900
#define GL_CCW                            0x0901
#define GL_LINE_WIDTH                     0x0B21
#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
#define GL_CULL_FACE_MODE                 0x0B45
#define GL_FRONT_FACE                     0x0B46
#define GL_DEPTH_RANGE                    0x0B70
#define GL_DEPTH_WRITEMASK                0x0B72
#define GL_DEPTH_CLEAR_VALUE              0x0B73
#define GL_DEPTH_FUNC                     0x0B74
#define GL_STENCIL_CLEAR_VALUE            0x0B91
#define GL_STENCIL_FUNC                   0x0B92
#define GL_STENCIL_FAIL                   0x0B94
#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
#define GL_STENCIL_REF                    0x0B97
#define GL_STENCIL_VALUE_MASK             0x0B93
#define GL_STENCIL_WRITEMASK              0x0B98
#define GL_STENCIL_BACK_FUNC              0x8800
#define GL_STENCIL_BACK_FAIL              0x8801
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
#define GL_STENCIL_BACK_REF               0x8CA3
#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
#define GL_VIEWPORT                       0x0BA2
#define GL_SCISSOR_BOX                    0x0C10
#define GL_COLOR_CLEAR_VALUE              0x0C22
#define GL_COLOR_WRITEMASK                0x0C23
#define GL_UNPACK_ALIGNMENT               0x0CF5
#define GL_PACK_ALIGNMENT                 0x0D05
#define GL_MAX_TEXTURE_SIZE               0x0D33
#define GL_MAX_VIEWPORT_DIMS              0x0D3A
#define GL_SUBPIXEL_BITS                  0x0D50
#define GL_RED_BITS                       0x0D52
#define GL_GREEN_BITS                     0x0D53
#define GL_BLUE_BITS                      0x0D54
#define GL_ALPHA_BITS                     0x0D55
#define GL_DEPTH_BITS                     0x0D56
#define GL_STENCIL_BITS                   0x0D57
#define GL_POLYGON_OFFSET_UNITS           0x2A00
#define GL_POLYGON_OFFSET_FACTOR          0x8038
#define GL_TEXTURE_BINDING_2D             0x8069
#define GL_SAMPLE_BUFFERS                 0x80A8
#define GL_SAMPLES                        0x80A9
#define GL_SAMPLE_COVERAGE_VALUE    // ScanProfiles.idl : IDL source for ScanProfiles
//

// This file will be processed by the MIDL tool to
// produce the type library (ScanProfiles.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
import "propidl.idl";

interface IScanProfile; // forward declare

[
    object,
    uuid(34EAAE27-2D89-4278-84EF-61DEFA323FC1),
    dual,
    nonextensible,
    helpstring("IScanProfileMgr Interface"),
    pointer_default(unique)
]
interface IScanProfileMgr : IDispatch
{
    HRESULT GetNumProfiles([ref,out] ULONG * pulNumProfiles);
    HRESULT GetNumProfilesforDeviceID([in] BSTR bstrDeviceID, [ref,out] ULONG * pulNumProfiles);
    HRESULT GetProfiles([ref,in,out] ULONG * pulNumProfiles, [ref,out] IScanProfile ** ppScanProfile);
    HRESULT GetProfilesforDeviceID([in] BSTR bstrDeviceID, [ref,in,out] ULONG * pulNumProfiles, [ref,out] IScanProfile ** ppScanProfile);
    HRESULT GetDefaultProfile([in] BSTR bstrDeviceID, [ref,out] IScanProfile ** ppScanProfile);
    HRESULT CreateProfile([in] BSTR bstrDeviceID, [in] BSTR bstrName, [in] GUID guidCategory, [ref,out] IScanProfile ** ppScanProfile);
    HRESULT OpenProfile([in] GUID guid, [ref,out] IScanProfile ** ppScanProfile);
    HRESULT SetDefault([in] IScanProfile * pScanProfile);
    HRESULT DeleteProfile([in] IScanProfile * pScanProfile);
    HRESULT DeleteAllProfiles([in] BSTR bstrDeviceID);
    HRESULT DeleteAllProfilesForUser();
    HRESULT Refresh();
};

[
    object,
    uuid(D68A6C07-9FF8-47D1-9A2A-429D28FBC6A4),
    dual,
    nonextensible,
    helpstring("IScanProfile Interface"),
    pointer_default(unique)
]
interface IScanProfile : IDispatch
{
    HRESULT GetGUID([ref,out] GUID * pGUID);
    HRESULT GetDeviceID([ref,out] BSTR *pbstrDeviceID);
    HRESULT IsDefault([ref,out] BOOL * pbDefault);
    HRESULT GetProperty([in] ULONG num, [ref,in] PROPID * pid, [ref,out] PROPVARIANT * pvar);
    HRESULT SetProperty([in] ULONG num, [ref,in] PROPID * pid, [ref,in] PROPVARIANT * pvar);
    HRESULT GetAllPropIDs([ref,in,out] ULONG * num, [ref,out] PROPID * ppid);
    HRESULT GetNumPropIDS([ref,out] ULONG * num);
    HRESULT GetName([ref,out] BSTR * pbstrName);
    HRESULT SetName([in] BSTR pbstrName);
    HRESULT GetItem([ref,out] GUID * pguidCategory);
    HRESULT SetItem([in] GUID guidCategory);
    HRESULT Save();
    HRESULT RemoveProperty([in] ULONG num, [ref,in] PROPID * pid);
};

[
	object,
	uuid(B67CDDB7-2B20-473E-8D6C-3F1BD202E78D),
	dual,
	nonextensible,
	helpstring("IScanProfileUI Interface"),
	pointer_default(unique)
]
interface IScanProfileUI : IDispatch
{
    HRESULT ScanProfileDialog([in] HWND hwndParent);
};

[
    uuid(77A6BD8A-AB60-49FF-853C-B6EE7BABAF96),
    version(1.0),
    helpstring("ScanProfiles 1.0 Type Library")
]
library ScanProfilesLib
{
    importlib("stdole2.tlb");

    [
        uuid(CB0FC8E5-686A-478B-A252-FDECF8E167B7),
        helpstring("ScanProfileMgr Class")
    ]
    coclass ScanProfileMgr
    {
        [default] interface IScanProfileMgr;
    };

	[
		uuid(19603261-6059-43DF-B9E1-8B4352825A90),
		helpstring("ScanProfileUI Class")
	]
	coclass ScanProfileUI
	{
		[default] interface IScanProfileUI;
	};
};

