~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to tools/WiX/sdk/inc/dictutil.h

  • Committer: Charlie Poole
  • Date: 2012-02-02 01:55:11 UTC
  • mfrom: (3368.1.11 work)
  • Revision ID: charlie@nunit.org-20120202015511-0sspxs5miu16uzse
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
//-------------------------------------------------------------------------------------------------
 
3
// <copyright file="dictutil.h" company="Microsoft">
 
4
//    Copyright (c) Microsoft Corporation.  All rights reserved.
 
5
//    
 
6
//    The use and distribution terms for this software are covered by the
 
7
//    Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
 
8
//    which can be found in the file CPL.TXT at the root of this distribution.
 
9
//    By using this software in any fashion, you are agreeing to be bound by
 
10
//    the terms of this license.
 
11
//    
 
12
//    You must not remove this notice, or any other, from this software.
 
13
// </copyright>
 
14
// 
 
15
// <summary>
 
16
//    Header for string dict helper functions.
 
17
// </summary>
 
18
//-------------------------------------------------------------------------------------------------
 
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
 
24
typedef void* STRINGDICT_HANDLE;
 
25
 
 
26
HRESULT DAPI DictCreate(
 
27
    __out void **ppvHandle,
 
28
    __in DWORD dwNumExpectedItems,
 
29
    __in size_t cByteOffset
 
30
    );
 
31
HRESULT DAPI DictAdd(
 
32
    __in void *pvHandle,
 
33
    __in_z LPCWSTR szString,
 
34
    __in void *pvValue
 
35
    );
 
36
HRESULT DAPI DictGet(
 
37
    __in void *pvHandle,
 
38
    __in_z LPCWSTR szString,
 
39
    __out void **ppvValue
 
40
    );
 
41
void DAPI DictDestroy(
 
42
    __in void *pvHandle
 
43
    );
 
44
 
 
45
#ifdef __cplusplus
 
46
}
 
47
#endif