| 1 |
/** |
| 2 |
* Windows API header module |
| 3 |
* |
| 4 |
* Translated from MinGW Windows headers |
| 5 |
* |
| 6 |
* Authors: Stewart Gordon |
| 7 |
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) |
| 8 |
* Source: $(DRUNTIMESRC core/sys/windows/_rapi.d) |
| 9 |
*/ |
| 10 |
module core.sys.windows.rapi; |
| 11 |
version (Windows): |
| 12 |
|
| 13 |
/* Comment from MinGW |
| 14 |
NOTE: This strictly does not belong in the Win32 API since it's |
| 15 |
really part of Platform SDK. |
| 16 |
*/ |
| 17 |
|
| 18 |
import core.sys.windows.winbase, core.sys.windows.windef; |
| 19 |
|
| 20 |
extern (Windows): |
| 21 |
|
| 22 |
enum RAPISTREAMFLAG |
| 23 |
{ |
| 24 |
STREAM_TIMEOUT_READ |
| 25 |
} |
| 26 |
|
| 27 |
interface IRAPIStream |
| 28 |
{ |
| 29 |
HRESULT SetRapiStat(RAPISTREAMFLAG, DWORD); |
| 30 |
HRESULT GetRapiStat(RAPISTREAMFLAG, DWORD*); |
| 31 |
} |
| 32 |
|
| 33 |
alias HRESULT function(DWORD, BYTE, DWORD, BYTE, IRAPIStream) RAPIEXT; |
| 34 |
|
| 35 |
struct RAPIINIT |
| 36 |
{ |
| 37 |
DWORD cbSize = this.sizeof; |
| 38 |
HANDLE heRapiInit; |
| 39 |
HRESULT hrRapiInit; |
| 40 |
} |
| 41 |
|
| 42 |
HRESULT CeRapiInit(); |
| 43 |
HRESULT CeRapiInitEx(RAPIINIT*); |
| 44 |
BOOL CeCreateProcess(LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES, |
| 45 |
LPSECURITY_ATTRIBUTES, BOOL, DWORD, LPVOID, LPWSTR, LPSTARTUPINFO, |
| 46 |
LPPROCESS_INFORMATION); |
| 47 |
HRESULT CeRapiUninit(); |
| 48 |
BOOL CeWriteFile(HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED); |
| 49 |
HANDLE CeCreateFile(LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, |
| 50 |
DWORD, HANDLE); |
| 51 |
BOOL CeCreateDirectory(LPCWSTR, LPSECURITY_ATTRIBUTES); |
| 52 |
DWORD CeGetLastError(); |
| 53 |
BOOL CeGetFileTime(HANDLE, LPFILETIME, LPFILETIME, LPFILETIME); |
| 54 |
BOOL CeCloseHandle(HANDLE); |