Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
7.5 KiB

  1. /*++
  2. Copyright (c) 1996 - 97 Microsoft Corporation
  3. File: ceapimap.h
  4. Abstract:
  5. Contents: This file contains mappings for all the WinCE API names,
  6. structures and constants to the new names.
  7. Eg. PEGOID -> CEOID
  8. PegCreateDatabase -> CeCreateDatabase
  9. History:
  10. 10/23/96 HareshV Created
  11. --*/
  12. #ifndef _CEAPIMAP_H
  13. #define _CEAPIMAP_H
  14. //
  15. // Prop Ids for WinCE Properties:
  16. //
  17. typedef CEPROPID PEGPROPID;
  18. typedef PEGPROPID *PPEGPROPID;
  19. //
  20. // Unique identifier for all WINCE objects
  21. //
  22. typedef CEOID PEGOID;
  23. typedef PEGOID *PPEGOID;
  24. //
  25. // Structures:
  26. //
  27. #ifdef RAPI_H
  28. typedef CE_FIND_DATA PEG_FIND_DATA;
  29. typedef LPCE_FIND_DATA LPPEG_FIND_DATA;
  30. typedef LPLPCE_FIND_DATA LPLPPEG_FIND_DATA;
  31. #ifndef UNDER_CE
  32. typedef CEDB_FIND_DATA PEGDB_FIND_DATA;
  33. typedef LPCEDB_FIND_DATA LPPEGDB_FIND_DATA;
  34. typedef LPLPCEDB_FIND_DATA LPLPPEGDB_FIND_DATA;
  35. #endif
  36. #endif
  37. typedef CEFILEINFO PEGFILEINFO;
  38. typedef PEGFILEINFO *PPEGFILEINFO;
  39. typedef CEDIRINFO PEGDIRINFO;
  40. typedef PEGDIRINFO *PPEGDIRINFO;
  41. typedef CERECORDINFO PEGRECORDINFO;
  42. typedef PEGRECORDINFO *PPEGRECORDINFO;
  43. #define PEGDB_SORT_DESCENDING CEDB_SORT_DESCENDING
  44. #define PEGDB_SORT_CASEINSENSITIVE CEDB_SORT_CASEINSENSITIVE
  45. #define PEGDB_SORT_UNKNOWNFIRST CEDB_SORT_UNKNOWNFIRST
  46. #define PEGDB_SORT_GENERICORDER CEDB_SORT_GENERICORDER
  47. #define PEGDB_MAXDBASENAMELEN CEDB_MAXDBASENAMELEN
  48. #define PEGDB_MAXSORTORDER CEDB_MAXSORTORDER
  49. //
  50. // Values for flag:
  51. //
  52. #define PEGDB_VALIDNAME CEDB_VALIDNAME
  53. #define PEGDB_VALIDTYPE CEDB_VALIDTYPE
  54. #define PEGDB_VALIDSORTSPEC CEDB_VALIDSORTSPEC
  55. #define PEGDB_VALIDMODTIME CEDB_VALIDMODTIME
  56. typedef CEDBASEINFO PEGDBASEINFO;
  57. typedef PEGDBASEINFO *PPEGDBASEINFO;
  58. typedef CEOIDINFO PEGOIDINFO;
  59. typedef PEGOIDINFO *PPEGOIDINFO;
  60. //
  61. // Flags for open database - use low word:
  62. //
  63. #define PEGDB_AUTOINCREMENT CEDB_AUTOINCREMENT
  64. #define PEGDB_SEEK_PEGOID CEDB_SEEK_CEOID
  65. #define PEGDB_SEEK_BEGINNING CEDB_SEEK_BEGINNING
  66. #define PEGDB_SEEK_END CEDB_SEEK_END
  67. #define PEGDB_SEEK_CURRENT CEDB_SEEK_CURRENT
  68. #define PEGDB_SEEK_VALUESMALLER CEDB_SEEK_VALUESMALLER
  69. #define PEGDB_SEEK_VALUEFIRSTEQUAL CEDB_SEEK_VALUEFIRSTEQUAL
  70. #define PEGDB_SEEK_VALUEGREATER CEDB_SEEK_VALUEGREATER
  71. #define PEGDB_SEEK_VALUENEXTEQUAL CEDB_SEEK_VALUENEXTEQUAL
  72. typedef CEBLOB PEGBLOB;
  73. typedef PEGBLOB *PPEGBLOB;
  74. #define PEGVT_I2 CEVT_I2
  75. #define PEGVT_UI2 CEVT_UI2
  76. #define PEGVT_I4 CEVT_I4
  77. #define PEGVT_UI4 CEVT_UI4
  78. #define PEGVT_FILETIME CEVT_FILETIME
  79. #define PEGVT_LPWSTR CEVT_LPWSTR
  80. #define PEGVT_BLOB CEVT_BLOB
  81. typedef CEVALUNION PEGVALUNION;
  82. typedef PEGVALUNION *PPEGVALUNION;
  83. #define PEGDB_PROPNOTFOUND CEDB_PROPNOTFOUND
  84. #define PEGDB_PROPDELETE CEDB_PROPDELETE
  85. typedef CEPROPVAL PEGPROPVAL;
  86. typedef PEGPROPVAL *PPEGPROPVAL;
  87. #define PEGDB_MAXDATABLOCKSIZE CEDB_MAXDATABLOCKSIZE
  88. #define PEGDB_MAXPROPDATASIZE CEDB_MAXPROPDATASIZE
  89. #define PEGDB_MAXRECORDSIZE CEDB_MAXRECORDSIZE
  90. #define PEGDB_ALLOWREALLOC CEDB_ALLOWREALLOC
  91. #ifndef UNDER_CE
  92. typedef CEOSVERSIONINFO PEGOSVERSIONINFO;
  93. typedef LPCEOSVERSIONINFO LPPEGOSVERSIONINFO;
  94. #endif
  95. #define PegCreateDatabase CeCreateDatabase
  96. #define PegDeleteDatabase CeDeleteDatabase
  97. #define PegDeleteRecord CeDeleteRecord
  98. #define PegFindFirstDatabase CeFindFirstDatabase
  99. #define PegFindNextDatabase CeFindNextDatabase
  100. #define PegOidGetInfo CeOidGetInfo
  101. #define PegOpenDatabase CeOpenDatabase
  102. #define PegReadRecordProps CeReadRecordProps
  103. #define PegSeekDatabase CeSeekDatabase
  104. #define PegSetDatabaseInfo CeSetDatabaseInfo
  105. #define PegWriteRecordProps CeWriteRecordProps
  106. #ifndef UNDER_CE
  107. #define PegFindFirstFile CeFindFirstFile
  108. #define PegFindNextFile CeFindNextFile
  109. #define PegFindClose CeFindClose
  110. #define PegGetFileAttributes CeGetFileAttributes
  111. #define PegSetFileAttributes CeSetFileAttributes
  112. #define PegCreateFile CeCreateFile
  113. #define PegReadFile CeReadFile
  114. #define PegWriteFile CeWriteFile
  115. #define PegCloseHandle CeCloseHandle
  116. #define PegFindAllFiles CeFindAllFiles
  117. #define PegFindAllDatabases CeFindAllDatabases
  118. #define PegSetFilePointer CeSetFilePointer
  119. #define PegSetEndOfFile CeSetEndOfFile
  120. #define PegCreateDirectory CeCreateDirectory
  121. #define PegRemoveDirectory CeRemoveDirectory
  122. #define PegCreateProcess CeCreateProcess
  123. #define PegMoveFile CeMoveFile
  124. #define PegCopyFile CeCopyFile
  125. #define PegDeleteFile CeDeleteFile
  126. #define PegGetFileSize CeGetFileSize
  127. #define PegRegOpenKeyEx CeRegOpenKeyEx
  128. #define PegRegEnumKeyEx CeRegEnumKeyEx
  129. #define PegRegCreateKeyEx CeRegCreateKeyEx
  130. #define PegRegCloseKey CeRegCloseKey
  131. #define PegRegDeleteKey CeRegDeleteKey
  132. #define PegRegEnumValue CeRegEnumValue
  133. #define PegRegDeleteValue CeRegDeleteValue
  134. #define PegRegQueryInfoKey CeRegQueryInfoKey
  135. #define PegRegQueryValueEx CeRegQueryValueEx
  136. #define PegRegSetValueEx CeRegSetValueEx
  137. #define PegGetStoreInformation CeGetStoreInformation
  138. #define PegGetSystemMetrics CeGetSystemMetrics
  139. #define PegGetDesktopDeviceCaps CeGetDesktopDeviceCaps
  140. #define PegGetSystemInfo CeGetSystemInfo
  141. #define PegSHCreateShortcut CeSHCreateShortcut
  142. #define PegSHGetShortcutTarget CeSHGetShortcutTarget
  143. #define PegCheckPassword CeCheckPassword
  144. #define PegGetFileTime CeGetFileTime
  145. #define PegSetFileTime CeSetFileTime
  146. #define PegGetVersionEx CeGetVersionEx
  147. #define PegGetWindow CeGetWindow
  148. #define PegGetWindowLong CeGetWindowLong
  149. #define PegGetWindowText CeGetWindowText
  150. #define PegGetClassName CeGetClassName
  151. #define PegGlobalMemoryStatus CeGlobalMemoryStatus
  152. #define PegGetSystemPowerStatusEx CeGetSystemPowerStatusEx
  153. #define PegGetTempPath CeGetTempPath
  154. #define PegGetSpecialFolderPath CeGetSpecialFolderPath
  155. #define PegRapiInitEx CeRapiInitEx
  156. #define PegRapiInit CeRapiInit
  157. #define PegRapiUninit CeRapiUninit
  158. #define PegGetLastError CeGetLastError
  159. #define RapiFreeBuffer CeRapiFreeBuffer
  160. #define GetRapiError CeRapiGetError
  161. #endif
  162. #ifdef CONN_INTERNAL
  163. #include <pceapimp.h> // internal defines
  164. #endif
  165. #endif // _CEAPIMAP_H