newlib-cygwin/winsup/w32api/include/rapi.h

52 lines
1.4 KiB
C
Raw Normal View History

/* rapi.h - main header file for the RAPI API
2000-02-18 03:38:33 +08:00
NOTE: This strictly does not belong in the Win32 API since it's
really part of Platform SDK.
2000-02-18 03:38:33 +08:00
*/
#ifndef _RAPI_H
#define _RAPI_H
typedef struct IRAPIStream
{
struct IRAPIStreamVtbl * lpVtbl;
} IRAPIStream;
typedef struct IRAPIStreamVtbl IRAPIStreamVtbl;
typedef enum tagRAPISTREAMFLAG
{
STREAM_TIMEOUT_READ
2000-02-18 03:38:33 +08:00
} RAPISTREAMFLAG;
struct IRAPIStreamVtbl
{
HRESULT (__stdcall * SetRapiStat)( IRAPIStream *, RAPISTREAMFLAG, DWORD);
HRESULT (__stdcall * GetRapiStat)( IRAPIStream *, RAPISTREAMFLAG, DWORD *);
2000-02-18 03:38:33 +08:00
};
typedef HRESULT (STDAPICALLTYPE RAPIEXT)(DWORD, BYTE, DWORD, BYTE, IRAPIStream *);
2000-02-18 03:38:33 +08:00
typedef struct _RAPIINIT
{
DWORD cbSize;
HANDLE heRapiInit;
HRESULT hrRapiInit;
2000-02-18 03:38:33 +08:00
} RAPIINIT;
STDAPI CeRapiInit ();
STDAPI CeRapiInitEx (RAPIINIT*);
STDAPI_(BOOL) CeCreateProcess (LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES,
BOOL, DWORD, LPVOID, LPWSTR, LPSTARTUPINFO, LPPROCESS_INFORMATION);
STDAPI CeRapiUninit ();
STDAPI_(BOOL) CeWriteFile (HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED);
STDAPI_(HANDLE) CeCreateFile (LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE);
STDAPI_(BOOL) CeCreateDirectory (LPCWSTR, LPSECURITY_ATTRIBUTES);
STDAPI_(DWORD) CeGetLastError (void);
STDAPI_(BOOL) CeGetFileTime (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME);
STDAPI_(BOOL) CeCloseHandle (HANDLE);
2000-02-18 03:38:33 +08:00
#endif /* _RAPI_H */