rapi.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // --------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // Module:
  6. //
  7. // rapi.h
  8. //
  9. // Purpose:
  10. //
  11. // Master include file for Windows CE Remote API
  12. //
  13. // --------------------------------------------------------------------------
  14. #ifndef RAPI_H
  15. #define RAPI_H
  16. #include <windows.h>
  17. #include "rapitypes.h"
  18. #include "irapistream.h"
  19. #ifndef UNDER_CE
  20. STDAPI CeRapiInitEx(RAPIINIT*);
  21. STDAPI CeRapiInit();
  22. STDAPI CeRapiUninit();
  23. STDAPI CeRapiGetError(void);
  24. STDAPI CeRapiFreeBuffer(LPVOID);
  25. STDAPI_( HRESULT ) CeRapiInvoke(LPCWSTR, LPCWSTR,DWORD,BYTE *, DWORD *,BYTE **, IRAPIStream **,DWORD);
  26. STDAPI_(CEOID) CeCreateDatabase (LPWSTR, DWORD, WORD, SORTORDERSPEC*);
  27. STDAPI_(BOOL ) CeDeleteDatabase (CEOID);
  28. STDAPI_(BOOL ) CeDeleteRecord (HANDLE, CEOID);
  29. STDAPI_(HANDLE) CeFindFirstDatabase (DWORD);
  30. STDAPI_(CEOID) CeFindNextDatabase (HANDLE);
  31. STDAPI_(BOOL ) CeOidGetInfo (CEOID, CEOIDINFO*);
  32. STDAPI_(HANDLE) CeOpenDatabase (PCEOID, LPWSTR, CEPROPID, DWORD, HWND);
  33. STDAPI_(CEOID) CeReadRecordProps (HANDLE, DWORD, LPWORD, CEPROPID*, LPBYTE*, LPDWORD);
  34. STDAPI_(CEOID) CeSeekDatabase (HANDLE, DWORD, DWORD, LPDWORD);
  35. STDAPI_(BOOL ) CeSetDatabaseInfo (CEOID, CEDBASEINFO*);
  36. STDAPI_(HANDLE) CeFindFirstFile (LPCWSTR, LPCE_FIND_DATA);
  37. STDAPI_(BOOL ) CeFindNextFile (HANDLE, LPCE_FIND_DATA);
  38. STDAPI_(BOOL ) CeFindClose (HANDLE);
  39. STDAPI_(DWORD ) CeGetFileAttributes (LPCWSTR);
  40. STDAPI_(BOOL ) CeSetFileAttributes (LPCWSTR, DWORD);
  41. STDAPI_(HANDLE) CeCreateFile (LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE);
  42. STDAPI_(BOOL ) CeReadFile (HANDLE, LPVOID, DWORD, LPDWORD, LPOVERLAPPED);
  43. STDAPI_(BOOL ) CeWriteFile (HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED);
  44. STDAPI_(BOOL ) CeCloseHandle (HANDLE);
  45. STDAPI_(BOOL ) CeFindAllFiles (LPCWSTR, DWORD, LPDWORD, LPLPCE_FIND_DATA);
  46. STDAPI_(BOOL ) CeFindAllDatabases (DWORD, WORD, LPWORD, LPLPCEDB_FIND_DATA);
  47. STDAPI_(DWORD ) CeGetLastError (void);
  48. STDAPI_(DWORD ) CeSetFilePointer (HANDLE, LONG, PLONG, DWORD);
  49. STDAPI_(BOOL ) CeSetEndOfFile (HANDLE);
  50. STDAPI_(BOOL ) CeCreateDirectory (LPCWSTR, LPSECURITY_ATTRIBUTES);
  51. STDAPI_(BOOL ) CeRemoveDirectory (LPCWSTR);
  52. STDAPI_(BOOL ) CeCreateProcess (LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD, LPVOID, LPWSTR, LPSTARTUPINFO, LPPROCESS_INFORMATION);
  53. STDAPI_(BOOL ) CeMoveFile (LPCWSTR, LPCWSTR);
  54. STDAPI_(BOOL ) CeCopyFile (LPCWSTR, LPCWSTR, BOOL);
  55. STDAPI_(BOOL ) CeDeleteFile (LPCWSTR);
  56. STDAPI_(DWORD ) CeGetFileSize (HANDLE, LPDWORD);
  57. STDAPI_(LONG ) CeRegOpenKeyEx (HKEY, LPCWSTR, DWORD, REGSAM, PHKEY);
  58. STDAPI_(LONG ) CeRegEnumKeyEx (HKEY, DWORD, LPWSTR, LPDWORD, LPDWORD, LPWSTR, LPDWORD, PFILETIME);
  59. STDAPI_(LONG ) CeRegCreateKeyEx (HKEY, LPCWSTR, DWORD, LPWSTR, DWORD, REGSAM, LPSECURITY_ATTRIBUTES, PHKEY, LPDWORD);
  60. STDAPI_(LONG ) CeRegCloseKey (HKEY);
  61. STDAPI_(LONG ) CeRegDeleteKey (HKEY, LPCWSTR);
  62. STDAPI_(LONG ) CeRegEnumValue (HKEY, DWORD, LPWSTR, LPDWORD, LPDWORD, LPDWORD, LPBYTE, LPDWORD);
  63. STDAPI_(LONG ) CeRegDeleteValue (HKEY, LPCWSTR);
  64. STDAPI_(LONG ) CeRegQueryInfoKey (HKEY, LPWSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, PFILETIME);
  65. STDAPI_(LONG ) CeRegQueryValueEx (HKEY, LPCWSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD);
  66. STDAPI_(LONG ) CeRegSetValueEx (HKEY, LPCWSTR, DWORD, DWORD, LPBYTE, DWORD);
  67. STDAPI_(BOOL ) CeGetStoreInformation(LPSTORE_INFORMATION);
  68. STDAPI_(INT ) CeGetSystemMetrics (INT);
  69. STDAPI_(INT ) CeGetDesktopDeviceCaps(INT);
  70. STDAPI_(VOID ) CeGetSystemInfo (LPSYSTEM_INFO);
  71. STDAPI_(DWORD ) CeSHCreateShortcut (LPWSTR, LPWSTR);
  72. STDAPI_(BOOL ) CeSHGetShortcutTarget(LPWSTR, LPWSTR, INT);
  73. STDAPI_(BOOL ) CeCheckPassword (LPWSTR);
  74. STDAPI_(BOOL ) CeGetFileTime (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME);
  75. STDAPI_(BOOL ) CeSetFileTime (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME);
  76. STDAPI_(BOOL ) CeGetVersionEx (LPCEOSVERSIONINFO);
  77. STDAPI_(HWND ) CeGetWindow (HWND, UINT);
  78. STDAPI_(LONG ) CeGetWindowLong (HWND, int);
  79. STDAPI_(int ) CeGetWindowText (HWND, LPWSTR, int);
  80. STDAPI_(int ) CeGetClassName (HWND, LPWSTR, int);
  81. STDAPI_(VOID ) CeGlobalMemoryStatus (LPMEMORYSTATUS);
  82. STDAPI_(BOOL ) CeGetSystemPowerStatusEx(PSYSTEM_POWER_STATUS_EX, BOOL);
  83. STDAPI_(DWORD ) CeGetTempPath (DWORD, LPWSTR);
  84. STDAPI_(DWORD ) CeGetSpecialFolderPath(int, DWORD, LPWSTR);
  85. STDAPI_(HANDLE) CeFindFirstDatabaseEx (PCEGUID, DWORD);
  86. STDAPI_(CEOID ) CeFindNextDatabaseEx (HANDLE, PCEGUID);
  87. STDAPI_(CEOID ) CeCreateDatabaseEx (PCEGUID, CEDBASEINFO*);
  88. STDAPI_(BOOL ) CeSetDatabaseInfoEx (PCEGUID, CEOID, CEDBASEINFO*);
  89. STDAPI_(HANDLE) CeOpenDatabaseEx (PCEGUID, PCEOID, LPWSTR, CEPROPID, DWORD, CENOTIFYREQUEST *);
  90. STDAPI_(BOOL ) CeDeleteDatabaseEx (PCEGUID, CEOID);
  91. STDAPI_(CEOID ) CeReadRecordPropsEx (HANDLE, DWORD, LPWORD, CEPROPID*, LPBYTE*, LPDWORD, HANDLE);
  92. STDAPI_(CEOID ) CeWriteRecordProps (HANDLE, CEOID, WORD, CEPROPVAL*);
  93. STDAPI_(BOOL ) CeMountDBVol (PCEGUID, LPWSTR, DWORD);
  94. STDAPI_(BOOL ) CeUnmountDBVol (PCEGUID);
  95. STDAPI_(BOOL ) CeFlushDBVol (PCEGUID);
  96. STDAPI_(BOOL ) CeEnumDBVolumes (PCEGUID, LPWSTR, DWORD);
  97. STDAPI_(BOOL ) CeOidGetInfoEx (PCEGUID, CEOID, CEOIDINFO*);
  98. STDAPI CeSyncStart (LPCWSTR);
  99. STDAPI CeSyncStop ();
  100. STDAPI_(BOOL ) CeQueryInstructionSet (DWORD, LPDWORD);
  101. STDAPI_(BOOL ) CeGetDiskFreeSpaceEx (LPCWSTR, ULARGE_INTEGER *, ULARGE_INTEGER *, ULARGE_INTEGER *);
  102. #endif // #ifndef UNDER_CE
  103. #ifndef NO_APIMAP
  104. #include <ceapimap.h>
  105. #endif
  106. #ifdef CONN_INTERNAL
  107. #include <prapi.h> // internal defines
  108. #endif
  109. #endif // #ifndef RAPI_H