ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

devpropdef.h
Go to the documentation of this file.
00001 /*
00002  * devpropdef.h
00003  *
00004  * This file is part of the ReactOS PSDK package.
00005  *
00006  * Contributors:
00007  *   Created by Amine Khaldi.
00008  *
00009  * THIS SOFTWARE IS NOT COPYRIGHTED
00010  *
00011  * This source code is offered for use in the public domain. You may
00012  * use, modify or distribute it freely.
00013  *
00014  * This code is distributed in the hope that it will be useful but
00015  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00016  * DISCLAIMED. This includes but is not limited to warranties of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018  *
00019  */
00020 
00021 #ifndef _DEVPROPDEF_H_
00022 #define _DEVPROPDEF_H_
00023 
00024 typedef ULONG DEVPROPTYPE, *PDEVPROPTYPE;
00025 
00026 #define DEVPROP_TYPEMOD_ARRAY                   0x00001000
00027 #define DEVPROP_TYPEMOD_LIST                    0x00002000
00028 
00029 #define DEVPROP_TYPE_EMPTY                      0x00000000
00030 #define DEVPROP_TYPE_NULL                       0x00000001
00031 #define DEVPROP_TYPE_SBYTE                      0x00000002
00032 #define DEVPROP_TYPE_BYTE                       0x00000003
00033 #define DEVPROP_TYPE_INT16                      0x00000004
00034 #define DEVPROP_TYPE_UINT16                     0x00000005
00035 #define DEVPROP_TYPE_INT32                      0x00000006
00036 #define DEVPROP_TYPE_UINT32                     0x00000007
00037 #define DEVPROP_TYPE_INT64                      0x00000008
00038 #define DEVPROP_TYPE_UINT64                     0x00000009
00039 #define DEVPROP_TYPE_FLOAT                      0x0000000A
00040 #define DEVPROP_TYPE_DOUBLE                     0x0000000B
00041 #define DEVPROP_TYPE_DECIMAL                    0x0000000C
00042 #define DEVPROP_TYPE_GUID                       0x0000000D
00043 #define DEVPROP_TYPE_CURRENCY                   0x0000000E
00044 #define DEVPROP_TYPE_DATE                       0x0000000F
00045 #define DEVPROP_TYPE_FILETIME                   0x00000010
00046 #define DEVPROP_TYPE_BOOLEAN                    0x00000011
00047 #define DEVPROP_TYPE_STRING                     0x00000012
00048 #define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)
00049 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR        0x00000013
00050 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x00000014
00051 #define DEVPROP_TYPE_DEVPROPKEY                 0x00000015
00052 #define DEVPROP_TYPE_DEVPROPTYPE                0x00000016
00053 #define DEVPROP_TYPE_BINARY      (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)
00054 #define DEVPROP_TYPE_ERROR                      0x00000017
00055 #define DEVPROP_TYPE_NTSTATUS                   0x00000018
00056 #define DEVPROP_TYPE_STRING_INDIRECT            0x00000019
00057 
00058 #define MAX_DEVPROP_TYPE                        0x00000019
00059 #define MAX_DEVPROP_TYPEMOD                     0x00002000
00060 
00061 #define DEVPROP_MASK_TYPE                       0x00000FFF
00062 #define DEVPROP_MASK_TYPEMOD                    0x0000F000
00063 
00064 typedef CHAR DEVPROP_BOOLEAN, *PDEVPROP_BOOLEAN;
00065 
00066 #define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)
00067 #define DEVPROP_FALSE ((DEVPROP_BOOLEAN) 0)
00068 
00069 #ifndef DEVPROPKEY_DEFINED
00070 #define DEVPROPKEY_DEFINED
00071 
00072 typedef GUID DEVPROPGUID, *PDEVPROPGUID;
00073 typedef ULONG DEVPROPID, *PDEVPROPID;
00074 
00075 typedef struct _DEVPROPKEY {
00076   DEVPROPGUID fmtid;
00077   DEVPROPID pid;
00078 } DEVPROPKEY, *PDEVPROPKEY;
00079 
00080 #endif /* DEVPROPKEY_DEFINED */
00081 
00082 #define DEVPROPID_FIRST_USABLE 2
00083 
00084 #endif /* _DEVPROPDEF_H_ */
00085 
00086 #ifdef DEFINE_DEVPROPKEY
00087 #undef DEFINE_DEVPROPKEY
00088 #endif
00089 #ifdef INITGUID
00090 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY DECLSPEC_SELECTANY name = {{ l, w1, w2, {b1, b2, b3, b4, b5, b6, b7, b8}}, pid}
00091 #else
00092 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY name
00093 #endif /* INITGUID */
00094 
00095 #ifndef IsEqualDevPropKey
00096 
00097 #ifdef __cplusplus
00098 #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid, (b).fmtid))
00099 #else
00100 #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid, &(b).fmtid))
00101 #endif
00102 
00103 #endif /* !IsEqualDevPropKey */
00104 

Generated on Thu May 24 2012 04:32:03 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.