summaryrefslogtreecommitdiffstats
path: root/private/utils/mode/common.hxx
blob: e5bd203af0ccc66bedbb83c87ac06d99f273d3f4 (plain) (blame)
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
/*++

Copyright (c) 1990  Microsoft Corporation

Module Name:

	common.hxx

Abstract:

	Description of request data that is common to 2 or more devices.

Author:

	Ramon Juan San Andres (ramonsa) 26-Jun-1991


Revision History:


--*/

#include "string.hxx"


//
//	Data for request type REQUEST_TYPE_CODEPAGE_PREPARE
//
typedef struct _REQUEST_DATA_CODEPAGE_PREPARE {

    PWSTRING            CodepageInfo;   //  String describing the codepage

} REQUEST_CODEPAGE_PREPARE, *PREQUEST_CODEPAGE_PREPARE;



//
//	Data for request type REQUEST_TYPE_CODEPAGE_SELECT
//
typedef struct _REQUEST_DATA_CODEPAGE_SELECT {

	DWORD	Codepag;		//	The codepage

} REQUEST_CODEPAGE_SELECT, *PREQUEST_CODEPAGE_SELECT;



//
//	Data for requests common to various devices
//
typedef union _COMMON_REQUEST_DATA {

	REQUEST_CODEPAGE_PREPARE	Prepare;
	REQUEST_CODEPAGE_SELECT 	Select;

} COMMON_REQUEST_DATA, *PCOMMON_REQUEST_DATA;



//
//	Structure of a request common to 2 or more devices
//
typedef struct _COMMON_REQUEST {

	REQUEST_HEADER		Header; 		//	Request Header
	COMMON_REQUEST_DATA Data;			//	Data

} COMMON_REQUEST, *PCOMMON_REQUEST;