summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/winceunits/src/devmgmt.pp
blob: e634a2608b5736e83257557a5b056540f178b5fb (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 2008 Free Pascal development team.

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 ********************************************************************** }

//
// Module Name:
//
//     devmgmt.h
//
// DESCRIPTION:
// Device Management APIs
//

//
// Included Module Name:
//
//     cfgmgrapi.h
//
// DESCRIPTION:
// Configmanager API to process XML configuration files
//

//
//  Microsoft Windows Mobile 6.0 for PocketPC SDK.
//

unit devmgmt;

{$CALLING cdecl}

interface

uses Windows, aygshell;

// - cfgmgrapi.h

// Possible error codes returned by Configmanager
const
      CONFIG_E_OBJECTBUSY                 = HRESULT($80042001);
      CONFIG_E_CANCELTIMEOUT              = HRESULT($80042002);
      CONFIG_E_ENTRYNOTFOUND              = HRESULT($80042004);
      CONFIG_S_PROCESSINGCANCELED         = HRESULT($00042005);
      CONFIG_E_CSPEXCEPTION               = HRESULT($80042007);
      CONFIG_E_TRANSACTIONINGFAILURE      = HRESULT($80042008);
      CONFIG_E_BAD_XML                    = HRESULT($80042009);

// Configmanager flags
const
      CFGFLAG_PROCESS                     = $0001;
      CFGFLAG_METADATA                    = $0002;

function DMProcessConfigXML(pszWXMLin:LPCWSTR; dwFlags:DWORD; ppszwXMLout:PLPWSTR):HRESULT; external UserDLLAyg name 'DMProcessConfigXML'; // index 7E5

// - end of cfgmgrapi.h

// - devmgmt.h

function QueryPolicy(dwPolicyId:DWORD; pdwPolicyValue:PDWORD):HRESULT; external UserDLLAyg name 'QueryPolicy';  

// - end of devmgmt.h

implementation

end.