rapi2.h 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090
  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* at Fri Apr 22 19:21:11 2005
  4. */
  5. /* Compiler settings for .\RAPI2.idl:
  6. Oicf, W1, Zp8, env=Win32 (32b run)
  7. protocol : dce , ms_ext, c_ext, robust
  8. error checks: allocation ref bounds_check enum stub_data
  9. VC __declspec() decoration level:
  10. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  11. DECLSPEC_UUID(), MIDL_INTERFACE()
  12. */
  13. //@@MIDL_FILE_HEADING( )
  14. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  15. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  16. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  17. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  18. #endif
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21. #ifndef __RPCNDR_H_VERSION__
  22. #error this stub requires an updated version of <rpcndr.h>
  23. #endif // __RPCNDR_H_VERSION__
  24. #ifndef COM_NO_WINDOWS_H
  25. #include "windows.h"
  26. #include "ole2.h"
  27. #endif /*COM_NO_WINDOWS_H*/
  28. #ifndef __RAPI2_h__
  29. #define __RAPI2_h__
  30. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  31. #pragma once
  32. #endif
  33. /* Forward Declarations */
  34. #ifndef __IRAPISession_FWD_DEFINED__
  35. #define __IRAPISession_FWD_DEFINED__
  36. typedef interface IRAPISession IRAPISession;
  37. #endif /* __IRAPISession_FWD_DEFINED__ */
  38. #ifndef __IRAPIDevice_FWD_DEFINED__
  39. #define __IRAPIDevice_FWD_DEFINED__
  40. typedef interface IRAPIDevice IRAPIDevice;
  41. #endif /* __IRAPIDevice_FWD_DEFINED__ */
  42. #ifndef __IRAPIEnumDevices_FWD_DEFINED__
  43. #define __IRAPIEnumDevices_FWD_DEFINED__
  44. typedef interface IRAPIEnumDevices IRAPIEnumDevices;
  45. #endif /* __IRAPIEnumDevices_FWD_DEFINED__ */
  46. #ifndef __IRAPISink_FWD_DEFINED__
  47. #define __IRAPISink_FWD_DEFINED__
  48. typedef interface IRAPISink IRAPISink;
  49. #endif /* __IRAPISink_FWD_DEFINED__ */
  50. #ifndef __IRAPIDesktop_FWD_DEFINED__
  51. #define __IRAPIDesktop_FWD_DEFINED__
  52. typedef interface IRAPIDesktop IRAPIDesktop;
  53. #endif /* __IRAPIDesktop_FWD_DEFINED__ */
  54. #ifndef __RAPI_FWD_DEFINED__
  55. #define __RAPI_FWD_DEFINED__
  56. #ifdef __cplusplus
  57. typedef class RAPI RAPI;
  58. #else
  59. typedef struct RAPI RAPI;
  60. #endif /* __cplusplus */
  61. #endif /* __RAPI_FWD_DEFINED__ */
  62. /* header files for imported files */
  63. #include "oaidl.h"
  64. #include "ocidl.h"
  65. #include "rapitypes.h"
  66. #include "rapitypes2.h"
  67. #include "irapistream.h"
  68. #ifdef __cplusplus
  69. extern "C"{
  70. #endif
  71. void * __RPC_USER MIDL_user_allocate(size_t);
  72. void __RPC_USER MIDL_user_free( void * );
  73. /* interface __MIDL_itf_RAPI2_0000 */
  74. /* [local] */
  75. #define NO_APIMAP 1
  76. #include "rapi.h"
  77. #ifndef UNDER_CE
  78. extern RPC_IF_HANDLE __MIDL_itf_RAPI2_0000_v0_0_c_ifspec;
  79. extern RPC_IF_HANDLE __MIDL_itf_RAPI2_0000_v0_0_s_ifspec;
  80. #ifndef __IRAPISession_INTERFACE_DEFINED__
  81. #define __IRAPISession_INTERFACE_DEFINED__
  82. /* interface IRAPISession */
  83. /* [local][unique][uuid][object] */
  84. EXTERN_C const IID IID_IRAPISession;
  85. #if defined(__cplusplus) && !defined(CINTERFACE)
  86. MIDL_INTERFACE("76a78b7d-8e54-4c06-ac38-459e6a1ab5e3")
  87. IRAPISession : public IUnknown
  88. {
  89. public:
  90. virtual HRESULT STDMETHODCALLTYPE CeRapiInit( void) = 0;
  91. virtual HRESULT STDMETHODCALLTYPE CeRapiUninit( void) = 0;
  92. virtual DWORD STDMETHODCALLTYPE CeGetLastError( void) = 0;
  93. virtual HRESULT STDMETHODCALLTYPE CeRapiGetError( void) = 0;
  94. virtual HRESULT STDMETHODCALLTYPE CeRapiFreeBuffer(
  95. void *Buffer) = 0;
  96. virtual HANDLE STDMETHODCALLTYPE CeFindFirstFile(
  97. LPCWSTR FileName,
  98. LPCE_FIND_DATA FindData) = 0;
  99. virtual BOOL STDMETHODCALLTYPE CeFindNextFile(
  100. HANDLE FoundFile,
  101. LPCE_FIND_DATA FindData) = 0;
  102. virtual BOOL STDMETHODCALLTYPE CeFindClose(
  103. HANDLE FoundFile) = 0;
  104. virtual DWORD STDMETHODCALLTYPE CeGetFileAttributes(
  105. LPCWSTR FileName) = 0;
  106. virtual BOOL STDMETHODCALLTYPE CeSetFileAttributes(
  107. LPCWSTR FileName,
  108. DWORD FileAttrib) = 0;
  109. virtual HANDLE STDMETHODCALLTYPE CeCreateFile(
  110. LPCWSTR lpFileName,
  111. DWORD dwDesiredAccess,
  112. DWORD dwShareMode,
  113. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  114. DWORD dwCreationDistribution,
  115. DWORD dwFlagsAndAttributes,
  116. HANDLE hTemplateFile) = 0;
  117. virtual BOOL STDMETHODCALLTYPE CeReadFile(
  118. HANDLE hFile,
  119. LPVOID lpBuffer,
  120. DWORD nNumberOfBytesToRead,
  121. LPDWORD lpNumberOfBytesRead,
  122. LPOVERLAPPED lpOverlapped) = 0;
  123. virtual BOOL STDMETHODCALLTYPE CeWriteFile(
  124. HANDLE hFile,
  125. LPCVOID lpBuffer,
  126. DWORD nNumberOfBytesToWrite,
  127. LPDWORD lpNumberOfBytesWritten,
  128. LPOVERLAPPED lpOverlapped) = 0;
  129. virtual BOOL STDMETHODCALLTYPE CeCloseHandle(
  130. HANDLE hObject) = 0;
  131. virtual BOOL STDMETHODCALLTYPE CeFindAllFiles(
  132. LPCWSTR Path,
  133. DWORD Flags,
  134. LPDWORD pFoundCount,
  135. LPLPCE_FIND_DATA ppFindDataArray) = 0;
  136. virtual HANDLE STDMETHODCALLTYPE CeFindFirstDatabase(
  137. DWORD dwDbaseType) = 0;
  138. virtual CEOID STDMETHODCALLTYPE CeFindNextDatabase(
  139. HANDLE hEnum) = 0;
  140. virtual BOOL STDMETHODCALLTYPE CeOidGetInfo(
  141. CEOID oid,
  142. CEOIDINFO *oidInfo) = 0;
  143. virtual CEOID STDMETHODCALLTYPE CeCreateDatabase(
  144. LPWSTR lpszName,
  145. DWORD dwDbaseType,
  146. WORD cNumSortOrder,
  147. SORTORDERSPEC *rgSortSpecs) = 0;
  148. virtual HANDLE STDMETHODCALLTYPE CeOpenDatabase(
  149. PCEOID poid,
  150. LPWSTR lpszName,
  151. CEPROPID propid,
  152. DWORD dwFlags,
  153. HWND hwndNotify) = 0;
  154. virtual BOOL STDMETHODCALLTYPE CeDeleteDatabase(
  155. CEOID oidDbase) = 0;
  156. virtual CEOID STDMETHODCALLTYPE CeReadRecordProps(
  157. HANDLE hDbase,
  158. DWORD dwFlags,
  159. LPWORD lpcPropID,
  160. CEPROPID *rgPropID,
  161. LPBYTE *lplpBuffer,
  162. LPDWORD lpcbBuffer) = 0;
  163. virtual CEOID STDMETHODCALLTYPE CeWriteRecordProps(
  164. HANDLE hDbase,
  165. CEOID oidRecord,
  166. WORD cPropID,
  167. CEPROPVAL *rgPropVal) = 0;
  168. virtual BOOL STDMETHODCALLTYPE CeDeleteRecord(
  169. HANDLE hDatabase,
  170. CEOID oidRecord) = 0;
  171. virtual CEOID STDMETHODCALLTYPE CeSeekDatabase(
  172. HANDLE hDatabase,
  173. DWORD dwSeekType,
  174. DWORD dwValue,
  175. LPDWORD lpdwIndex) = 0;
  176. virtual BOOL STDMETHODCALLTYPE CeSetDatabaseInfo(
  177. CEOID oidDbase,
  178. CEDBASEINFO *pNewInfo) = 0;
  179. virtual DWORD STDMETHODCALLTYPE CeSetFilePointer(
  180. HANDLE hFile,
  181. LONG lDistanceToMove,
  182. PLONG lpDistanceToMoveHigh,
  183. DWORD dwMoveMethod) = 0;
  184. virtual BOOL STDMETHODCALLTYPE CeSetEndOfFile(
  185. HANDLE hFile) = 0;
  186. virtual BOOL STDMETHODCALLTYPE CeCreateDirectory(
  187. LPCWSTR lpPathName,
  188. LPSECURITY_ATTRIBUTES lpSecurityAttributes) = 0;
  189. virtual BOOL STDMETHODCALLTYPE CeRemoveDirectory(
  190. LPCWSTR lpPathName) = 0;
  191. virtual BOOL STDMETHODCALLTYPE CeCreateProcess(
  192. LPCWSTR lpszImageName,
  193. LPCWSTR lpszCmdLine,
  194. LPSECURITY_ATTRIBUTES lpsaProcess,
  195. LPSECURITY_ATTRIBUTES lpsaThread,
  196. BOOL fInheritHandles,
  197. DWORD fdwCreate,
  198. LPVOID lpvEnvironment,
  199. LPWSTR lpszCurDir,
  200. LPSTARTUPINFOW lpsiStartInfo,
  201. LPPROCESS_INFORMATION lppiProcInfo) = 0;
  202. virtual BOOL STDMETHODCALLTYPE CeMoveFile(
  203. LPCWSTR lpExistingFileName,
  204. LPCWSTR lpNewFileName) = 0;
  205. virtual BOOL STDMETHODCALLTYPE CeCopyFile(
  206. LPCWSTR lpExistingFileName,
  207. LPCWSTR lpNewFileName,
  208. BOOL bFailIfExists) = 0;
  209. virtual BOOL STDMETHODCALLTYPE CeDeleteFile(
  210. LPCWSTR FileName) = 0;
  211. virtual DWORD STDMETHODCALLTYPE CeGetFileSize(
  212. HANDLE hFile,
  213. LPDWORD lpFileSizeHigh) = 0;
  214. virtual LONG STDMETHODCALLTYPE CeRegOpenKeyEx(
  215. HKEY hKey,
  216. LPCWSTR lpszSubKey,
  217. DWORD dwReserved,
  218. REGSAM samDesired,
  219. PHKEY phkResult) = 0;
  220. virtual LONG STDMETHODCALLTYPE CeRegEnumKeyEx(
  221. HKEY hKey,
  222. DWORD dwIndex,
  223. LPWSTR lpName,
  224. LPDWORD lpcbName,
  225. LPDWORD lpReserved,
  226. LPWSTR lpClass,
  227. LPDWORD lpcbClass,
  228. PFILETIME lpftLastWriteTime) = 0;
  229. virtual LONG STDMETHODCALLTYPE CeRegCreateKeyEx(
  230. HKEY hKey,
  231. LPCWSTR lpszSubKey,
  232. DWORD dwReserved,
  233. LPWSTR lpszClass,
  234. DWORD fdwOptions,
  235. REGSAM samDesired,
  236. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  237. PHKEY phkResult,
  238. LPDWORD lpdwDisposition) = 0;
  239. virtual LONG STDMETHODCALLTYPE CeRegCloseKey(
  240. HKEY hKey) = 0;
  241. virtual LONG STDMETHODCALLTYPE CeRegDeleteKey(
  242. HKEY hKey,
  243. LPCWSTR lpszSubKey) = 0;
  244. virtual LONG STDMETHODCALLTYPE CeRegEnumValue(
  245. HKEY hKey,
  246. DWORD dwIndex,
  247. LPWSTR lpszValueName,
  248. LPDWORD lpcbValueName,
  249. LPDWORD lpReserved,
  250. LPDWORD lpType,
  251. LPBYTE lpData,
  252. LPDWORD lpcbData) = 0;
  253. virtual LONG STDMETHODCALLTYPE CeRegDeleteValue(
  254. HKEY hKey,
  255. LPCWSTR lpszValueName) = 0;
  256. virtual LONG STDMETHODCALLTYPE CeRegQueryInfoKey(
  257. HKEY hKey,
  258. LPWSTR lpClass,
  259. LPDWORD lpcbClass,
  260. LPDWORD lpReserved,
  261. LPDWORD lpcSubKeys,
  262. LPDWORD lpcbMaxSubKeyLen,
  263. LPDWORD lpcbMaxClassLen,
  264. LPDWORD lpcValues,
  265. LPDWORD lpcbMaxValueNameLen,
  266. LPDWORD lpcbMaxValueLen,
  267. LPDWORD lpcbSecurityDescriptor,
  268. PFILETIME lpftLastWriteTime) = 0;
  269. virtual LONG STDMETHODCALLTYPE CeRegQueryValueEx(
  270. HKEY hKey,
  271. LPCWSTR lpValueName,
  272. LPDWORD lpReserved,
  273. LPDWORD lpType,
  274. LPBYTE lpData,
  275. LPDWORD lpcbData) = 0;
  276. virtual LONG STDMETHODCALLTYPE CeRegSetValueEx(
  277. HKEY hKey,
  278. LPCWSTR lpValueName,
  279. DWORD Reserved,
  280. DWORD dwType,
  281. BYTE *lpData,
  282. DWORD cbData) = 0;
  283. virtual BOOL STDMETHODCALLTYPE CeGetStoreInformation(
  284. LPSTORE_INFORMATION lpsi) = 0;
  285. virtual INT STDMETHODCALLTYPE CeGetSystemMetrics(
  286. INT nIndex) = 0;
  287. virtual INT STDMETHODCALLTYPE CeGetDesktopDeviceCaps(
  288. INT nIndex) = 0;
  289. virtual BOOL STDMETHODCALLTYPE CeFindAllDatabases(
  290. DWORD DbaseType,
  291. WORD Flags,
  292. LPWORD cFindData,
  293. LPLPCEDB_FIND_DATA ppFindData) = 0;
  294. virtual void STDMETHODCALLTYPE CeGetSystemInfo(
  295. LPSYSTEM_INFO lpSystemInfo) = 0;
  296. virtual BOOL STDMETHODCALLTYPE CeSHCreateShortcut(
  297. LPWSTR lpszShortcut,
  298. LPWSTR lpszTarget) = 0;
  299. virtual BOOL STDMETHODCALLTYPE CeSHGetShortcutTarget(
  300. LPWSTR lpszShortcut,
  301. LPWSTR lpszTarget,
  302. int cbMax) = 0;
  303. virtual BOOL STDMETHODCALLTYPE CeCheckPassword(
  304. LPWSTR lpszPassword) = 0;
  305. virtual BOOL STDMETHODCALLTYPE CeGetFileTime(
  306. HANDLE hFile,
  307. LPFILETIME lpCreationTime,
  308. LPFILETIME lpLastAccessTime,
  309. LPFILETIME lpLastWriteTime) = 0;
  310. virtual BOOL STDMETHODCALLTYPE CeSetFileTime(
  311. HANDLE hFile,
  312. FILETIME *lpCreationTime,
  313. FILETIME *lpLastAccessTime,
  314. FILETIME *lpLastWriteTime) = 0;
  315. virtual BOOL STDMETHODCALLTYPE CeGetVersionEx(
  316. LPCEOSVERSIONINFO lpVersionInformation) = 0;
  317. virtual HWND STDMETHODCALLTYPE CeGetWindow(
  318. HWND hWnd,
  319. UINT uCmd) = 0;
  320. virtual LONG STDMETHODCALLTYPE CeGetWindowLong(
  321. HWND hWnd,
  322. int nIndex) = 0;
  323. virtual INT STDMETHODCALLTYPE CeGetWindowText(
  324. HWND hWnd,
  325. LPWSTR lpString,
  326. int nMaxCount) = 0;
  327. virtual INT STDMETHODCALLTYPE CeGetClassName(
  328. HWND hWnd,
  329. LPWSTR lpClassName,
  330. int nMaxCount) = 0;
  331. virtual void STDMETHODCALLTYPE CeGlobalMemoryStatus(
  332. LPMEMORYSTATUS lpmst) = 0;
  333. virtual BOOL STDMETHODCALLTYPE CeGetSystemPowerStatusEx(
  334. PSYSTEM_POWER_STATUS_EX pstatus,
  335. BOOL fUpdate) = 0;
  336. virtual DWORD STDMETHODCALLTYPE CeGetTempPath(
  337. DWORD nBufferLength,
  338. LPWSTR lpBuffer) = 0;
  339. virtual DWORD STDMETHODCALLTYPE CeGetSpecialFolderPath(
  340. int nFolder,
  341. DWORD nBufferLength,
  342. LPWSTR lpBuffer) = 0;
  343. virtual HRESULT STDMETHODCALLTYPE CeRapiInvoke(
  344. LPCWSTR pDllPath,
  345. LPCWSTR pFunctionName,
  346. DWORD cbInput,
  347. BYTE *pInput,
  348. DWORD *pcbOutput,
  349. BYTE **ppOutput,
  350. IRAPIStream **ppIRAPIStream,
  351. DWORD dwReserved) = 0;
  352. virtual HANDLE STDMETHODCALLTYPE CeFindFirstDatabaseEx(
  353. PCEGUID pguid,
  354. DWORD dwDbaseType) = 0;
  355. virtual CEOID STDMETHODCALLTYPE CeFindNextDatabaseEx(
  356. HANDLE hEnum,
  357. PCEGUID pguid) = 0;
  358. virtual CEOID STDMETHODCALLTYPE CeCreateDatabaseEx(
  359. PCEGUID pceguid,
  360. CEDBASEINFO *lpCEDBInfo) = 0;
  361. virtual BOOL STDMETHODCALLTYPE CeSetDatabaseInfoEx(
  362. PCEGUID pceguid,
  363. CEOID oidDbase,
  364. CEDBASEINFO *pNewInfo) = 0;
  365. virtual HANDLE STDMETHODCALLTYPE CeOpenDatabaseEx(
  366. PCEGUID pceguid,
  367. PCEOID poid,
  368. LPWSTR lpszName,
  369. CEPROPID propid,
  370. DWORD dwFlags,
  371. CENOTIFYREQUEST *pReq) = 0;
  372. virtual BOOL STDMETHODCALLTYPE CeDeleteDatabaseEx(
  373. PCEGUID pceguid,
  374. CEOID oidDbase) = 0;
  375. virtual CEOID STDMETHODCALLTYPE CeReadRecordPropsEx(
  376. HANDLE hDbase,
  377. DWORD dwFlags,
  378. LPWORD lpcPropID,
  379. CEPROPID *rgPropID,
  380. LPBYTE *lplpBuffer,
  381. LPDWORD lpcbBuffer,
  382. HANDLE hHeap) = 0;
  383. virtual BOOL STDMETHODCALLTYPE CeMountDBVol(
  384. PCEGUID pceguid,
  385. LPWSTR lpszDBVol,
  386. DWORD dwFlags) = 0;
  387. virtual BOOL STDMETHODCALLTYPE CeUnmountDBVol(
  388. PCEGUID pceguid) = 0;
  389. virtual BOOL STDMETHODCALLTYPE CeFlushDBVol(
  390. PCEGUID pceguid) = 0;
  391. virtual BOOL STDMETHODCALLTYPE CeEnumDBVolumes(
  392. PCEGUID pceguid,
  393. LPWSTR lpBuf,
  394. DWORD dwNumChars) = 0;
  395. virtual BOOL STDMETHODCALLTYPE CeOidGetInfoEx(
  396. PCEGUID pceguid,
  397. CEOID oid,
  398. CEOIDINFO *oidInfo) = 0;
  399. virtual HRESULT STDMETHODCALLTYPE CeSyncStart(
  400. LPCWSTR szCommand) = 0;
  401. virtual HRESULT STDMETHODCALLTYPE CeSyncStop( void) = 0;
  402. virtual BOOL STDMETHODCALLTYPE CeQueryInstructionSet(
  403. DWORD dwInstructionSet,
  404. LPDWORD lpdwCurrentInstructionSet) = 0;
  405. virtual BOOL STDMETHODCALLTYPE CeGetDiskFreeSpaceEx(
  406. LPCWSTR lpDirectoryName,
  407. ULARGE_INTEGER *lpFreeBytesAvailableToCaller,
  408. ULARGE_INTEGER *lpTotalNumberOfBytes,
  409. ULARGE_INTEGER *lpTotalNumberOfFreeBytes) = 0;
  410. };
  411. #else /* C style interface */
  412. typedef struct IRAPISessionVtbl
  413. {
  414. BEGIN_INTERFACE
  415. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  416. IRAPISession * This,
  417. /* [in] */ REFIID riid,
  418. /* [iid_is][out] */ void **ppvObject);
  419. ULONG ( STDMETHODCALLTYPE *AddRef )(
  420. IRAPISession * This);
  421. ULONG ( STDMETHODCALLTYPE *Release )(
  422. IRAPISession * This);
  423. HRESULT ( STDMETHODCALLTYPE *CeRapiInit )(
  424. IRAPISession * This);
  425. HRESULT ( STDMETHODCALLTYPE *CeRapiUninit )(
  426. IRAPISession * This);
  427. DWORD ( STDMETHODCALLTYPE *CeGetLastError )(
  428. IRAPISession * This);
  429. HRESULT ( STDMETHODCALLTYPE *CeRapiGetError )(
  430. IRAPISession * This);
  431. HRESULT ( STDMETHODCALLTYPE *CeRapiFreeBuffer )(
  432. IRAPISession * This,
  433. void *Buffer);
  434. HANDLE ( STDMETHODCALLTYPE *CeFindFirstFile )(
  435. IRAPISession * This,
  436. LPCWSTR FileName,
  437. LPCE_FIND_DATA FindData);
  438. BOOL ( STDMETHODCALLTYPE *CeFindNextFile )(
  439. IRAPISession * This,
  440. HANDLE FoundFile,
  441. LPCE_FIND_DATA FindData);
  442. BOOL ( STDMETHODCALLTYPE *CeFindClose )(
  443. IRAPISession * This,
  444. HANDLE FoundFile);
  445. DWORD ( STDMETHODCALLTYPE *CeGetFileAttributes )(
  446. IRAPISession * This,
  447. LPCWSTR FileName);
  448. BOOL ( STDMETHODCALLTYPE *CeSetFileAttributes )(
  449. IRAPISession * This,
  450. LPCWSTR FileName,
  451. DWORD FileAttrib);
  452. HANDLE ( STDMETHODCALLTYPE *CeCreateFile )(
  453. IRAPISession * This,
  454. LPCWSTR lpFileName,
  455. DWORD dwDesiredAccess,
  456. DWORD dwShareMode,
  457. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  458. DWORD dwCreationDistribution,
  459. DWORD dwFlagsAndAttributes,
  460. HANDLE hTemplateFile);
  461. BOOL ( STDMETHODCALLTYPE *CeReadFile )(
  462. IRAPISession * This,
  463. HANDLE hFile,
  464. LPVOID lpBuffer,
  465. DWORD nNumberOfBytesToRead,
  466. LPDWORD lpNumberOfBytesRead,
  467. LPOVERLAPPED lpOverlapped);
  468. BOOL ( STDMETHODCALLTYPE *CeWriteFile )(
  469. IRAPISession * This,
  470. HANDLE hFile,
  471. LPCVOID lpBuffer,
  472. DWORD nNumberOfBytesToWrite,
  473. LPDWORD lpNumberOfBytesWritten,
  474. LPOVERLAPPED lpOverlapped);
  475. BOOL ( STDMETHODCALLTYPE *CeCloseHandle )(
  476. IRAPISession * This,
  477. HANDLE hObject);
  478. BOOL ( STDMETHODCALLTYPE *CeFindAllFiles )(
  479. IRAPISession * This,
  480. LPCWSTR Path,
  481. DWORD Flags,
  482. LPDWORD pFoundCount,
  483. LPLPCE_FIND_DATA ppFindDataArray);
  484. HANDLE ( STDMETHODCALLTYPE *CeFindFirstDatabase )(
  485. IRAPISession * This,
  486. DWORD dwDbaseType);
  487. CEOID ( STDMETHODCALLTYPE *CeFindNextDatabase )(
  488. IRAPISession * This,
  489. HANDLE hEnum);
  490. BOOL ( STDMETHODCALLTYPE *CeOidGetInfo )(
  491. IRAPISession * This,
  492. CEOID oid,
  493. CEOIDINFO *oidInfo);
  494. CEOID ( STDMETHODCALLTYPE *CeCreateDatabase )(
  495. IRAPISession * This,
  496. LPWSTR lpszName,
  497. DWORD dwDbaseType,
  498. WORD cNumSortOrder,
  499. SORTORDERSPEC *rgSortSpecs);
  500. HANDLE ( STDMETHODCALLTYPE *CeOpenDatabase )(
  501. IRAPISession * This,
  502. PCEOID poid,
  503. LPWSTR lpszName,
  504. CEPROPID propid,
  505. DWORD dwFlags,
  506. HWND hwndNotify);
  507. BOOL ( STDMETHODCALLTYPE *CeDeleteDatabase )(
  508. IRAPISession * This,
  509. CEOID oidDbase);
  510. CEOID ( STDMETHODCALLTYPE *CeReadRecordProps )(
  511. IRAPISession * This,
  512. HANDLE hDbase,
  513. DWORD dwFlags,
  514. LPWORD lpcPropID,
  515. CEPROPID *rgPropID,
  516. LPBYTE *lplpBuffer,
  517. LPDWORD lpcbBuffer);
  518. CEOID ( STDMETHODCALLTYPE *CeWriteRecordProps )(
  519. IRAPISession * This,
  520. HANDLE hDbase,
  521. CEOID oidRecord,
  522. WORD cPropID,
  523. CEPROPVAL *rgPropVal);
  524. BOOL ( STDMETHODCALLTYPE *CeDeleteRecord )(
  525. IRAPISession * This,
  526. HANDLE hDatabase,
  527. CEOID oidRecord);
  528. CEOID ( STDMETHODCALLTYPE *CeSeekDatabase )(
  529. IRAPISession * This,
  530. HANDLE hDatabase,
  531. DWORD dwSeekType,
  532. DWORD dwValue,
  533. LPDWORD lpdwIndex);
  534. BOOL ( STDMETHODCALLTYPE *CeSetDatabaseInfo )(
  535. IRAPISession * This,
  536. CEOID oidDbase,
  537. CEDBASEINFO *pNewInfo);
  538. DWORD ( STDMETHODCALLTYPE *CeSetFilePointer )(
  539. IRAPISession * This,
  540. HANDLE hFile,
  541. LONG lDistanceToMove,
  542. PLONG lpDistanceToMoveHigh,
  543. DWORD dwMoveMethod);
  544. BOOL ( STDMETHODCALLTYPE *CeSetEndOfFile )(
  545. IRAPISession * This,
  546. HANDLE hFile);
  547. BOOL ( STDMETHODCALLTYPE *CeCreateDirectory )(
  548. IRAPISession * This,
  549. LPCWSTR lpPathName,
  550. LPSECURITY_ATTRIBUTES lpSecurityAttributes);
  551. BOOL ( STDMETHODCALLTYPE *CeRemoveDirectory )(
  552. IRAPISession * This,
  553. LPCWSTR lpPathName);
  554. BOOL ( STDMETHODCALLTYPE *CeCreateProcess )(
  555. IRAPISession * This,
  556. LPCWSTR lpszImageName,
  557. LPCWSTR lpszCmdLine,
  558. LPSECURITY_ATTRIBUTES lpsaProcess,
  559. LPSECURITY_ATTRIBUTES lpsaThread,
  560. BOOL fInheritHandles,
  561. DWORD fdwCreate,
  562. LPVOID lpvEnvironment,
  563. LPWSTR lpszCurDir,
  564. LPSTARTUPINFOW lpsiStartInfo,
  565. LPPROCESS_INFORMATION lppiProcInfo);
  566. BOOL ( STDMETHODCALLTYPE *CeMoveFile )(
  567. IRAPISession * This,
  568. LPCWSTR lpExistingFileName,
  569. LPCWSTR lpNewFileName);
  570. BOOL ( STDMETHODCALLTYPE *CeCopyFile )(
  571. IRAPISession * This,
  572. LPCWSTR lpExistingFileName,
  573. LPCWSTR lpNewFileName,
  574. BOOL bFailIfExists);
  575. BOOL ( STDMETHODCALLTYPE *CeDeleteFile )(
  576. IRAPISession * This,
  577. LPCWSTR FileName);
  578. DWORD ( STDMETHODCALLTYPE *CeGetFileSize )(
  579. IRAPISession * This,
  580. HANDLE hFile,
  581. LPDWORD lpFileSizeHigh);
  582. LONG ( STDMETHODCALLTYPE *CeRegOpenKeyEx )(
  583. IRAPISession * This,
  584. HKEY hKey,
  585. LPCWSTR lpszSubKey,
  586. DWORD dwReserved,
  587. REGSAM samDesired,
  588. PHKEY phkResult);
  589. LONG ( STDMETHODCALLTYPE *CeRegEnumKeyEx )(
  590. IRAPISession * This,
  591. HKEY hKey,
  592. DWORD dwIndex,
  593. LPWSTR lpName,
  594. LPDWORD lpcbName,
  595. LPDWORD lpReserved,
  596. LPWSTR lpClass,
  597. LPDWORD lpcbClass,
  598. PFILETIME lpftLastWriteTime);
  599. LONG ( STDMETHODCALLTYPE *CeRegCreateKeyEx )(
  600. IRAPISession * This,
  601. HKEY hKey,
  602. LPCWSTR lpszSubKey,
  603. DWORD dwReserved,
  604. LPWSTR lpszClass,
  605. DWORD fdwOptions,
  606. REGSAM samDesired,
  607. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  608. PHKEY phkResult,
  609. LPDWORD lpdwDisposition);
  610. LONG ( STDMETHODCALLTYPE *CeRegCloseKey )(
  611. IRAPISession * This,
  612. HKEY hKey);
  613. LONG ( STDMETHODCALLTYPE *CeRegDeleteKey )(
  614. IRAPISession * This,
  615. HKEY hKey,
  616. LPCWSTR lpszSubKey);
  617. LONG ( STDMETHODCALLTYPE *CeRegEnumValue )(
  618. IRAPISession * This,
  619. HKEY hKey,
  620. DWORD dwIndex,
  621. LPWSTR lpszValueName,
  622. LPDWORD lpcbValueName,
  623. LPDWORD lpReserved,
  624. LPDWORD lpType,
  625. LPBYTE lpData,
  626. LPDWORD lpcbData);
  627. LONG ( STDMETHODCALLTYPE *CeRegDeleteValue )(
  628. IRAPISession * This,
  629. HKEY hKey,
  630. LPCWSTR lpszValueName);
  631. LONG ( STDMETHODCALLTYPE *CeRegQueryInfoKey )(
  632. IRAPISession * This,
  633. HKEY hKey,
  634. LPWSTR lpClass,
  635. LPDWORD lpcbClass,
  636. LPDWORD lpReserved,
  637. LPDWORD lpcSubKeys,
  638. LPDWORD lpcbMaxSubKeyLen,
  639. LPDWORD lpcbMaxClassLen,
  640. LPDWORD lpcValues,
  641. LPDWORD lpcbMaxValueNameLen,
  642. LPDWORD lpcbMaxValueLen,
  643. LPDWORD lpcbSecurityDescriptor,
  644. PFILETIME lpftLastWriteTime);
  645. LONG ( STDMETHODCALLTYPE *CeRegQueryValueEx )(
  646. IRAPISession * This,
  647. HKEY hKey,
  648. LPCWSTR lpValueName,
  649. LPDWORD lpReserved,
  650. LPDWORD lpType,
  651. LPBYTE lpData,
  652. LPDWORD lpcbData);
  653. LONG ( STDMETHODCALLTYPE *CeRegSetValueEx )(
  654. IRAPISession * This,
  655. HKEY hKey,
  656. LPCWSTR lpValueName,
  657. DWORD Reserved,
  658. DWORD dwType,
  659. BYTE *lpData,
  660. DWORD cbData);
  661. BOOL ( STDMETHODCALLTYPE *CeGetStoreInformation )(
  662. IRAPISession * This,
  663. LPSTORE_INFORMATION lpsi);
  664. INT ( STDMETHODCALLTYPE *CeGetSystemMetrics )(
  665. IRAPISession * This,
  666. INT nIndex);
  667. INT ( STDMETHODCALLTYPE *CeGetDesktopDeviceCaps )(
  668. IRAPISession * This,
  669. INT nIndex);
  670. BOOL ( STDMETHODCALLTYPE *CeFindAllDatabases )(
  671. IRAPISession * This,
  672. DWORD DbaseType,
  673. WORD Flags,
  674. LPWORD cFindData,
  675. LPLPCEDB_FIND_DATA ppFindData);
  676. void ( STDMETHODCALLTYPE *CeGetSystemInfo )(
  677. IRAPISession * This,
  678. LPSYSTEM_INFO lpSystemInfo);
  679. BOOL ( STDMETHODCALLTYPE *CeSHCreateShortcut )(
  680. IRAPISession * This,
  681. LPWSTR lpszShortcut,
  682. LPWSTR lpszTarget);
  683. BOOL ( STDMETHODCALLTYPE *CeSHGetShortcutTarget )(
  684. IRAPISession * This,
  685. LPWSTR lpszShortcut,
  686. LPWSTR lpszTarget,
  687. int cbMax);
  688. BOOL ( STDMETHODCALLTYPE *CeCheckPassword )(
  689. IRAPISession * This,
  690. LPWSTR lpszPassword);
  691. BOOL ( STDMETHODCALLTYPE *CeGetFileTime )(
  692. IRAPISession * This,
  693. HANDLE hFile,
  694. LPFILETIME lpCreationTime,
  695. LPFILETIME lpLastAccessTime,
  696. LPFILETIME lpLastWriteTime);
  697. BOOL ( STDMETHODCALLTYPE *CeSetFileTime )(
  698. IRAPISession * This,
  699. HANDLE hFile,
  700. FILETIME *lpCreationTime,
  701. FILETIME *lpLastAccessTime,
  702. FILETIME *lpLastWriteTime);
  703. BOOL ( STDMETHODCALLTYPE *CeGetVersionEx )(
  704. IRAPISession * This,
  705. LPCEOSVERSIONINFO lpVersionInformation);
  706. HWND ( STDMETHODCALLTYPE *CeGetWindow )(
  707. IRAPISession * This,
  708. HWND hWnd,
  709. UINT uCmd);
  710. LONG ( STDMETHODCALLTYPE *CeGetWindowLong )(
  711. IRAPISession * This,
  712. HWND hWnd,
  713. int nIndex);
  714. INT ( STDMETHODCALLTYPE *CeGetWindowText )(
  715. IRAPISession * This,
  716. HWND hWnd,
  717. LPWSTR lpString,
  718. int nMaxCount);
  719. INT ( STDMETHODCALLTYPE *CeGetClassName )(
  720. IRAPISession * This,
  721. HWND hWnd,
  722. LPWSTR lpClassName,
  723. int nMaxCount);
  724. void ( STDMETHODCALLTYPE *CeGlobalMemoryStatus )(
  725. IRAPISession * This,
  726. LPMEMORYSTATUS lpmst);
  727. BOOL ( STDMETHODCALLTYPE *CeGetSystemPowerStatusEx )(
  728. IRAPISession * This,
  729. PSYSTEM_POWER_STATUS_EX pstatus,
  730. BOOL fUpdate);
  731. DWORD ( STDMETHODCALLTYPE *CeGetTempPath )(
  732. IRAPISession * This,
  733. DWORD nBufferLength,
  734. LPWSTR lpBuffer);
  735. DWORD ( STDMETHODCALLTYPE *CeGetSpecialFolderPath )(
  736. IRAPISession * This,
  737. int nFolder,
  738. DWORD nBufferLength,
  739. LPWSTR lpBuffer);
  740. HRESULT ( STDMETHODCALLTYPE *CeRapiInvoke )(
  741. IRAPISession * This,
  742. LPCWSTR pDllPath,
  743. LPCWSTR pFunctionName,
  744. DWORD cbInput,
  745. BYTE *pInput,
  746. DWORD *pcbOutput,
  747. BYTE **ppOutput,
  748. IRAPIStream **ppIRAPIStream,
  749. DWORD dwReserved);
  750. HANDLE ( STDMETHODCALLTYPE *CeFindFirstDatabaseEx )(
  751. IRAPISession * This,
  752. PCEGUID pguid,
  753. DWORD dwDbaseType);
  754. CEOID ( STDMETHODCALLTYPE *CeFindNextDatabaseEx )(
  755. IRAPISession * This,
  756. HANDLE hEnum,
  757. PCEGUID pguid);
  758. CEOID ( STDMETHODCALLTYPE *CeCreateDatabaseEx )(
  759. IRAPISession * This,
  760. PCEGUID pceguid,
  761. CEDBASEINFO *lpCEDBInfo);
  762. BOOL ( STDMETHODCALLTYPE *CeSetDatabaseInfoEx )(
  763. IRAPISession * This,
  764. PCEGUID pceguid,
  765. CEOID oidDbase,
  766. CEDBASEINFO *pNewInfo);
  767. HANDLE ( STDMETHODCALLTYPE *CeOpenDatabaseEx )(
  768. IRAPISession * This,
  769. PCEGUID pceguid,
  770. PCEOID poid,
  771. LPWSTR lpszName,
  772. CEPROPID propid,
  773. DWORD dwFlags,
  774. CENOTIFYREQUEST *pReq);
  775. BOOL ( STDMETHODCALLTYPE *CeDeleteDatabaseEx )(
  776. IRAPISession * This,
  777. PCEGUID pceguid,
  778. CEOID oidDbase);
  779. CEOID ( STDMETHODCALLTYPE *CeReadRecordPropsEx )(
  780. IRAPISession * This,
  781. HANDLE hDbase,
  782. DWORD dwFlags,
  783. LPWORD lpcPropID,
  784. CEPROPID *rgPropID,
  785. LPBYTE *lplpBuffer,
  786. LPDWORD lpcbBuffer,
  787. HANDLE hHeap);
  788. BOOL ( STDMETHODCALLTYPE *CeMountDBVol )(
  789. IRAPISession * This,
  790. PCEGUID pceguid,
  791. LPWSTR lpszDBVol,
  792. DWORD dwFlags);
  793. BOOL ( STDMETHODCALLTYPE *CeUnmountDBVol )(
  794. IRAPISession * This,
  795. PCEGUID pceguid);
  796. BOOL ( STDMETHODCALLTYPE *CeFlushDBVol )(
  797. IRAPISession * This,
  798. PCEGUID pceguid);
  799. BOOL ( STDMETHODCALLTYPE *CeEnumDBVolumes )(
  800. IRAPISession * This,
  801. PCEGUID pceguid,
  802. LPWSTR lpBuf,
  803. DWORD dwNumChars);
  804. BOOL ( STDMETHODCALLTYPE *CeOidGetInfoEx )(
  805. IRAPISession * This,
  806. PCEGUID pceguid,
  807. CEOID oid,
  808. CEOIDINFO *oidInfo);
  809. HRESULT ( STDMETHODCALLTYPE *CeSyncStart )(
  810. IRAPISession * This,
  811. LPCWSTR szCommand);
  812. HRESULT ( STDMETHODCALLTYPE *CeSyncStop )(
  813. IRAPISession * This);
  814. BOOL ( STDMETHODCALLTYPE *CeQueryInstructionSet )(
  815. IRAPISession * This,
  816. DWORD dwInstructionSet,
  817. LPDWORD lpdwCurrentInstructionSet);
  818. BOOL ( STDMETHODCALLTYPE *CeGetDiskFreeSpaceEx )(
  819. IRAPISession * This,
  820. LPCWSTR lpDirectoryName,
  821. ULARGE_INTEGER *lpFreeBytesAvailableToCaller,
  822. ULARGE_INTEGER *lpTotalNumberOfBytes,
  823. ULARGE_INTEGER *lpTotalNumberOfFreeBytes);
  824. END_INTERFACE
  825. } IRAPISessionVtbl;
  826. interface IRAPISession
  827. {
  828. CONST_VTBL struct IRAPISessionVtbl *lpVtbl;
  829. };
  830. #ifdef COBJMACROS
  831. #define IRAPISession_QueryInterface(This,riid,ppvObject) \
  832. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  833. #define IRAPISession_AddRef(This) \
  834. (This)->lpVtbl -> AddRef(This)
  835. #define IRAPISession_Release(This) \
  836. (This)->lpVtbl -> Release(This)
  837. #define IRAPISession_CeRapiInit(This) \
  838. (This)->lpVtbl -> CeRapiInit(This)
  839. #define IRAPISession_CeRapiUninit(This) \
  840. (This)->lpVtbl -> CeRapiUninit(This)
  841. #define IRAPISession_CeGetLastError(This) \
  842. (This)->lpVtbl -> CeGetLastError(This)
  843. #define IRAPISession_CeRapiGetError(This) \
  844. (This)->lpVtbl -> CeRapiGetError(This)
  845. #define IRAPISession_CeRapiFreeBuffer(This,Buffer) \
  846. (This)->lpVtbl -> CeRapiFreeBuffer(This,Buffer)
  847. #define IRAPISession_CeFindFirstFile(This,FileName,FindData) \
  848. (This)->lpVtbl -> CeFindFirstFile(This,FileName,FindData)
  849. #define IRAPISession_CeFindNextFile(This,FoundFile,FindData) \
  850. (This)->lpVtbl -> CeFindNextFile(This,FoundFile,FindData)
  851. #define IRAPISession_CeFindClose(This,FoundFile) \
  852. (This)->lpVtbl -> CeFindClose(This,FoundFile)
  853. #define IRAPISession_CeGetFileAttributes(This,FileName) \
  854. (This)->lpVtbl -> CeGetFileAttributes(This,FileName)
  855. #define IRAPISession_CeSetFileAttributes(This,FileName,FileAttrib) \
  856. (This)->lpVtbl -> CeSetFileAttributes(This,FileName,FileAttrib)
  857. #define IRAPISession_CeCreateFile(This,lpFileName,dwDesiredAccess,dwShareMode,lpSecurityAttributes,dwCreationDistribution,dwFlagsAndAttributes,hTemplateFile) \
  858. (This)->lpVtbl -> CeCreateFile(This,lpFileName,dwDesiredAccess,dwShareMode,lpSecurityAttributes,dwCreationDistribution,dwFlagsAndAttributes,hTemplateFile)
  859. #define IRAPISession_CeReadFile(This,hFile,lpBuffer,nNumberOfBytesToRead,lpNumberOfBytesRead,lpOverlapped) \
  860. (This)->lpVtbl -> CeReadFile(This,hFile,lpBuffer,nNumberOfBytesToRead,lpNumberOfBytesRead,lpOverlapped)
  861. #define IRAPISession_CeWriteFile(This,hFile,lpBuffer,nNumberOfBytesToWrite,lpNumberOfBytesWritten,lpOverlapped) \
  862. (This)->lpVtbl -> CeWriteFile(This,hFile,lpBuffer,nNumberOfBytesToWrite,lpNumberOfBytesWritten,lpOverlapped)
  863. #define IRAPISession_CeCloseHandle(This,hObject) \
  864. (This)->lpVtbl -> CeCloseHandle(This,hObject)
  865. #define IRAPISession_CeFindAllFiles(This,Path,Flags,pFoundCount,ppFindDataArray) \
  866. (This)->lpVtbl -> CeFindAllFiles(This,Path,Flags,pFoundCount,ppFindDataArray)
  867. #define IRAPISession_CeFindFirstDatabase(This,dwDbaseType) \
  868. (This)->lpVtbl -> CeFindFirstDatabase(This,dwDbaseType)
  869. #define IRAPISession_CeFindNextDatabase(This,hEnum) \
  870. (This)->lpVtbl -> CeFindNextDatabase(This,hEnum)
  871. #define IRAPISession_CeOidGetInfo(This,oid,oidInfo) \
  872. (This)->lpVtbl -> CeOidGetInfo(This,oid,oidInfo)
  873. #define IRAPISession_CeCreateDatabase(This,lpszName,dwDbaseType,cNumSortOrder,rgSortSpecs) \
  874. (This)->lpVtbl -> CeCreateDatabase(This,lpszName,dwDbaseType,cNumSortOrder,rgSortSpecs)
  875. #define IRAPISession_CeOpenDatabase(This,poid,lpszName,propid,dwFlags,hwndNotify) \
  876. (This)->lpVtbl -> CeOpenDatabase(This,poid,lpszName,propid,dwFlags,hwndNotify)
  877. #define IRAPISession_CeDeleteDatabase(This,oidDbase) \
  878. (This)->lpVtbl -> CeDeleteDatabase(This,oidDbase)
  879. #define IRAPISession_CeReadRecordProps(This,hDbase,dwFlags,lpcPropID,rgPropID,lplpBuffer,lpcbBuffer) \
  880. (This)->lpVtbl -> CeReadRecordProps(This,hDbase,dwFlags,lpcPropID,rgPropID,lplpBuffer,lpcbBuffer)
  881. #define IRAPISession_CeWriteRecordProps(This,hDbase,oidRecord,cPropID,rgPropVal) \
  882. (This)->lpVtbl -> CeWriteRecordProps(This,hDbase,oidRecord,cPropID,rgPropVal)
  883. #define IRAPISession_CeDeleteRecord(This,hDatabase,oidRecord) \
  884. (This)->lpVtbl -> CeDeleteRecord(This,hDatabase,oidRecord)
  885. #define IRAPISession_CeSeekDatabase(This,hDatabase,dwSeekType,dwValue,lpdwIndex) \
  886. (This)->lpVtbl -> CeSeekDatabase(This,hDatabase,dwSeekType,dwValue,lpdwIndex)
  887. #define IRAPISession_CeSetDatabaseInfo(This,oidDbase,pNewInfo) \
  888. (This)->lpVtbl -> CeSetDatabaseInfo(This,oidDbase,pNewInfo)
  889. #define IRAPISession_CeSetFilePointer(This,hFile,lDistanceToMove,lpDistanceToMoveHigh,dwMoveMethod) \
  890. (This)->lpVtbl -> CeSetFilePointer(This,hFile,lDistanceToMove,lpDistanceToMoveHigh,dwMoveMethod)
  891. #define IRAPISession_CeSetEndOfFile(This,hFile) \
  892. (This)->lpVtbl -> CeSetEndOfFile(This,hFile)
  893. #define IRAPISession_CeCreateDirectory(This,lpPathName,lpSecurityAttributes) \
  894. (This)->lpVtbl -> CeCreateDirectory(This,lpPathName,lpSecurityAttributes)
  895. #define IRAPISession_CeRemoveDirectory(This,lpPathName) \
  896. (This)->lpVtbl -> CeRemoveDirectory(This,lpPathName)
  897. #define IRAPISession_CeCreateProcess(This,lpszImageName,lpszCmdLine,lpsaProcess,lpsaThread,fInheritHandles,fdwCreate,lpvEnvironment,lpszCurDir,lpsiStartInfo,lppiProcInfo) \
  898. (This)->lpVtbl -> CeCreateProcess(This,lpszImageName,lpszCmdLine,lpsaProcess,lpsaThread,fInheritHandles,fdwCreate,lpvEnvironment,lpszCurDir,lpsiStartInfo,lppiProcInfo)
  899. #define IRAPISession_CeMoveFile(This,lpExistingFileName,lpNewFileName) \
  900. (This)->lpVtbl -> CeMoveFile(This,lpExistingFileName,lpNewFileName)
  901. #define IRAPISession_CeCopyFile(This,lpExistingFileName,lpNewFileName,bFailIfExists) \
  902. (This)->lpVtbl -> CeCopyFile(This,lpExistingFileName,lpNewFileName,bFailIfExists)
  903. #define IRAPISession_CeDeleteFile(This,FileName) \
  904. (This)->lpVtbl -> CeDeleteFile(This,FileName)
  905. #define IRAPISession_CeGetFileSize(This,hFile,lpFileSizeHigh) \
  906. (This)->lpVtbl -> CeGetFileSize(This,hFile,lpFileSizeHigh)
  907. #define IRAPISession_CeRegOpenKeyEx(This,hKey,lpszSubKey,dwReserved,samDesired,phkResult) \
  908. (This)->lpVtbl -> CeRegOpenKeyEx(This,hKey,lpszSubKey,dwReserved,samDesired,phkResult)
  909. #define IRAPISession_CeRegEnumKeyEx(This,hKey,dwIndex,lpName,lpcbName,lpReserved,lpClass,lpcbClass,lpftLastWriteTime) \
  910. (This)->lpVtbl -> CeRegEnumKeyEx(This,hKey,dwIndex,lpName,lpcbName,lpReserved,lpClass,lpcbClass,lpftLastWriteTime)
  911. #define IRAPISession_CeRegCreateKeyEx(This,hKey,lpszSubKey,dwReserved,lpszClass,fdwOptions,samDesired,lpSecurityAttributes,phkResult,lpdwDisposition) \
  912. (This)->lpVtbl -> CeRegCreateKeyEx(This,hKey,lpszSubKey,dwReserved,lpszClass,fdwOptions,samDesired,lpSecurityAttributes,phkResult,lpdwDisposition)
  913. #define IRAPISession_CeRegCloseKey(This,hKey) \
  914. (This)->lpVtbl -> CeRegCloseKey(This,hKey)
  915. #define IRAPISession_CeRegDeleteKey(This,hKey,lpszSubKey) \
  916. (This)->lpVtbl -> CeRegDeleteKey(This,hKey,lpszSubKey)
  917. #define IRAPISession_CeRegEnumValue(This,hKey,dwIndex,lpszValueName,lpcbValueName,lpReserved,lpType,lpData,lpcbData) \
  918. (This)->lpVtbl -> CeRegEnumValue(This,hKey,dwIndex,lpszValueName,lpcbValueName,lpReserved,lpType,lpData,lpcbData)
  919. #define IRAPISession_CeRegDeleteValue(This,hKey,lpszValueName) \
  920. (This)->lpVtbl -> CeRegDeleteValue(This,hKey,lpszValueName)
  921. #define IRAPISession_CeRegQueryInfoKey(This,hKey,lpClass,lpcbClass,lpReserved,lpcSubKeys,lpcbMaxSubKeyLen,lpcbMaxClassLen,lpcValues,lpcbMaxValueNameLen,lpcbMaxValueLen,lpcbSecurityDescriptor,lpftLastWriteTime) \
  922. (This)->lpVtbl -> CeRegQueryInfoKey(This,hKey,lpClass,lpcbClass,lpReserved,lpcSubKeys,lpcbMaxSubKeyLen,lpcbMaxClassLen,lpcValues,lpcbMaxValueNameLen,lpcbMaxValueLen,lpcbSecurityDescriptor,lpftLastWriteTime)
  923. #define IRAPISession_CeRegQueryValueEx(This,hKey,lpValueName,lpReserved,lpType,lpData,lpcbData) \
  924. (This)->lpVtbl -> CeRegQueryValueEx(This,hKey,lpValueName,lpReserved,lpType,lpData,lpcbData)
  925. #define IRAPISession_CeRegSetValueEx(This,hKey,lpValueName,Reserved,dwType,lpData,cbData) \
  926. (This)->lpVtbl -> CeRegSetValueEx(This,hKey,lpValueName,Reserved,dwType,lpData,cbData)
  927. #define IRAPISession_CeGetStoreInformation(This,lpsi) \
  928. (This)->lpVtbl -> CeGetStoreInformation(This,lpsi)
  929. #define IRAPISession_CeGetSystemMetrics(This,nIndex) \
  930. (This)->lpVtbl -> CeGetSystemMetrics(This,nIndex)
  931. #define IRAPISession_CeGetDesktopDeviceCaps(This,nIndex) \
  932. (This)->lpVtbl -> CeGetDesktopDeviceCaps(This,nIndex)
  933. #define IRAPISession_CeFindAllDatabases(This,DbaseType,Flags,cFindData,ppFindData) \
  934. (This)->lpVtbl -> CeFindAllDatabases(This,DbaseType,Flags,cFindData,ppFindData)
  935. #define IRAPISession_CeGetSystemInfo(This,lpSystemInfo) \
  936. (This)->lpVtbl -> CeGetSystemInfo(This,lpSystemInfo)
  937. #define IRAPISession_CeSHCreateShortcut(This,lpszShortcut,lpszTarget) \
  938. (This)->lpVtbl -> CeSHCreateShortcut(This,lpszShortcut,lpszTarget)
  939. #define IRAPISession_CeSHGetShortcutTarget(This,lpszShortcut,lpszTarget,cbMax) \
  940. (This)->lpVtbl -> CeSHGetShortcutTarget(This,lpszShortcut,lpszTarget,cbMax)
  941. #define IRAPISession_CeCheckPassword(This,lpszPassword) \
  942. (This)->lpVtbl -> CeCheckPassword(This,lpszPassword)
  943. #define IRAPISession_CeGetFileTime(This,hFile,lpCreationTime,lpLastAccessTime,lpLastWriteTime) \
  944. (This)->lpVtbl -> CeGetFileTime(This,hFile,lpCreationTime,lpLastAccessTime,lpLastWriteTime)
  945. #define IRAPISession_CeSetFileTime(This,hFile,lpCreationTime,lpLastAccessTime,lpLastWriteTime) \
  946. (This)->lpVtbl -> CeSetFileTime(This,hFile,lpCreationTime,lpLastAccessTime,lpLastWriteTime)
  947. #define IRAPISession_CeGetVersionEx(This,lpVersionInformation) \
  948. (This)->lpVtbl -> CeGetVersionEx(This,lpVersionInformation)
  949. #define IRAPISession_CeGetWindow(This,hWnd,uCmd) \
  950. (This)->lpVtbl -> CeGetWindow(This,hWnd,uCmd)
  951. #define IRAPISession_CeGetWindowLong(This,hWnd,nIndex) \
  952. (This)->lpVtbl -> CeGetWindowLong(This,hWnd,nIndex)
  953. #define IRAPISession_CeGetWindowText(This,hWnd,lpString,nMaxCount) \
  954. (This)->lpVtbl -> CeGetWindowText(This,hWnd,lpString,nMaxCount)
  955. #define IRAPISession_CeGetClassName(This,hWnd,lpClassName,nMaxCount) \
  956. (This)->lpVtbl -> CeGetClassName(This,hWnd,lpClassName,nMaxCount)
  957. #define IRAPISession_CeGlobalMemoryStatus(This,lpmst) \
  958. (This)->lpVtbl -> CeGlobalMemoryStatus(This,lpmst)
  959. #define IRAPISession_CeGetSystemPowerStatusEx(This,pstatus,fUpdate) \
  960. (This)->lpVtbl -> CeGetSystemPowerStatusEx(This,pstatus,fUpdate)
  961. #define IRAPISession_CeGetTempPath(This,nBufferLength,lpBuffer) \
  962. (This)->lpVtbl -> CeGetTempPath(This,nBufferLength,lpBuffer)
  963. #define IRAPISession_CeGetSpecialFolderPath(This,nFolder,nBufferLength,lpBuffer) \
  964. (This)->lpVtbl -> CeGetSpecialFolderPath(This,nFolder,nBufferLength,lpBuffer)
  965. #define IRAPISession_CeRapiInvoke(This,pDllPath,pFunctionName,cbInput,pInput,pcbOutput,ppOutput,ppIRAPIStream,dwReserved) \
  966. (This)->lpVtbl -> CeRapiInvoke(This,pDllPath,pFunctionName,cbInput,pInput,pcbOutput,ppOutput,ppIRAPIStream,dwReserved)
  967. #define IRAPISession_CeFindFirstDatabaseEx(This,pguid,dwDbaseType) \
  968. (This)->lpVtbl -> CeFindFirstDatabaseEx(This,pguid,dwDbaseType)
  969. #define IRAPISession_CeFindNextDatabaseEx(This,hEnum,pguid) \
  970. (This)->lpVtbl -> CeFindNextDatabaseEx(This,hEnum,pguid)
  971. #define IRAPISession_CeCreateDatabaseEx(This,pceguid,lpCEDBInfo) \
  972. (This)->lpVtbl -> CeCreateDatabaseEx(This,pceguid,lpCEDBInfo)
  973. #define IRAPISession_CeSetDatabaseInfoEx(This,pceguid,oidDbase,pNewInfo) \
  974. (This)->lpVtbl -> CeSetDatabaseInfoEx(This,pceguid,oidDbase,pNewInfo)
  975. #define IRAPISession_CeOpenDatabaseEx(This,pceguid,poid,lpszName,propid,dwFlags,pReq) \
  976. (This)->lpVtbl -> CeOpenDatabaseEx(This,pceguid,poid,lpszName,propid,dwFlags,pReq)
  977. #define IRAPISession_CeDeleteDatabaseEx(This,pceguid,oidDbase) \
  978. (This)->lpVtbl -> CeDeleteDatabaseEx(This,pceguid,oidDbase)
  979. #define IRAPISession_CeReadRecordPropsEx(This,hDbase,dwFlags,lpcPropID,rgPropID,lplpBuffer,lpcbBuffer,hHeap) \
  980. (This)->lpVtbl -> CeReadRecordPropsEx(This,hDbase,dwFlags,lpcPropID,rgPropID,lplpBuffer,lpcbBuffer,hHeap)
  981. #define IRAPISession_CeMountDBVol(This,pceguid,lpszDBVol,dwFlags) \
  982. (This)->lpVtbl -> CeMountDBVol(This,pceguid,lpszDBVol,dwFlags)
  983. #define IRAPISession_CeUnmountDBVol(This,pceguid) \
  984. (This)->lpVtbl -> CeUnmountDBVol(This,pceguid)
  985. #define IRAPISession_CeFlushDBVol(This,pceguid) \
  986. (This)->lpVtbl -> CeFlushDBVol(This,pceguid)
  987. #define IRAPISession_CeEnumDBVolumes(This,pceguid,lpBuf,dwNumChars) \
  988. (This)->lpVtbl -> CeEnumDBVolumes(This,pceguid,lpBuf,dwNumChars)
  989. #define IRAPISession_CeOidGetInfoEx(This,pceguid,oid,oidInfo) \
  990. (This)->lpVtbl -> CeOidGetInfoEx(This,pceguid,oid,oidInfo)
  991. #define IRAPISession_CeSyncStart(This,szCommand) \
  992. (This)->lpVtbl -> CeSyncStart(This,szCommand)
  993. #define IRAPISession_CeSyncStop(This) \
  994. (This)->lpVtbl -> CeSyncStop(This)
  995. #define IRAPISession_CeQueryInstructionSet(This,dwInstructionSet,lpdwCurrentInstructionSet) \
  996. (This)->lpVtbl -> CeQueryInstructionSet(This,dwInstructionSet,lpdwCurrentInstructionSet)
  997. #define IRAPISession_CeGetDiskFreeSpaceEx(This,lpDirectoryName,lpFreeBytesAvailableToCaller,lpTotalNumberOfBytes,lpTotalNumberOfFreeBytes) \
  998. (This)->lpVtbl -> CeGetDiskFreeSpaceEx(This,lpDirectoryName,lpFreeBytesAvailableToCaller,lpTotalNumberOfBytes,lpTotalNumberOfFreeBytes)
  999. #endif /* COBJMACROS */
  1000. #endif /* C style interface */
  1001. HRESULT STDMETHODCALLTYPE IRAPISession_CeRapiInit_Proxy(
  1002. IRAPISession * This);
  1003. void __RPC_STUB IRAPISession_CeRapiInit_Stub(
  1004. IRpcStubBuffer *This,
  1005. IRpcChannelBuffer *_pRpcChannelBuffer,
  1006. PRPC_MESSAGE _pRpcMessage,
  1007. DWORD *_pdwStubPhase);
  1008. HRESULT STDMETHODCALLTYPE IRAPISession_CeRapiUninit_Proxy(
  1009. IRAPISession * This);
  1010. void __RPC_STUB IRAPISession_CeRapiUninit_Stub(
  1011. IRpcStubBuffer *This,
  1012. IRpcChannelBuffer *_pRpcChannelBuffer,
  1013. PRPC_MESSAGE _pRpcMessage,
  1014. DWORD *_pdwStubPhase);
  1015. DWORD STDMETHODCALLTYPE IRAPISession_CeGetLastError_Proxy(
  1016. IRAPISession * This);
  1017. void __RPC_STUB IRAPISession_CeGetLastError_Stub(
  1018. IRpcStubBuffer *This,
  1019. IRpcChannelBuffer *_pRpcChannelBuffer,
  1020. PRPC_MESSAGE _pRpcMessage,
  1021. DWORD *_pdwStubPhase);
  1022. HRESULT STDMETHODCALLTYPE IRAPISession_CeRapiGetError_Proxy(
  1023. IRAPISession * This);
  1024. void __RPC_STUB IRAPISession_CeRapiGetError_Stub(
  1025. IRpcStubBuffer *This,
  1026. IRpcChannelBuffer *_pRpcChannelBuffer,
  1027. PRPC_MESSAGE _pRpcMessage,
  1028. DWORD *_pdwStubPhase);
  1029. HRESULT STDMETHODCALLTYPE IRAPISession_CeRapiFreeBuffer_Proxy(
  1030. IRAPISession * This,
  1031. void *Buffer);
  1032. void __RPC_STUB IRAPISession_CeRapiFreeBuffer_Stub(
  1033. IRpcStubBuffer *This,
  1034. IRpcChannelBuffer *_pRpcChannelBuffer,
  1035. PRPC_MESSAGE _pRpcMessage,
  1036. DWORD *_pdwStubPhase);
  1037. HANDLE STDMETHODCALLTYPE IRAPISession_CeFindFirstFile_Proxy(
  1038. IRAPISession * This,
  1039. LPCWSTR FileName,
  1040. LPCE_FIND_DATA FindData);
  1041. void __RPC_STUB IRAPISession_CeFindFirstFile_Stub(
  1042. IRpcStubBuffer *This,
  1043. IRpcChannelBuffer *_pRpcChannelBuffer,
  1044. PRPC_MESSAGE _pRpcMessage,
  1045. DWORD *_pdwStubPhase);
  1046. BOOL STDMETHODCALLTYPE IRAPISession_CeFindNextFile_Proxy(
  1047. IRAPISession * This,
  1048. HANDLE FoundFile,
  1049. LPCE_FIND_DATA FindData);
  1050. void __RPC_STUB IRAPISession_CeFindNextFile_Stub(
  1051. IRpcStubBuffer *This,
  1052. IRpcChannelBuffer *_pRpcChannelBuffer,
  1053. PRPC_MESSAGE _pRpcMessage,
  1054. DWORD *_pdwStubPhase);
  1055. BOOL STDMETHODCALLTYPE IRAPISession_CeFindClose_Proxy(
  1056. IRAPISession * This,
  1057. HANDLE FoundFile);
  1058. void __RPC_STUB IRAPISession_CeFindClose_Stub(
  1059. IRpcStubBuffer *This,
  1060. IRpcChannelBuffer *_pRpcChannelBuffer,
  1061. PRPC_MESSAGE _pRpcMessage,
  1062. DWORD *_pdwStubPhase);
  1063. DWORD STDMETHODCALLTYPE IRAPISession_CeGetFileAttributes_Proxy(
  1064. IRAPISession * This,
  1065. LPCWSTR FileName);
  1066. void __RPC_STUB IRAPISession_CeGetFileAttributes_Stub(
  1067. IRpcStubBuffer *This,
  1068. IRpcChannelBuffer *_pRpcChannelBuffer,
  1069. PRPC_MESSAGE _pRpcMessage,
  1070. DWORD *_pdwStubPhase);
  1071. BOOL STDMETHODCALLTYPE IRAPISession_CeSetFileAttributes_Proxy(
  1072. IRAPISession * This,
  1073. LPCWSTR FileName,
  1074. DWORD FileAttrib);
  1075. void __RPC_STUB IRAPISession_CeSetFileAttributes_Stub(
  1076. IRpcStubBuffer *This,
  1077. IRpcChannelBuffer *_pRpcChannelBuffer,
  1078. PRPC_MESSAGE _pRpcMessage,
  1079. DWORD *_pdwStubPhase);
  1080. HANDLE STDMETHODCALLTYPE IRAPISession_CeCreateFile_Proxy(
  1081. IRAPISession * This,
  1082. LPCWSTR lpFileName,
  1083. DWORD dwDesiredAccess,
  1084. DWORD dwShareMode,
  1085. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  1086. DWORD dwCreationDistribution,
  1087. DWORD dwFlagsAndAttributes,
  1088. HANDLE hTemplateFile);
  1089. void __RPC_STUB IRAPISession_CeCreateFile_Stub(
  1090. IRpcStubBuffer *This,
  1091. IRpcChannelBuffer *_pRpcChannelBuffer,
  1092. PRPC_MESSAGE _pRpcMessage,
  1093. DWORD *_pdwStubPhase);
  1094. BOOL STDMETHODCALLTYPE IRAPISession_CeReadFile_Proxy(
  1095. IRAPISession * This,
  1096. HANDLE hFile,
  1097. LPVOID lpBuffer,
  1098. DWORD nNumberOfBytesToRead,
  1099. LPDWORD lpNumberOfBytesRead,
  1100. LPOVERLAPPED lpOverlapped);
  1101. void __RPC_STUB IRAPISession_CeReadFile_Stub(
  1102. IRpcStubBuffer *This,
  1103. IRpcChannelBuffer *_pRpcChannelBuffer,
  1104. PRPC_MESSAGE _pRpcMessage,
  1105. DWORD *_pdwStubPhase);
  1106. BOOL STDMETHODCALLTYPE IRAPISession_CeWriteFile_Proxy(
  1107. IRAPISession * This,
  1108. HANDLE hFile,
  1109. LPCVOID lpBuffer,
  1110. DWORD nNumberOfBytesToWrite,
  1111. LPDWORD lpNumberOfBytesWritten,
  1112. LPOVERLAPPED lpOverlapped);
  1113. void __RPC_STUB IRAPISession_CeWriteFile_Stub(
  1114. IRpcStubBuffer *This,
  1115. IRpcChannelBuffer *_pRpcChannelBuffer,
  1116. PRPC_MESSAGE _pRpcMessage,
  1117. DWORD *_pdwStubPhase);
  1118. BOOL STDMETHODCALLTYPE IRAPISession_CeCloseHandle_Proxy(
  1119. IRAPISession * This,
  1120. HANDLE hObject);
  1121. void __RPC_STUB IRAPISession_CeCloseHandle_Stub(
  1122. IRpcStubBuffer *This,
  1123. IRpcChannelBuffer *_pRpcChannelBuffer,
  1124. PRPC_MESSAGE _pRpcMessage,
  1125. DWORD *_pdwStubPhase);
  1126. BOOL STDMETHODCALLTYPE IRAPISession_CeFindAllFiles_Proxy(
  1127. IRAPISession * This,
  1128. LPCWSTR Path,
  1129. DWORD Flags,
  1130. LPDWORD pFoundCount,
  1131. LPLPCE_FIND_DATA ppFindDataArray);
  1132. void __RPC_STUB IRAPISession_CeFindAllFiles_Stub(
  1133. IRpcStubBuffer *This,
  1134. IRpcChannelBuffer *_pRpcChannelBuffer,
  1135. PRPC_MESSAGE _pRpcMessage,
  1136. DWORD *_pdwStubPhase);
  1137. HANDLE STDMETHODCALLTYPE IRAPISession_CeFindFirstDatabase_Proxy(
  1138. IRAPISession * This,
  1139. DWORD dwDbaseType);
  1140. void __RPC_STUB IRAPISession_CeFindFirstDatabase_Stub(
  1141. IRpcStubBuffer *This,
  1142. IRpcChannelBuffer *_pRpcChannelBuffer,
  1143. PRPC_MESSAGE _pRpcMessage,
  1144. DWORD *_pdwStubPhase);
  1145. CEOID STDMETHODCALLTYPE IRAPISession_CeFindNextDatabase_Proxy(
  1146. IRAPISession * This,
  1147. HANDLE hEnum);
  1148. void __RPC_STUB IRAPISession_CeFindNextDatabase_Stub(
  1149. IRpcStubBuffer *This,
  1150. IRpcChannelBuffer *_pRpcChannelBuffer,
  1151. PRPC_MESSAGE _pRpcMessage,
  1152. DWORD *_pdwStubPhase);
  1153. BOOL STDMETHODCALLTYPE IRAPISession_CeOidGetInfo_Proxy(
  1154. IRAPISession * This,
  1155. CEOID oid,
  1156. CEOIDINFO *oidInfo);
  1157. void __RPC_STUB IRAPISession_CeOidGetInfo_Stub(
  1158. IRpcStubBuffer *This,
  1159. IRpcChannelBuffer *_pRpcChannelBuffer,
  1160. PRPC_MESSAGE _pRpcMessage,
  1161. DWORD *_pdwStubPhase);
  1162. CEOID STDMETHODCALLTYPE IRAPISession_CeCreateDatabase_Proxy(
  1163. IRAPISession * This,
  1164. LPWSTR lpszName,
  1165. DWORD dwDbaseType,
  1166. WORD cNumSortOrder,
  1167. SORTORDERSPEC *rgSortSpecs);
  1168. void __RPC_STUB IRAPISession_CeCreateDatabase_Stub(
  1169. IRpcStubBuffer *This,
  1170. IRpcChannelBuffer *_pRpcChannelBuffer,
  1171. PRPC_MESSAGE _pRpcMessage,
  1172. DWORD *_pdwStubPhase);
  1173. HANDLE STDMETHODCALLTYPE IRAPISession_CeOpenDatabase_Proxy(
  1174. IRAPISession * This,
  1175. PCEOID poid,
  1176. LPWSTR lpszName,
  1177. CEPROPID propid,
  1178. DWORD dwFlags,
  1179. HWND hwndNotify);
  1180. void __RPC_STUB IRAPISession_CeOpenDatabase_Stub(
  1181. IRpcStubBuffer *This,
  1182. IRpcChannelBuffer *_pRpcChannelBuffer,
  1183. PRPC_MESSAGE _pRpcMessage,
  1184. DWORD *_pdwStubPhase);
  1185. BOOL STDMETHODCALLTYPE IRAPISession_CeDeleteDatabase_Proxy(
  1186. IRAPISession * This,
  1187. CEOID oidDbase);
  1188. void __RPC_STUB IRAPISession_CeDeleteDatabase_Stub(
  1189. IRpcStubBuffer *This,
  1190. IRpcChannelBuffer *_pRpcChannelBuffer,
  1191. PRPC_MESSAGE _pRpcMessage,
  1192. DWORD *_pdwStubPhase);
  1193. CEOID STDMETHODCALLTYPE IRAPISession_CeReadRecordProps_Proxy(
  1194. IRAPISession * This,
  1195. HANDLE hDbase,
  1196. DWORD dwFlags,
  1197. LPWORD lpcPropID,
  1198. CEPROPID *rgPropID,
  1199. LPBYTE *lplpBuffer,
  1200. LPDWORD lpcbBuffer);
  1201. void __RPC_STUB IRAPISession_CeReadRecordProps_Stub(
  1202. IRpcStubBuffer *This,
  1203. IRpcChannelBuffer *_pRpcChannelBuffer,
  1204. PRPC_MESSAGE _pRpcMessage,
  1205. DWORD *_pdwStubPhase);
  1206. CEOID STDMETHODCALLTYPE IRAPISession_CeWriteRecordProps_Proxy(
  1207. IRAPISession * This,
  1208. HANDLE hDbase,
  1209. CEOID oidRecord,
  1210. WORD cPropID,
  1211. CEPROPVAL *rgPropVal);
  1212. void __RPC_STUB IRAPISession_CeWriteRecordProps_Stub(
  1213. IRpcStubBuffer *This,
  1214. IRpcChannelBuffer *_pRpcChannelBuffer,
  1215. PRPC_MESSAGE _pRpcMessage,
  1216. DWORD *_pdwStubPhase);
  1217. BOOL STDMETHODCALLTYPE IRAPISession_CeDeleteRecord_Proxy(
  1218. IRAPISession * This,
  1219. HANDLE hDatabase,
  1220. CEOID oidRecord);
  1221. void __RPC_STUB IRAPISession_CeDeleteRecord_Stub(
  1222. IRpcStubBuffer *This,
  1223. IRpcChannelBuffer *_pRpcChannelBuffer,
  1224. PRPC_MESSAGE _pRpcMessage,
  1225. DWORD *_pdwStubPhase);
  1226. CEOID STDMETHODCALLTYPE IRAPISession_CeSeekDatabase_Proxy(
  1227. IRAPISession * This,
  1228. HANDLE hDatabase,
  1229. DWORD dwSeekType,
  1230. DWORD dwValue,
  1231. LPDWORD lpdwIndex);
  1232. void __RPC_STUB IRAPISession_CeSeekDatabase_Stub(
  1233. IRpcStubBuffer *This,
  1234. IRpcChannelBuffer *_pRpcChannelBuffer,
  1235. PRPC_MESSAGE _pRpcMessage,
  1236. DWORD *_pdwStubPhase);
  1237. BOOL STDMETHODCALLTYPE IRAPISession_CeSetDatabaseInfo_Proxy(
  1238. IRAPISession * This,
  1239. CEOID oidDbase,
  1240. CEDBASEINFO *pNewInfo);
  1241. void __RPC_STUB IRAPISession_CeSetDatabaseInfo_Stub(
  1242. IRpcStubBuffer *This,
  1243. IRpcChannelBuffer *_pRpcChannelBuffer,
  1244. PRPC_MESSAGE _pRpcMessage,
  1245. DWORD *_pdwStubPhase);
  1246. DWORD STDMETHODCALLTYPE IRAPISession_CeSetFilePointer_Proxy(
  1247. IRAPISession * This,
  1248. HANDLE hFile,
  1249. LONG lDistanceToMove,
  1250. PLONG lpDistanceToMoveHigh,
  1251. DWORD dwMoveMethod);
  1252. void __RPC_STUB IRAPISession_CeSetFilePointer_Stub(
  1253. IRpcStubBuffer *This,
  1254. IRpcChannelBuffer *_pRpcChannelBuffer,
  1255. PRPC_MESSAGE _pRpcMessage,
  1256. DWORD *_pdwStubPhase);
  1257. BOOL STDMETHODCALLTYPE IRAPISession_CeSetEndOfFile_Proxy(
  1258. IRAPISession * This,
  1259. HANDLE hFile);
  1260. void __RPC_STUB IRAPISession_CeSetEndOfFile_Stub(
  1261. IRpcStubBuffer *This,
  1262. IRpcChannelBuffer *_pRpcChannelBuffer,
  1263. PRPC_MESSAGE _pRpcMessage,
  1264. DWORD *_pdwStubPhase);
  1265. BOOL STDMETHODCALLTYPE IRAPISession_CeCreateDirectory_Proxy(
  1266. IRAPISession * This,
  1267. LPCWSTR lpPathName,
  1268. LPSECURITY_ATTRIBUTES lpSecurityAttributes);
  1269. void __RPC_STUB IRAPISession_CeCreateDirectory_Stub(
  1270. IRpcStubBuffer *This,
  1271. IRpcChannelBuffer *_pRpcChannelBuffer,
  1272. PRPC_MESSAGE _pRpcMessage,
  1273. DWORD *_pdwStubPhase);
  1274. BOOL STDMETHODCALLTYPE IRAPISession_CeRemoveDirectory_Proxy(
  1275. IRAPISession * This,
  1276. LPCWSTR lpPathName);
  1277. void __RPC_STUB IRAPISession_CeRemoveDirectory_Stub(
  1278. IRpcStubBuffer *This,
  1279. IRpcChannelBuffer *_pRpcChannelBuffer,
  1280. PRPC_MESSAGE _pRpcMessage,
  1281. DWORD *_pdwStubPhase);
  1282. BOOL STDMETHODCALLTYPE IRAPISession_CeCreateProcess_Proxy(
  1283. IRAPISession * This,
  1284. LPCWSTR lpszImageName,
  1285. LPCWSTR lpszCmdLine,
  1286. LPSECURITY_ATTRIBUTES lpsaProcess,
  1287. LPSECURITY_ATTRIBUTES lpsaThread,
  1288. BOOL fInheritHandles,
  1289. DWORD fdwCreate,
  1290. LPVOID lpvEnvironment,
  1291. LPWSTR lpszCurDir,
  1292. LPSTARTUPINFOW lpsiStartInfo,
  1293. LPPROCESS_INFORMATION lppiProcInfo);
  1294. void __RPC_STUB IRAPISession_CeCreateProcess_Stub(
  1295. IRpcStubBuffer *This,
  1296. IRpcChannelBuffer *_pRpcChannelBuffer,
  1297. PRPC_MESSAGE _pRpcMessage,
  1298. DWORD *_pdwStubPhase);
  1299. BOOL STDMETHODCALLTYPE IRAPISession_CeMoveFile_Proxy(
  1300. IRAPISession * This,
  1301. LPCWSTR lpExistingFileName,
  1302. LPCWSTR lpNewFileName);
  1303. void __RPC_STUB IRAPISession_CeMoveFile_Stub(
  1304. IRpcStubBuffer *This,
  1305. IRpcChannelBuffer *_pRpcChannelBuffer,
  1306. PRPC_MESSAGE _pRpcMessage,
  1307. DWORD *_pdwStubPhase);
  1308. BOOL STDMETHODCALLTYPE IRAPISession_CeCopyFile_Proxy(
  1309. IRAPISession * This,
  1310. LPCWSTR lpExistingFileName,
  1311. LPCWSTR lpNewFileName,
  1312. BOOL bFailIfExists);
  1313. void __RPC_STUB IRAPISession_CeCopyFile_Stub(
  1314. IRpcStubBuffer *This,
  1315. IRpcChannelBuffer *_pRpcChannelBuffer,
  1316. PRPC_MESSAGE _pRpcMessage,
  1317. DWORD *_pdwStubPhase);
  1318. BOOL STDMETHODCALLTYPE IRAPISession_CeDeleteFile_Proxy(
  1319. IRAPISession * This,
  1320. LPCWSTR FileName);
  1321. void __RPC_STUB IRAPISession_CeDeleteFile_Stub(
  1322. IRpcStubBuffer *This,
  1323. IRpcChannelBuffer *_pRpcChannelBuffer,
  1324. PRPC_MESSAGE _pRpcMessage,
  1325. DWORD *_pdwStubPhase);
  1326. DWORD STDMETHODCALLTYPE IRAPISession_CeGetFileSize_Proxy(
  1327. IRAPISession * This,
  1328. HANDLE hFile,
  1329. LPDWORD lpFileSizeHigh);
  1330. void __RPC_STUB IRAPISession_CeGetFileSize_Stub(
  1331. IRpcStubBuffer *This,
  1332. IRpcChannelBuffer *_pRpcChannelBuffer,
  1333. PRPC_MESSAGE _pRpcMessage,
  1334. DWORD *_pdwStubPhase);
  1335. LONG STDMETHODCALLTYPE IRAPISession_CeRegOpenKeyEx_Proxy(
  1336. IRAPISession * This,
  1337. HKEY hKey,
  1338. LPCWSTR lpszSubKey,
  1339. DWORD dwReserved,
  1340. REGSAM samDesired,
  1341. PHKEY phkResult);
  1342. void __RPC_STUB IRAPISession_CeRegOpenKeyEx_Stub(
  1343. IRpcStubBuffer *This,
  1344. IRpcChannelBuffer *_pRpcChannelBuffer,
  1345. PRPC_MESSAGE _pRpcMessage,
  1346. DWORD *_pdwStubPhase);
  1347. LONG STDMETHODCALLTYPE IRAPISession_CeRegEnumKeyEx_Proxy(
  1348. IRAPISession * This,
  1349. HKEY hKey,
  1350. DWORD dwIndex,
  1351. LPWSTR lpName,
  1352. LPDWORD lpcbName,
  1353. LPDWORD lpReserved,
  1354. LPWSTR lpClass,
  1355. LPDWORD lpcbClass,
  1356. PFILETIME lpftLastWriteTime);
  1357. void __RPC_STUB IRAPISession_CeRegEnumKeyEx_Stub(
  1358. IRpcStubBuffer *This,
  1359. IRpcChannelBuffer *_pRpcChannelBuffer,
  1360. PRPC_MESSAGE _pRpcMessage,
  1361. DWORD *_pdwStubPhase);
  1362. LONG STDMETHODCALLTYPE IRAPISession_CeRegCreateKeyEx_Proxy(
  1363. IRAPISession * This,
  1364. HKEY hKey,
  1365. LPCWSTR lpszSubKey,
  1366. DWORD dwReserved,
  1367. LPWSTR lpszClass,
  1368. DWORD fdwOptions,
  1369. REGSAM samDesired,
  1370. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  1371. PHKEY phkResult,
  1372. LPDWORD lpdwDisposition);
  1373. void __RPC_STUB IRAPISession_CeRegCreateKeyEx_Stub(
  1374. IRpcStubBuffer *This,
  1375. IRpcChannelBuffer *_pRpcChannelBuffer,
  1376. PRPC_MESSAGE _pRpcMessage,
  1377. DWORD *_pdwStubPhase);
  1378. LONG STDMETHODCALLTYPE IRAPISession_CeRegCloseKey_Proxy(
  1379. IRAPISession * This,
  1380. HKEY hKey);
  1381. void __RPC_STUB IRAPISession_CeRegCloseKey_Stub(
  1382. IRpcStubBuffer *This,
  1383. IRpcChannelBuffer *_pRpcChannelBuffer,
  1384. PRPC_MESSAGE _pRpcMessage,
  1385. DWORD *_pdwStubPhase);
  1386. LONG STDMETHODCALLTYPE IRAPISession_CeRegDeleteKey_Proxy(
  1387. IRAPISession * This,
  1388. HKEY hKey,
  1389. LPCWSTR lpszSubKey);
  1390. void __RPC_STUB IRAPISession_CeRegDeleteKey_Stub(
  1391. IRpcStubBuffer *This,
  1392. IRpcChannelBuffer *_pRpcChannelBuffer,
  1393. PRPC_MESSAGE _pRpcMessage,
  1394. DWORD *_pdwStubPhase);
  1395. LONG STDMETHODCALLTYPE IRAPISession_CeRegEnumValue_Proxy(
  1396. IRAPISession * This,
  1397. HKEY hKey,
  1398. DWORD dwIndex,
  1399. LPWSTR lpszValueName,
  1400. LPDWORD lpcbValueName,
  1401. LPDWORD lpReserved,
  1402. LPDWORD lpType,
  1403. LPBYTE lpData,
  1404. LPDWORD lpcbData);
  1405. void __RPC_STUB IRAPISession_CeRegEnumValue_Stub(
  1406. IRpcStubBuffer *This,
  1407. IRpcChannelBuffer *_pRpcChannelBuffer,
  1408. PRPC_MESSAGE _pRpcMessage,
  1409. DWORD *_pdwStubPhase);
  1410. LONG STDMETHODCALLTYPE IRAPISession_CeRegDeleteValue_Proxy(
  1411. IRAPISession * This,
  1412. HKEY hKey,
  1413. LPCWSTR lpszValueName);
  1414. void __RPC_STUB IRAPISession_CeRegDeleteValue_Stub(
  1415. IRpcStubBuffer *This,
  1416. IRpcChannelBuffer *_pRpcChannelBuffer,
  1417. PRPC_MESSAGE _pRpcMessage,
  1418. DWORD *_pdwStubPhase);
  1419. LONG STDMETHODCALLTYPE IRAPISession_CeRegQueryInfoKey_Proxy(
  1420. IRAPISession * This,
  1421. HKEY hKey,
  1422. LPWSTR lpClass,
  1423. LPDWORD lpcbClass,
  1424. LPDWORD lpReserved,
  1425. LPDWORD lpcSubKeys,
  1426. LPDWORD lpcbMaxSubKeyLen,
  1427. LPDWORD lpcbMaxClassLen,
  1428. LPDWORD lpcValues,
  1429. LPDWORD lpcbMaxValueNameLen,
  1430. LPDWORD lpcbMaxValueLen,
  1431. LPDWORD lpcbSecurityDescriptor,
  1432. PFILETIME lpftLastWriteTime);
  1433. void __RPC_STUB IRAPISession_CeRegQueryInfoKey_Stub(
  1434. IRpcStubBuffer *This,
  1435. IRpcChannelBuffer *_pRpcChannelBuffer,
  1436. PRPC_MESSAGE _pRpcMessage,
  1437. DWORD *_pdwStubPhase);
  1438. LONG STDMETHODCALLTYPE IRAPISession_CeRegQueryValueEx_Proxy(
  1439. IRAPISession * This,
  1440. HKEY hKey,
  1441. LPCWSTR lpValueName,
  1442. LPDWORD lpReserved,
  1443. LPDWORD lpType,
  1444. LPBYTE lpData,
  1445. LPDWORD lpcbData);
  1446. void __RPC_STUB IRAPISession_CeRegQueryValueEx_Stub(
  1447. IRpcStubBuffer *This,
  1448. IRpcChannelBuffer *_pRpcChannelBuffer,
  1449. PRPC_MESSAGE _pRpcMessage,
  1450. DWORD *_pdwStubPhase);
  1451. LONG STDMETHODCALLTYPE IRAPISession_CeRegSetValueEx_Proxy(
  1452. IRAPISession * This,
  1453. HKEY hKey,
  1454. LPCWSTR lpValueName,
  1455. DWORD Reserved,
  1456. DWORD dwType,
  1457. BYTE *lpData,
  1458. DWORD cbData);
  1459. void __RPC_STUB IRAPISession_CeRegSetValueEx_Stub(
  1460. IRpcStubBuffer *This,
  1461. IRpcChannelBuffer *_pRpcChannelBuffer,
  1462. PRPC_MESSAGE _pRpcMessage,
  1463. DWORD *_pdwStubPhase);
  1464. BOOL STDMETHODCALLTYPE IRAPISession_CeGetStoreInformation_Proxy(
  1465. IRAPISession * This,
  1466. LPSTORE_INFORMATION lpsi);
  1467. void __RPC_STUB IRAPISession_CeGetStoreInformation_Stub(
  1468. IRpcStubBuffer *This,
  1469. IRpcChannelBuffer *_pRpcChannelBuffer,
  1470. PRPC_MESSAGE _pRpcMessage,
  1471. DWORD *_pdwStubPhase);
  1472. INT STDMETHODCALLTYPE IRAPISession_CeGetSystemMetrics_Proxy(
  1473. IRAPISession * This,
  1474. INT nIndex);
  1475. void __RPC_STUB IRAPISession_CeGetSystemMetrics_Stub(
  1476. IRpcStubBuffer *This,
  1477. IRpcChannelBuffer *_pRpcChannelBuffer,
  1478. PRPC_MESSAGE _pRpcMessage,
  1479. DWORD *_pdwStubPhase);
  1480. INT STDMETHODCALLTYPE IRAPISession_CeGetDesktopDeviceCaps_Proxy(
  1481. IRAPISession * This,
  1482. INT nIndex);
  1483. void __RPC_STUB IRAPISession_CeGetDesktopDeviceCaps_Stub(
  1484. IRpcStubBuffer *This,
  1485. IRpcChannelBuffer *_pRpcChannelBuffer,
  1486. PRPC_MESSAGE _pRpcMessage,
  1487. DWORD *_pdwStubPhase);
  1488. BOOL STDMETHODCALLTYPE IRAPISession_CeFindAllDatabases_Proxy(
  1489. IRAPISession * This,
  1490. DWORD DbaseType,
  1491. WORD Flags,
  1492. LPWORD cFindData,
  1493. LPLPCEDB_FIND_DATA ppFindData);
  1494. void __RPC_STUB IRAPISession_CeFindAllDatabases_Stub(
  1495. IRpcStubBuffer *This,
  1496. IRpcChannelBuffer *_pRpcChannelBuffer,
  1497. PRPC_MESSAGE _pRpcMessage,
  1498. DWORD *_pdwStubPhase);
  1499. void STDMETHODCALLTYPE IRAPISession_CeGetSystemInfo_Proxy(
  1500. IRAPISession * This,
  1501. LPSYSTEM_INFO lpSystemInfo);
  1502. void __RPC_STUB IRAPISession_CeGetSystemInfo_Stub(
  1503. IRpcStubBuffer *This,
  1504. IRpcChannelBuffer *_pRpcChannelBuffer,
  1505. PRPC_MESSAGE _pRpcMessage,
  1506. DWORD *_pdwStubPhase);
  1507. BOOL STDMETHODCALLTYPE IRAPISession_CeSHCreateShortcut_Proxy(
  1508. IRAPISession * This,
  1509. LPWSTR lpszShortcut,
  1510. LPWSTR lpszTarget);
  1511. void __RPC_STUB IRAPISession_CeSHCreateShortcut_Stub(
  1512. IRpcStubBuffer *This,
  1513. IRpcChannelBuffer *_pRpcChannelBuffer,
  1514. PRPC_MESSAGE _pRpcMessage,
  1515. DWORD *_pdwStubPhase);
  1516. BOOL STDMETHODCALLTYPE IRAPISession_CeSHGetShortcutTarget_Proxy(
  1517. IRAPISession * This,
  1518. LPWSTR lpszShortcut,
  1519. LPWSTR lpszTarget,
  1520. int cbMax);
  1521. void __RPC_STUB IRAPISession_CeSHGetShortcutTarget_Stub(
  1522. IRpcStubBuffer *This,
  1523. IRpcChannelBuffer *_pRpcChannelBuffer,
  1524. PRPC_MESSAGE _pRpcMessage,
  1525. DWORD *_pdwStubPhase);
  1526. BOOL STDMETHODCALLTYPE IRAPISession_CeCheckPassword_Proxy(
  1527. IRAPISession * This,
  1528. LPWSTR lpszPassword);
  1529. void __RPC_STUB IRAPISession_CeCheckPassword_Stub(
  1530. IRpcStubBuffer *This,
  1531. IRpcChannelBuffer *_pRpcChannelBuffer,
  1532. PRPC_MESSAGE _pRpcMessage,
  1533. DWORD *_pdwStubPhase);
  1534. BOOL STDMETHODCALLTYPE IRAPISession_CeGetFileTime_Proxy(
  1535. IRAPISession * This,
  1536. HANDLE hFile,
  1537. LPFILETIME lpCreationTime,
  1538. LPFILETIME lpLastAccessTime,
  1539. LPFILETIME lpLastWriteTime);
  1540. void __RPC_STUB IRAPISession_CeGetFileTime_Stub(
  1541. IRpcStubBuffer *This,
  1542. IRpcChannelBuffer *_pRpcChannelBuffer,
  1543. PRPC_MESSAGE _pRpcMessage,
  1544. DWORD *_pdwStubPhase);
  1545. BOOL STDMETHODCALLTYPE IRAPISession_CeSetFileTime_Proxy(
  1546. IRAPISession * This,
  1547. HANDLE hFile,
  1548. FILETIME *lpCreationTime,
  1549. FILETIME *lpLastAccessTime,
  1550. FILETIME *lpLastWriteTime);
  1551. void __RPC_STUB IRAPISession_CeSetFileTime_Stub(
  1552. IRpcStubBuffer *This,
  1553. IRpcChannelBuffer *_pRpcChannelBuffer,
  1554. PRPC_MESSAGE _pRpcMessage,
  1555. DWORD *_pdwStubPhase);
  1556. BOOL STDMETHODCALLTYPE IRAPISession_CeGetVersionEx_Proxy(
  1557. IRAPISession * This,
  1558. LPCEOSVERSIONINFO lpVersionInformation);
  1559. void __RPC_STUB IRAPISession_CeGetVersionEx_Stub(
  1560. IRpcStubBuffer *This,
  1561. IRpcChannelBuffer *_pRpcChannelBuffer,
  1562. PRPC_MESSAGE _pRpcMessage,
  1563. DWORD *_pdwStubPhase);
  1564. HWND STDMETHODCALLTYPE IRAPISession_CeGetWindow_Proxy(
  1565. IRAPISession * This,
  1566. HWND hWnd,
  1567. UINT uCmd);
  1568. void __RPC_STUB IRAPISession_CeGetWindow_Stub(
  1569. IRpcStubBuffer *This,
  1570. IRpcChannelBuffer *_pRpcChannelBuffer,
  1571. PRPC_MESSAGE _pRpcMessage,
  1572. DWORD *_pdwStubPhase);
  1573. LONG STDMETHODCALLTYPE IRAPISession_CeGetWindowLong_Proxy(
  1574. IRAPISession * This,
  1575. HWND hWnd,
  1576. int nIndex);
  1577. void __RPC_STUB IRAPISession_CeGetWindowLong_Stub(
  1578. IRpcStubBuffer *This,
  1579. IRpcChannelBuffer *_pRpcChannelBuffer,
  1580. PRPC_MESSAGE _pRpcMessage,
  1581. DWORD *_pdwStubPhase);
  1582. INT STDMETHODCALLTYPE IRAPISession_CeGetWindowText_Proxy(
  1583. IRAPISession * This,
  1584. HWND hWnd,
  1585. LPWSTR lpString,
  1586. int nMaxCount);
  1587. void __RPC_STUB IRAPISession_CeGetWindowText_Stub(
  1588. IRpcStubBuffer *This,
  1589. IRpcChannelBuffer *_pRpcChannelBuffer,
  1590. PRPC_MESSAGE _pRpcMessage,
  1591. DWORD *_pdwStubPhase);
  1592. INT STDMETHODCALLTYPE IRAPISession_CeGetClassName_Proxy(
  1593. IRAPISession * This,
  1594. HWND hWnd,
  1595. LPWSTR lpClassName,
  1596. int nMaxCount);
  1597. void __RPC_STUB IRAPISession_CeGetClassName_Stub(
  1598. IRpcStubBuffer *This,
  1599. IRpcChannelBuffer *_pRpcChannelBuffer,
  1600. PRPC_MESSAGE _pRpcMessage,
  1601. DWORD *_pdwStubPhase);
  1602. void STDMETHODCALLTYPE IRAPISession_CeGlobalMemoryStatus_Proxy(
  1603. IRAPISession * This,
  1604. LPMEMORYSTATUS lpmst);
  1605. void __RPC_STUB IRAPISession_CeGlobalMemoryStatus_Stub(
  1606. IRpcStubBuffer *This,
  1607. IRpcChannelBuffer *_pRpcChannelBuffer,
  1608. PRPC_MESSAGE _pRpcMessage,
  1609. DWORD *_pdwStubPhase);
  1610. BOOL STDMETHODCALLTYPE IRAPISession_CeGetSystemPowerStatusEx_Proxy(
  1611. IRAPISession * This,
  1612. PSYSTEM_POWER_STATUS_EX pstatus,
  1613. BOOL fUpdate);
  1614. void __RPC_STUB IRAPISession_CeGetSystemPowerStatusEx_Stub(
  1615. IRpcStubBuffer *This,
  1616. IRpcChannelBuffer *_pRpcChannelBuffer,
  1617. PRPC_MESSAGE _pRpcMessage,
  1618. DWORD *_pdwStubPhase);
  1619. DWORD STDMETHODCALLTYPE IRAPISession_CeGetTempPath_Proxy(
  1620. IRAPISession * This,
  1621. DWORD nBufferLength,
  1622. LPWSTR lpBuffer);
  1623. void __RPC_STUB IRAPISession_CeGetTempPath_Stub(
  1624. IRpcStubBuffer *This,
  1625. IRpcChannelBuffer *_pRpcChannelBuffer,
  1626. PRPC_MESSAGE _pRpcMessage,
  1627. DWORD *_pdwStubPhase);
  1628. DWORD STDMETHODCALLTYPE IRAPISession_CeGetSpecialFolderPath_Proxy(
  1629. IRAPISession * This,
  1630. int nFolder,
  1631. DWORD nBufferLength,
  1632. LPWSTR lpBuffer);
  1633. void __RPC_STUB IRAPISession_CeGetSpecialFolderPath_Stub(
  1634. IRpcStubBuffer *This,
  1635. IRpcChannelBuffer *_pRpcChannelBuffer,
  1636. PRPC_MESSAGE _pRpcMessage,
  1637. DWORD *_pdwStubPhase);
  1638. HRESULT STDMETHODCALLTYPE IRAPISession_CeRapiInvoke_Proxy(
  1639. IRAPISession * This,
  1640. LPCWSTR pDllPath,
  1641. LPCWSTR pFunctionName,
  1642. DWORD cbInput,
  1643. BYTE *pInput,
  1644. DWORD *pcbOutput,
  1645. BYTE **ppOutput,
  1646. IRAPIStream **ppIRAPIStream,
  1647. DWORD dwReserved);
  1648. void __RPC_STUB IRAPISession_CeRapiInvoke_Stub(
  1649. IRpcStubBuffer *This,
  1650. IRpcChannelBuffer *_pRpcChannelBuffer,
  1651. PRPC_MESSAGE _pRpcMessage,
  1652. DWORD *_pdwStubPhase);
  1653. HANDLE STDMETHODCALLTYPE IRAPISession_CeFindFirstDatabaseEx_Proxy(
  1654. IRAPISession * This,
  1655. PCEGUID pguid,
  1656. DWORD dwDbaseType);
  1657. void __RPC_STUB IRAPISession_CeFindFirstDatabaseEx_Stub(
  1658. IRpcStubBuffer *This,
  1659. IRpcChannelBuffer *_pRpcChannelBuffer,
  1660. PRPC_MESSAGE _pRpcMessage,
  1661. DWORD *_pdwStubPhase);
  1662. CEOID STDMETHODCALLTYPE IRAPISession_CeFindNextDatabaseEx_Proxy(
  1663. IRAPISession * This,
  1664. HANDLE hEnum,
  1665. PCEGUID pguid);
  1666. void __RPC_STUB IRAPISession_CeFindNextDatabaseEx_Stub(
  1667. IRpcStubBuffer *This,
  1668. IRpcChannelBuffer *_pRpcChannelBuffer,
  1669. PRPC_MESSAGE _pRpcMessage,
  1670. DWORD *_pdwStubPhase);
  1671. CEOID STDMETHODCALLTYPE IRAPISession_CeCreateDatabaseEx_Proxy(
  1672. IRAPISession * This,
  1673. PCEGUID pceguid,
  1674. CEDBASEINFO *lpCEDBInfo);
  1675. void __RPC_STUB IRAPISession_CeCreateDatabaseEx_Stub(
  1676. IRpcStubBuffer *This,
  1677. IRpcChannelBuffer *_pRpcChannelBuffer,
  1678. PRPC_MESSAGE _pRpcMessage,
  1679. DWORD *_pdwStubPhase);
  1680. BOOL STDMETHODCALLTYPE IRAPISession_CeSetDatabaseInfoEx_Proxy(
  1681. IRAPISession * This,
  1682. PCEGUID pceguid,
  1683. CEOID oidDbase,
  1684. CEDBASEINFO *pNewInfo);
  1685. void __RPC_STUB IRAPISession_CeSetDatabaseInfoEx_Stub(
  1686. IRpcStubBuffer *This,
  1687. IRpcChannelBuffer *_pRpcChannelBuffer,
  1688. PRPC_MESSAGE _pRpcMessage,
  1689. DWORD *_pdwStubPhase);
  1690. HANDLE STDMETHODCALLTYPE IRAPISession_CeOpenDatabaseEx_Proxy(
  1691. IRAPISession * This,
  1692. PCEGUID pceguid,
  1693. PCEOID poid,
  1694. LPWSTR lpszName,
  1695. CEPROPID propid,
  1696. DWORD dwFlags,
  1697. CENOTIFYREQUEST *pReq);
  1698. void __RPC_STUB IRAPISession_CeOpenDatabaseEx_Stub(
  1699. IRpcStubBuffer *This,
  1700. IRpcChannelBuffer *_pRpcChannelBuffer,
  1701. PRPC_MESSAGE _pRpcMessage,
  1702. DWORD *_pdwStubPhase);
  1703. BOOL STDMETHODCALLTYPE IRAPISession_CeDeleteDatabaseEx_Proxy(
  1704. IRAPISession * This,
  1705. PCEGUID pceguid,
  1706. CEOID oidDbase);
  1707. void __RPC_STUB IRAPISession_CeDeleteDatabaseEx_Stub(
  1708. IRpcStubBuffer *This,
  1709. IRpcChannelBuffer *_pRpcChannelBuffer,
  1710. PRPC_MESSAGE _pRpcMessage,
  1711. DWORD *_pdwStubPhase);
  1712. CEOID STDMETHODCALLTYPE IRAPISession_CeReadRecordPropsEx_Proxy(
  1713. IRAPISession * This,
  1714. HANDLE hDbase,
  1715. DWORD dwFlags,
  1716. LPWORD lpcPropID,
  1717. CEPROPID *rgPropID,
  1718. LPBYTE *lplpBuffer,
  1719. LPDWORD lpcbBuffer,
  1720. HANDLE hHeap);
  1721. void __RPC_STUB IRAPISession_CeReadRecordPropsEx_Stub(
  1722. IRpcStubBuffer *This,
  1723. IRpcChannelBuffer *_pRpcChannelBuffer,
  1724. PRPC_MESSAGE _pRpcMessage,
  1725. DWORD *_pdwStubPhase);
  1726. BOOL STDMETHODCALLTYPE IRAPISession_CeMountDBVol_Proxy(
  1727. IRAPISession * This,
  1728. PCEGUID pceguid,
  1729. LPWSTR lpszDBVol,
  1730. DWORD dwFlags);
  1731. void __RPC_STUB IRAPISession_CeMountDBVol_Stub(
  1732. IRpcStubBuffer *This,
  1733. IRpcChannelBuffer *_pRpcChannelBuffer,
  1734. PRPC_MESSAGE _pRpcMessage,
  1735. DWORD *_pdwStubPhase);
  1736. BOOL STDMETHODCALLTYPE IRAPISession_CeUnmountDBVol_Proxy(
  1737. IRAPISession * This,
  1738. PCEGUID pceguid);
  1739. void __RPC_STUB IRAPISession_CeUnmountDBVol_Stub(
  1740. IRpcStubBuffer *This,
  1741. IRpcChannelBuffer *_pRpcChannelBuffer,
  1742. PRPC_MESSAGE _pRpcMessage,
  1743. DWORD *_pdwStubPhase);
  1744. BOOL STDMETHODCALLTYPE IRAPISession_CeFlushDBVol_Proxy(
  1745. IRAPISession * This,
  1746. PCEGUID pceguid);
  1747. void __RPC_STUB IRAPISession_CeFlushDBVol_Stub(
  1748. IRpcStubBuffer *This,
  1749. IRpcChannelBuffer *_pRpcChannelBuffer,
  1750. PRPC_MESSAGE _pRpcMessage,
  1751. DWORD *_pdwStubPhase);
  1752. BOOL STDMETHODCALLTYPE IRAPISession_CeEnumDBVolumes_Proxy(
  1753. IRAPISession * This,
  1754. PCEGUID pceguid,
  1755. LPWSTR lpBuf,
  1756. DWORD dwNumChars);
  1757. void __RPC_STUB IRAPISession_CeEnumDBVolumes_Stub(
  1758. IRpcStubBuffer *This,
  1759. IRpcChannelBuffer *_pRpcChannelBuffer,
  1760. PRPC_MESSAGE _pRpcMessage,
  1761. DWORD *_pdwStubPhase);
  1762. BOOL STDMETHODCALLTYPE IRAPISession_CeOidGetInfoEx_Proxy(
  1763. IRAPISession * This,
  1764. PCEGUID pceguid,
  1765. CEOID oid,
  1766. CEOIDINFO *oidInfo);
  1767. void __RPC_STUB IRAPISession_CeOidGetInfoEx_Stub(
  1768. IRpcStubBuffer *This,
  1769. IRpcChannelBuffer *_pRpcChannelBuffer,
  1770. PRPC_MESSAGE _pRpcMessage,
  1771. DWORD *_pdwStubPhase);
  1772. HRESULT STDMETHODCALLTYPE IRAPISession_CeSyncStart_Proxy(
  1773. IRAPISession * This,
  1774. LPCWSTR szCommand);
  1775. void __RPC_STUB IRAPISession_CeSyncStart_Stub(
  1776. IRpcStubBuffer *This,
  1777. IRpcChannelBuffer *_pRpcChannelBuffer,
  1778. PRPC_MESSAGE _pRpcMessage,
  1779. DWORD *_pdwStubPhase);
  1780. HRESULT STDMETHODCALLTYPE IRAPISession_CeSyncStop_Proxy(
  1781. IRAPISession * This);
  1782. void __RPC_STUB IRAPISession_CeSyncStop_Stub(
  1783. IRpcStubBuffer *This,
  1784. IRpcChannelBuffer *_pRpcChannelBuffer,
  1785. PRPC_MESSAGE _pRpcMessage,
  1786. DWORD *_pdwStubPhase);
  1787. BOOL STDMETHODCALLTYPE IRAPISession_CeQueryInstructionSet_Proxy(
  1788. IRAPISession * This,
  1789. DWORD dwInstructionSet,
  1790. LPDWORD lpdwCurrentInstructionSet);
  1791. void __RPC_STUB IRAPISession_CeQueryInstructionSet_Stub(
  1792. IRpcStubBuffer *This,
  1793. IRpcChannelBuffer *_pRpcChannelBuffer,
  1794. PRPC_MESSAGE _pRpcMessage,
  1795. DWORD *_pdwStubPhase);
  1796. BOOL STDMETHODCALLTYPE IRAPISession_CeGetDiskFreeSpaceEx_Proxy(
  1797. IRAPISession * This,
  1798. LPCWSTR lpDirectoryName,
  1799. ULARGE_INTEGER *lpFreeBytesAvailableToCaller,
  1800. ULARGE_INTEGER *lpTotalNumberOfBytes,
  1801. ULARGE_INTEGER *lpTotalNumberOfFreeBytes);
  1802. void __RPC_STUB IRAPISession_CeGetDiskFreeSpaceEx_Stub(
  1803. IRpcStubBuffer *This,
  1804. IRpcChannelBuffer *_pRpcChannelBuffer,
  1805. PRPC_MESSAGE _pRpcMessage,
  1806. DWORD *_pdwStubPhase);
  1807. #endif /* __IRAPISession_INTERFACE_DEFINED__ */
  1808. #ifndef __IRAPIDevice_INTERFACE_DEFINED__
  1809. #define __IRAPIDevice_INTERFACE_DEFINED__
  1810. /* interface IRAPIDevice */
  1811. /* [unique][uuid][object] */
  1812. EXTERN_C const IID IID_IRAPIDevice;
  1813. #if defined(__cplusplus) && !defined(CINTERFACE)
  1814. MIDL_INTERFACE("8a0f1632-3905-4ca4-aea4-7e094ecbb9a7")
  1815. IRAPIDevice : public IUnknown
  1816. {
  1817. public:
  1818. virtual HRESULT STDMETHODCALLTYPE GetConnectStat(
  1819. /* [out] */ RAPI_DEVICESTATUS *pStat) = 0;
  1820. virtual HRESULT STDMETHODCALLTYPE GetDeviceInfo(
  1821. /* [out] */ RAPI_DEVICEINFO *pDevInfo) = 0;
  1822. virtual HRESULT STDMETHODCALLTYPE GetConnectionInfo(
  1823. /* [out] */ RAPI_CONNECTIONINFO *pConnInfo) = 0;
  1824. virtual HRESULT STDMETHODCALLTYPE CreateSession(
  1825. /* [out] */ IRAPISession **ppISession) = 0;
  1826. };
  1827. #else /* C style interface */
  1828. typedef struct IRAPIDeviceVtbl
  1829. {
  1830. BEGIN_INTERFACE
  1831. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1832. IRAPIDevice * This,
  1833. /* [in] */ REFIID riid,
  1834. /* [iid_is][out] */ void **ppvObject);
  1835. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1836. IRAPIDevice * This);
  1837. ULONG ( STDMETHODCALLTYPE *Release )(
  1838. IRAPIDevice * This);
  1839. HRESULT ( STDMETHODCALLTYPE *GetConnectStat )(
  1840. IRAPIDevice * This,
  1841. /* [out] */ RAPI_DEVICESTATUS *pStat);
  1842. HRESULT ( STDMETHODCALLTYPE *GetDeviceInfo )(
  1843. IRAPIDevice * This,
  1844. /* [out] */ RAPI_DEVICEINFO *pDevInfo);
  1845. HRESULT ( STDMETHODCALLTYPE *GetConnectionInfo )(
  1846. IRAPIDevice * This,
  1847. /* [out] */ RAPI_CONNECTIONINFO *pConnInfo);
  1848. HRESULT ( STDMETHODCALLTYPE *CreateSession )(
  1849. IRAPIDevice * This,
  1850. /* [out] */ IRAPISession **ppISession);
  1851. END_INTERFACE
  1852. } IRAPIDeviceVtbl;
  1853. interface IRAPIDevice
  1854. {
  1855. CONST_VTBL struct IRAPIDeviceVtbl *lpVtbl;
  1856. };
  1857. #ifdef COBJMACROS
  1858. #define IRAPIDevice_QueryInterface(This,riid,ppvObject) \
  1859. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1860. #define IRAPIDevice_AddRef(This) \
  1861. (This)->lpVtbl -> AddRef(This)
  1862. #define IRAPIDevice_Release(This) \
  1863. (This)->lpVtbl -> Release(This)
  1864. #define IRAPIDevice_GetConnectStat(This,pStat) \
  1865. (This)->lpVtbl -> GetConnectStat(This,pStat)
  1866. #define IRAPIDevice_GetDeviceInfo(This,pDevInfo) \
  1867. (This)->lpVtbl -> GetDeviceInfo(This,pDevInfo)
  1868. #define IRAPIDevice_GetConnectionInfo(This,pConnInfo) \
  1869. (This)->lpVtbl -> GetConnectionInfo(This,pConnInfo)
  1870. #define IRAPIDevice_CreateSession(This,ppISession) \
  1871. (This)->lpVtbl -> CreateSession(This,ppISession)
  1872. #endif /* COBJMACROS */
  1873. #endif /* C style interface */
  1874. HRESULT STDMETHODCALLTYPE IRAPIDevice_GetConnectStat_Proxy(
  1875. IRAPIDevice * This,
  1876. /* [out] */ RAPI_DEVICESTATUS *pStat);
  1877. void __RPC_STUB IRAPIDevice_GetConnectStat_Stub(
  1878. IRpcStubBuffer *This,
  1879. IRpcChannelBuffer *_pRpcChannelBuffer,
  1880. PRPC_MESSAGE _pRpcMessage,
  1881. DWORD *_pdwStubPhase);
  1882. HRESULT STDMETHODCALLTYPE IRAPIDevice_GetDeviceInfo_Proxy(
  1883. IRAPIDevice * This,
  1884. /* [out] */ RAPI_DEVICEINFO *pDevInfo);
  1885. void __RPC_STUB IRAPIDevice_GetDeviceInfo_Stub(
  1886. IRpcStubBuffer *This,
  1887. IRpcChannelBuffer *_pRpcChannelBuffer,
  1888. PRPC_MESSAGE _pRpcMessage,
  1889. DWORD *_pdwStubPhase);
  1890. HRESULT STDMETHODCALLTYPE IRAPIDevice_GetConnectionInfo_Proxy(
  1891. IRAPIDevice * This,
  1892. /* [out] */ RAPI_CONNECTIONINFO *pConnInfo);
  1893. void __RPC_STUB IRAPIDevice_GetConnectionInfo_Stub(
  1894. IRpcStubBuffer *This,
  1895. IRpcChannelBuffer *_pRpcChannelBuffer,
  1896. PRPC_MESSAGE _pRpcMessage,
  1897. DWORD *_pdwStubPhase);
  1898. HRESULT STDMETHODCALLTYPE IRAPIDevice_CreateSession_Proxy(
  1899. IRAPIDevice * This,
  1900. /* [out] */ IRAPISession **ppISession);
  1901. void __RPC_STUB IRAPIDevice_CreateSession_Stub(
  1902. IRpcStubBuffer *This,
  1903. IRpcChannelBuffer *_pRpcChannelBuffer,
  1904. PRPC_MESSAGE _pRpcMessage,
  1905. DWORD *_pdwStubPhase);
  1906. #endif /* __IRAPIDevice_INTERFACE_DEFINED__ */
  1907. #ifndef __IRAPIEnumDevices_INTERFACE_DEFINED__
  1908. #define __IRAPIEnumDevices_INTERFACE_DEFINED__
  1909. /* interface IRAPIEnumDevices */
  1910. /* [unique][uuid][object] */
  1911. EXTERN_C const IID IID_IRAPIEnumDevices;
  1912. #if defined(__cplusplus) && !defined(CINTERFACE)
  1913. MIDL_INTERFACE("357a557c-b03f-4240-90d8-c6c71c659bf1")
  1914. IRAPIEnumDevices : public IUnknown
  1915. {
  1916. public:
  1917. virtual HRESULT STDMETHODCALLTYPE Next(
  1918. /* [out] */ IRAPIDevice **ppIDevice) = 0;
  1919. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1920. virtual HRESULT STDMETHODCALLTYPE Skip(
  1921. /* [in] */ ULONG cElt) = 0;
  1922. virtual HRESULT STDMETHODCALLTYPE Clone(
  1923. /* [out] */ IRAPIEnumDevices **ppIEnum) = 0;
  1924. virtual HRESULT STDMETHODCALLTYPE GetCount(
  1925. /* [out] */ ULONG *pcElt) = 0;
  1926. };
  1927. #else /* C style interface */
  1928. typedef struct IRAPIEnumDevicesVtbl
  1929. {
  1930. BEGIN_INTERFACE
  1931. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1932. IRAPIEnumDevices * This,
  1933. /* [in] */ REFIID riid,
  1934. /* [iid_is][out] */ void **ppvObject);
  1935. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1936. IRAPIEnumDevices * This);
  1937. ULONG ( STDMETHODCALLTYPE *Release )(
  1938. IRAPIEnumDevices * This);
  1939. HRESULT ( STDMETHODCALLTYPE *Next )(
  1940. IRAPIEnumDevices * This,
  1941. /* [out] */ IRAPIDevice **ppIDevice);
  1942. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1943. IRAPIEnumDevices * This);
  1944. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1945. IRAPIEnumDevices * This,
  1946. /* [in] */ ULONG cElt);
  1947. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1948. IRAPIEnumDevices * This,
  1949. /* [out] */ IRAPIEnumDevices **ppIEnum);
  1950. HRESULT ( STDMETHODCALLTYPE *GetCount )(
  1951. IRAPIEnumDevices * This,
  1952. /* [out] */ ULONG *pcElt);
  1953. END_INTERFACE
  1954. } IRAPIEnumDevicesVtbl;
  1955. interface IRAPIEnumDevices
  1956. {
  1957. CONST_VTBL struct IRAPIEnumDevicesVtbl *lpVtbl;
  1958. };
  1959. #ifdef COBJMACROS
  1960. #define IRAPIEnumDevices_QueryInterface(This,riid,ppvObject) \
  1961. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1962. #define IRAPIEnumDevices_AddRef(This) \
  1963. (This)->lpVtbl -> AddRef(This)
  1964. #define IRAPIEnumDevices_Release(This) \
  1965. (This)->lpVtbl -> Release(This)
  1966. #define IRAPIEnumDevices_Next(This,ppIDevice) \
  1967. (This)->lpVtbl -> Next(This,ppIDevice)
  1968. #define IRAPIEnumDevices_Reset(This) \
  1969. (This)->lpVtbl -> Reset(This)
  1970. #define IRAPIEnumDevices_Skip(This,cElt) \
  1971. (This)->lpVtbl -> Skip(This,cElt)
  1972. #define IRAPIEnumDevices_Clone(This,ppIEnum) \
  1973. (This)->lpVtbl -> Clone(This,ppIEnum)
  1974. #define IRAPIEnumDevices_GetCount(This,pcElt) \
  1975. (This)->lpVtbl -> GetCount(This,pcElt)
  1976. #endif /* COBJMACROS */
  1977. #endif /* C style interface */
  1978. HRESULT STDMETHODCALLTYPE IRAPIEnumDevices_Next_Proxy(
  1979. IRAPIEnumDevices * This,
  1980. /* [out] */ IRAPIDevice **ppIDevice);
  1981. void __RPC_STUB IRAPIEnumDevices_Next_Stub(
  1982. IRpcStubBuffer *This,
  1983. IRpcChannelBuffer *_pRpcChannelBuffer,
  1984. PRPC_MESSAGE _pRpcMessage,
  1985. DWORD *_pdwStubPhase);
  1986. HRESULT STDMETHODCALLTYPE IRAPIEnumDevices_Reset_Proxy(
  1987. IRAPIEnumDevices * This);
  1988. void __RPC_STUB IRAPIEnumDevices_Reset_Stub(
  1989. IRpcStubBuffer *This,
  1990. IRpcChannelBuffer *_pRpcChannelBuffer,
  1991. PRPC_MESSAGE _pRpcMessage,
  1992. DWORD *_pdwStubPhase);
  1993. HRESULT STDMETHODCALLTYPE IRAPIEnumDevices_Skip_Proxy(
  1994. IRAPIEnumDevices * This,
  1995. /* [in] */ ULONG cElt);
  1996. void __RPC_STUB IRAPIEnumDevices_Skip_Stub(
  1997. IRpcStubBuffer *This,
  1998. IRpcChannelBuffer *_pRpcChannelBuffer,
  1999. PRPC_MESSAGE _pRpcMessage,
  2000. DWORD *_pdwStubPhase);
  2001. HRESULT STDMETHODCALLTYPE IRAPIEnumDevices_Clone_Proxy(
  2002. IRAPIEnumDevices * This,
  2003. /* [out] */ IRAPIEnumDevices **ppIEnum);
  2004. void __RPC_STUB IRAPIEnumDevices_Clone_Stub(
  2005. IRpcStubBuffer *This,
  2006. IRpcChannelBuffer *_pRpcChannelBuffer,
  2007. PRPC_MESSAGE _pRpcMessage,
  2008. DWORD *_pdwStubPhase);
  2009. HRESULT STDMETHODCALLTYPE IRAPIEnumDevices_GetCount_Proxy(
  2010. IRAPIEnumDevices * This,
  2011. /* [out] */ ULONG *pcElt);
  2012. void __RPC_STUB IRAPIEnumDevices_GetCount_Stub(
  2013. IRpcStubBuffer *This,
  2014. IRpcChannelBuffer *_pRpcChannelBuffer,
  2015. PRPC_MESSAGE _pRpcMessage,
  2016. DWORD *_pdwStubPhase);
  2017. #endif /* __IRAPIEnumDevices_INTERFACE_DEFINED__ */
  2018. #ifndef __IRAPISink_INTERFACE_DEFINED__
  2019. #define __IRAPISink_INTERFACE_DEFINED__
  2020. /* interface IRAPISink */
  2021. /* [unique][uuid][object] */
  2022. EXTERN_C const IID IID_IRAPISink;
  2023. #if defined(__cplusplus) && !defined(CINTERFACE)
  2024. MIDL_INTERFACE("b4fd053e-4810-46db-889b-20e638e334f0")
  2025. IRAPISink : public IUnknown
  2026. {
  2027. public:
  2028. virtual HRESULT STDMETHODCALLTYPE OnDeviceConnected(
  2029. /* [in] */ IRAPIDevice *pIDevice) = 0;
  2030. virtual HRESULT STDMETHODCALLTYPE OnDeviceDisconnected(
  2031. /* [in] */ IRAPIDevice *pIDevice) = 0;
  2032. };
  2033. #else /* C style interface */
  2034. typedef struct IRAPISinkVtbl
  2035. {
  2036. BEGIN_INTERFACE
  2037. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2038. IRAPISink * This,
  2039. /* [in] */ REFIID riid,
  2040. /* [iid_is][out] */ void **ppvObject);
  2041. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2042. IRAPISink * This);
  2043. ULONG ( STDMETHODCALLTYPE *Release )(
  2044. IRAPISink * This);
  2045. HRESULT ( STDMETHODCALLTYPE *OnDeviceConnected )(
  2046. IRAPISink * This,
  2047. /* [in] */ IRAPIDevice *pIDevice);
  2048. HRESULT ( STDMETHODCALLTYPE *OnDeviceDisconnected )(
  2049. IRAPISink * This,
  2050. /* [in] */ IRAPIDevice *pIDevice);
  2051. END_INTERFACE
  2052. } IRAPISinkVtbl;
  2053. interface IRAPISink
  2054. {
  2055. CONST_VTBL struct IRAPISinkVtbl *lpVtbl;
  2056. };
  2057. #ifdef COBJMACROS
  2058. #define IRAPISink_QueryInterface(This,riid,ppvObject) \
  2059. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2060. #define IRAPISink_AddRef(This) \
  2061. (This)->lpVtbl -> AddRef(This)
  2062. #define IRAPISink_Release(This) \
  2063. (This)->lpVtbl -> Release(This)
  2064. #define IRAPISink_OnDeviceConnected(This,pIDevice) \
  2065. (This)->lpVtbl -> OnDeviceConnected(This,pIDevice)
  2066. #define IRAPISink_OnDeviceDisconnected(This,pIDevice) \
  2067. (This)->lpVtbl -> OnDeviceDisconnected(This,pIDevice)
  2068. #endif /* COBJMACROS */
  2069. #endif /* C style interface */
  2070. HRESULT STDMETHODCALLTYPE IRAPISink_OnDeviceConnected_Proxy(
  2071. IRAPISink * This,
  2072. /* [in] */ IRAPIDevice *pIDevice);
  2073. void __RPC_STUB IRAPISink_OnDeviceConnected_Stub(
  2074. IRpcStubBuffer *This,
  2075. IRpcChannelBuffer *_pRpcChannelBuffer,
  2076. PRPC_MESSAGE _pRpcMessage,
  2077. DWORD *_pdwStubPhase);
  2078. HRESULT STDMETHODCALLTYPE IRAPISink_OnDeviceDisconnected_Proxy(
  2079. IRAPISink * This,
  2080. /* [in] */ IRAPIDevice *pIDevice);
  2081. void __RPC_STUB IRAPISink_OnDeviceDisconnected_Stub(
  2082. IRpcStubBuffer *This,
  2083. IRpcChannelBuffer *_pRpcChannelBuffer,
  2084. PRPC_MESSAGE _pRpcMessage,
  2085. DWORD *_pdwStubPhase);
  2086. #endif /* __IRAPISink_INTERFACE_DEFINED__ */
  2087. #ifndef __IRAPIDesktop_INTERFACE_DEFINED__
  2088. #define __IRAPIDesktop_INTERFACE_DEFINED__
  2089. /* interface IRAPIDesktop */
  2090. /* [unique][uuid][object] */
  2091. EXTERN_C const IID IID_IRAPIDesktop;
  2092. #if defined(__cplusplus) && !defined(CINTERFACE)
  2093. MIDL_INTERFACE("dcbeb807-14d0-4cbd-926c-b991f4fd1b91")
  2094. IRAPIDesktop : public IUnknown
  2095. {
  2096. public:
  2097. virtual HRESULT STDMETHODCALLTYPE FindDevice(
  2098. /* [in] */ RAPIDEVICEID *pDeviceID,
  2099. /* [in] */ RAPI_GETDEVICEOPCODE opFlags,
  2100. /* [out] */ IRAPIDevice **ppIDevice) = 0;
  2101. virtual HRESULT STDMETHODCALLTYPE EnumDevices(
  2102. /* [out] */ IRAPIEnumDevices **ppIEnum) = 0;
  2103. virtual HRESULT STDMETHODCALLTYPE Advise(
  2104. /* [in] */ IRAPISink *pISink,
  2105. /* [out] */ DWORD_PTR *pdwContext) = 0;
  2106. virtual HRESULT STDMETHODCALLTYPE UnAdvise(
  2107. /* [in] */ DWORD_PTR dwContext) = 0;
  2108. };
  2109. #else /* C style interface */
  2110. typedef struct IRAPIDesktopVtbl
  2111. {
  2112. BEGIN_INTERFACE
  2113. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2114. IRAPIDesktop * This,
  2115. /* [in] */ REFIID riid,
  2116. /* [iid_is][out] */ void **ppvObject);
  2117. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2118. IRAPIDesktop * This);
  2119. ULONG ( STDMETHODCALLTYPE *Release )(
  2120. IRAPIDesktop * This);
  2121. HRESULT ( STDMETHODCALLTYPE *FindDevice )(
  2122. IRAPIDesktop * This,
  2123. /* [in] */ RAPIDEVICEID *pDeviceID,
  2124. /* [in] */ RAPI_GETDEVICEOPCODE opFlags,
  2125. /* [out] */ IRAPIDevice **ppIDevice);
  2126. HRESULT ( STDMETHODCALLTYPE *EnumDevices )(
  2127. IRAPIDesktop * This,
  2128. /* [out] */ IRAPIEnumDevices **ppIEnum);
  2129. HRESULT ( STDMETHODCALLTYPE *Advise )(
  2130. IRAPIDesktop * This,
  2131. /* [in] */ IRAPISink *pISink,
  2132. /* [out] */ DWORD_PTR *pdwContext);
  2133. HRESULT ( STDMETHODCALLTYPE *UnAdvise )(
  2134. IRAPIDesktop * This,
  2135. /* [in] */ DWORD_PTR dwContext);
  2136. END_INTERFACE
  2137. } IRAPIDesktopVtbl;
  2138. interface IRAPIDesktop
  2139. {
  2140. CONST_VTBL struct IRAPIDesktopVtbl *lpVtbl;
  2141. };
  2142. #ifdef COBJMACROS
  2143. #define IRAPIDesktop_QueryInterface(This,riid,ppvObject) \
  2144. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2145. #define IRAPIDesktop_AddRef(This) \
  2146. (This)->lpVtbl -> AddRef(This)
  2147. #define IRAPIDesktop_Release(This) \
  2148. (This)->lpVtbl -> Release(This)
  2149. #define IRAPIDesktop_FindDevice(This,pDeviceID,opFlags,ppIDevice) \
  2150. (This)->lpVtbl -> FindDevice(This,pDeviceID,opFlags,ppIDevice)
  2151. #define IRAPIDesktop_EnumDevices(This,ppIEnum) \
  2152. (This)->lpVtbl -> EnumDevices(This,ppIEnum)
  2153. #define IRAPIDesktop_Advise(This,pISink,pdwContext) \
  2154. (This)->lpVtbl -> Advise(This,pISink,pdwContext)
  2155. #define IRAPIDesktop_UnAdvise(This,dwContext) \
  2156. (This)->lpVtbl -> UnAdvise(This,dwContext)
  2157. #endif /* COBJMACROS */
  2158. #endif /* C style interface */
  2159. HRESULT STDMETHODCALLTYPE IRAPIDesktop_FindDevice_Proxy(
  2160. IRAPIDesktop * This,
  2161. /* [in] */ RAPIDEVICEID *pDeviceID,
  2162. /* [in] */ RAPI_GETDEVICEOPCODE opFlags,
  2163. /* [out] */ IRAPIDevice **ppIDevice);
  2164. void __RPC_STUB IRAPIDesktop_FindDevice_Stub(
  2165. IRpcStubBuffer *This,
  2166. IRpcChannelBuffer *_pRpcChannelBuffer,
  2167. PRPC_MESSAGE _pRpcMessage,
  2168. DWORD *_pdwStubPhase);
  2169. HRESULT STDMETHODCALLTYPE IRAPIDesktop_EnumDevices_Proxy(
  2170. IRAPIDesktop * This,
  2171. /* [out] */ IRAPIEnumDevices **ppIEnum);
  2172. void __RPC_STUB IRAPIDesktop_EnumDevices_Stub(
  2173. IRpcStubBuffer *This,
  2174. IRpcChannelBuffer *_pRpcChannelBuffer,
  2175. PRPC_MESSAGE _pRpcMessage,
  2176. DWORD *_pdwStubPhase);
  2177. HRESULT STDMETHODCALLTYPE IRAPIDesktop_Advise_Proxy(
  2178. IRAPIDesktop * This,
  2179. /* [in] */ IRAPISink *pISink,
  2180. /* [out] */ DWORD_PTR *pdwContext);
  2181. void __RPC_STUB IRAPIDesktop_Advise_Stub(
  2182. IRpcStubBuffer *This,
  2183. IRpcChannelBuffer *_pRpcChannelBuffer,
  2184. PRPC_MESSAGE _pRpcMessage,
  2185. DWORD *_pdwStubPhase);
  2186. HRESULT STDMETHODCALLTYPE IRAPIDesktop_UnAdvise_Proxy(
  2187. IRAPIDesktop * This,
  2188. /* [in] */ DWORD_PTR dwContext);
  2189. void __RPC_STUB IRAPIDesktop_UnAdvise_Stub(
  2190. IRpcStubBuffer *This,
  2191. IRpcChannelBuffer *_pRpcChannelBuffer,
  2192. PRPC_MESSAGE _pRpcMessage,
  2193. DWORD *_pdwStubPhase);
  2194. #endif /* __IRAPIDesktop_INTERFACE_DEFINED__ */
  2195. #ifndef __RAPILib_LIBRARY_DEFINED__
  2196. #define __RAPILib_LIBRARY_DEFINED__
  2197. /* library RAPILib */
  2198. /* [helpstring][version][uuid] */
  2199. EXTERN_C const IID LIBID_RAPILib;
  2200. EXTERN_C const CLSID CLSID_RAPI;
  2201. #ifdef __cplusplus
  2202. class DECLSPEC_UUID("35440327-1517-4B72-865E-3FFE8E97002F")
  2203. RAPI;
  2204. #endif
  2205. #endif /* __RAPILib_LIBRARY_DEFINED__ */
  2206. /* interface __MIDL_itf_RAPI2_0268 */
  2207. /* [local] */
  2208. #endif
  2209. extern RPC_IF_HANDLE __MIDL_itf_RAPI2_0268_v0_0_c_ifspec;
  2210. extern RPC_IF_HANDLE __MIDL_itf_RAPI2_0268_v0_0_s_ifspec;
  2211. /* Additional Prototypes for ALL interfaces */
  2212. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  2213. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  2214. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  2215. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  2216. /* end of Additional Prototypes */
  2217. #ifdef __cplusplus
  2218. }
  2219. #endif
  2220. #endif