rapi/rapiwrap.h File Reference

Definitions of RAPI datastructures and functions. More...

#include <synce.h>

Go to the source code of this file.

Data Structures

struct  _PROCESS_INFORMATION
struct  _CE_FIND_DATA
struct  _CEOSVERSIONINFO

Defines

#define FILE_ATTRIBUTE_READONLY   0x00000001
#define FILE_ATTRIBUTE_HIDDEN   0x00000002
#define FILE_ATTRIBUTE_SYSTEM   0x00000004
#define FILE_ATTRIBUTE_DIRECTORY   0x00000010
#define FILE_ATTRIBUTE_ARCHIVE   0x00000020
#define FILE_ATTRIBUTE_INROM   0x00000040
#define FILE_ATTRIBUTE_NORMAL   0x00000080
#define FILE_ATTRIBUTE_TEMPORARY   0x00000100
#define FILE_ATTRIBUTE_COMPRESSED   0x00000800
#define FILE_ATTRIBUTE_HAS_CHILDREN   0x00010000
#define CREATE_ALWAYS   2
#define OPEN_EXISTING   3
#define GENERIC_WRITE   0x40000000
#define GENERIC_READ   0x80000000
#define CSIDL_PROGRAMS   0x0002
#define CSIDL_PERSONAL   0x0005
#define CSIDL_STARTUP   0x0007
#define CSIDL_RECENT   0x0008
#define CSIDL_STARTMENU   0x000b
#define CSIDL_DESKTOPDIRECTORY   0x0010
#define CSIDL_FONTS   0x0014
#define CSIDL_FAVORITES   0x0016
#define HKEY_CLASSES_ROOT   ((HKEY) 0x80000000)
#define HKEY_CURRENT_USER   ((HKEY) 0x80000001)
#define HKEY_LOCAL_MACHINE   ((HKEY) 0x80000002)
#define REG_NONE   0
#define REG_SZ   1
#define REG_EXPAND_SZ   2
#define REG_BINARY   3
#define REG_DWORD   4
#define REG_DWORD_LITTLE_ENDIAN   REG_DWORD
#define REG_DWORD_BIG_ENDIAN   5
#define REG_LINK   6
#define REG_MULTI_SZ   7
#define _STDFKTARGS
#define VOIDPARAM   void

Typedefs

typedef struct _PROCESS_INFORMATION PROCESS_INFORMATION
typedef struct
_PROCESS_INFORMATION
LPPROCESS_INFORMATION
typedef void * LPSECURITY_ATTRIBUTES
typedef void * LPOVERLAPPED
typedef struct _CE_FIND_DATA CE_FIND_DATA
typedef struct _CE_FIND_DATALPCE_FIND_DATA
typedef struct _CE_FIND_DATA ** LPLPCE_FIND_DATA
typedef struct _CEOSVERSIONINFO CEOSVERSIONINFO
typedef struct _IRAPIStream IRAPIStream
 Stream type for CeRapiInvoke-like functions.
typedef HRESULT(_STDFKTARGS * t_cerapiinit )(VOIDPARAM)
 Type for the function pointer to CeRapiInit().
typedef HRESULT(_STDFKTARGS * t_cerapiuninit )(VOIDPARAM)
 Type for the function pointer to CeRapiUninit().
typedef HRESULT(_STDFKTARGS * t_cerapigeterror )(void)
 Type for the function pointer to CeRapiGetError().
typedef DWORD(_STDFKTARGS * t_cegetlasterror )(void)
 Type for the function pointer to CeRapiGetLastError().
typedef BOOL(_STDFKTARGS * t_cecreateprocess )(LPCWSTR lpApplicationName, LPCWSTR lpCommandLine, void *lpProcessAttributes, void *lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPWSTR lpCurrentDirectory, void *lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
 Type for the function pointer to CeCreateProcess().
typedef BOOL(_STDFKTARGS * t_ceclosehandle )(HANDLE hObject)
 Type for the function pointer to CeCloseHandle().
typedef DWORD(_STDFKTARGS * t_cegetfileattributes )(LPCWSTR lpFileName)
 Type for the function pointer to CeGetFileAttributes().
typedef HANDLE(_STDFKTARGS * t_cefindfirstfile )(LPCWSTR lpFileName, LPCE_FIND_DATA lpFindFileData)
 Type for the function pointer to CeFindFirstFile.
typedef BOOL(_STDFKTARGS * t_cefindnextfile )(HANDLE hFindFile, LPCE_FIND_DATA lpFindFileData)
 Type for the function pointer to CeFindNextFile.
typedef BOOL(_STDFKTARGS * t_cefindclose )(HANDLE hFindFile)
 Type for the function pointer to CeFindClose.
typedef HRESULT(_STDFKTARGS * t_cerapifreebuffer )(LPVOID Buffer)
 Type for the function pointer to CeRapiFreeBuffer().
typedef HANDLE(_STDFKTARGS * t_cecreatefile )(LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
 Type for the function pointer to CeCreateFile().
typedef BOOL(_STDFKTARGS * t_cewritefile )(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)
 Type for the function pointer to CeWriteFile().
typedef BOOL(_STDFKTARGS * t_cereadfile )(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
 Type for the function pointer to CeReadFile().
typedef BOOL(_STDFKTARGS * t_cedeletefile )(LPCWSTR lpFileName)
 Type for the function pointer to CeDeleteFile().
typedef DWORD(_STDFKTARGS * t_cegetspecialfolderpath )(int nFolder, DWORD nBufferLength, LPWSTR lpBuffer)
 Type for the function pointer to CeGetSpecialFolderPath().
typedef LONG(_STDFKTARGS * t_ceregopenkeyex )(HKEY hKey, LPCWSTR lpszSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
 Type for the function pointer to CeRegOpenKeyEx().
typedef LONG(_STDFKTARGS * t_ceregqueryinfokey )(HKEY key, LPWSTR lpClass, LPDWORD lpcbClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
 Type for the function pointer to CeRegQueryInfoKey().
typedef LONG(_STDFKTARGS * t_ceregenumvalue )(HKEY hKey, DWORD dwIndex, LPWSTR lpszValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
 Type for the function pointer to CeRegQueryEnumValue().
typedef LONG(_STDFKTARGS * t_ceregenumkeyex )(HKEY hKey, DWORD dwIndex, LPWSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPWSTR lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime)
 Type for the function pointer to CeRegEnumKeyEx().
typedef LONG(_STDFKTARGS * t_ceregqueryvalueex )(HKEY hKey, LPCWSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
 Type for the function pointer to CeRegQueryValueEx().
typedef LONG(_STDFKTARGS * t_ceregclosekey )(HKEY hKey)
 Type for the function pointer to CeRegCloseKey().
typedef BOOL(_STDFKTARGS * t_cecreatedirectory )(LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSa)
 Type for the function pointer to CeCreateDirectory().
typedef BOOL(_STDFKTARGS * t_ceremovedirectory )(LPCWSTR lpPathName)
 Type for the function pointer to CeRemoveDirectory().
typedef BOOL(_STDFKTARGS * t_cemovefile )(LPCWSTR lpOld, LPCWSTR lpNew)
 Type for the function pointer to CeMoveFile().
typedef BOOL(_STDFKTARGS * t_ceshcreateshortcut )(LPCWSTR target, LPCWSTR source)
 Type for the function pointer to CeSHCreateShortcut().
typedef BOOL(_STDFKTARGS * t_cegetversionex )(CEOSVERSIONINFO *lpVersionInfo)
 Type for the function pointer to CeGetVersionEx().
typedef BOOL(_STDFKTARGS * t_cesetfileattributes )(LPCWSTR lpFileName, DWORD dwFileAttributes)
 Type for the function CeSetFileAttributes.
typedef HRESULT(_STDFKTARGS * t_cerapiinvoke )(LPCWSTR pDllPath, LPCWSTR pFunctionName, DWORD cbInput, const BYTE *pInput, DWORD *pcbOutput, BYTE **ppOutput, IRAPIStream **ppIRAPIStream, DWORD dwReserved)
 Type for the function pointer to CeRapiInvoke().

Variables

t_cerapiinit pCeRapiInit
 Pointer to CeRapiInit().
t_cerapiuninit pCeRapiUninit
 Pointer to CeRapiUninit().
t_cerapigeterror pCeRapiGetError
 Pointer to CeRapiGetError().
t_cegetlasterror pCeGetLastError
 Pointer to CeRapiGetLastError().
t_cecreateprocess pCeCreateProcess
 Pointer to CeCreateProcess().
t_ceclosehandle pCeCloseHandle
 Pointer to CeCloseHandle().
t_cegetfileattributes pCeGetFileAttributes
 Pointer to CeGetFileAttributes().
t_cefindfirstfile pCeFindFirstFile
 Pointer fo CeFindFirstFile().
t_cefindnextfile pCeFindNextFile
 Pointer to CeFindNextFile().
t_cefindclose pCeFindClose
 Pointer to CeFindClose().
t_cerapifreebuffer pCeRapiFreeBuffer
 Pointer to CeRapiFreeBuffer().
t_cecreatefile pCeCreateFile
 Pointer to CeCreateFile().
t_cewritefile pCeWriteFile
 Pointer to CeWriteFile().
t_cereadfile pCeReadFile
 Pointer to CeReadFile().
t_cedeletefile pCeDeleteFile
 Pointer to CeDeleteFile().
t_cegetspecialfolderpath pCeGetSpecialFolderPath
 Pointer to CeGetSpecialFolderPath().
t_ceregopenkeyex pCeRegOpenKeyEx
 Pointer to CeRegOpenKeyEx().
t_ceregqueryinfokey pCeRegQueryInfoKey
 Pointer to CeRegQueryInfoKey().
t_ceregenumvalue pCeRegEnumValue
 Pointer to CeRegEnumValue().
t_ceregenumkeyex pCeRegEnumKeyEx
 Pointer to CeRegEnumKeyEx().
t_ceregqueryvalueex pCeRegQueryValueEx
 Pointer to CeRegQueryKeyEx().
t_ceregclosekey pCeRegCloseKey
 Pointer to CeRegCloseKey().
t_cecreatedirectory pCeCreateDirectory
 Pointer to CeCreateDirectory().
t_ceremovedirectory pCeRemoveDirectory
 Pointer to CeRemoveDirectory().
t_cemovefile pCeMoveFile
 Pointer to CeMoveFile().
t_ceshcreateshortcut pCeSHCreateShortcut
 Pointer to CeSHCreateShortcut().
t_cegetversionex pCeGetVersionEx
 Pointer to CeGetVersionEx().
t_cesetfileattributes pCeSetFileAttributes
 Pointer to CeSetFileAttributes.
t_cerapiinvoke pCeRapiInvoke
 Pointer to CeRapiInvoke().


Detailed Description

Definitions of RAPI datastructures and functions.

If compiled with RAPI_SDK, then includes only rapi.h and links all function pointers to the functions defined in librapi or rapi.lib. RAPI SDK can be found for example in librapi2-devel (linux/unix) or in Windows Mobile SDK (MS Windows). Else it defines as much data types as needed and load functions dynamically from librapi.so.2 or from rapi.dll.

Author:
Daniel Stoinski
Version:
$Revision$

Define Documentation

#define _STDFKTARGS

#define CREATE_ALWAYS   2

#define CSIDL_DESKTOPDIRECTORY   0x0010

#define CSIDL_FAVORITES   0x0016

#define CSIDL_FONTS   0x0014

#define CSIDL_PERSONAL   0x0005

#define CSIDL_PROGRAMS   0x0002

#define CSIDL_RECENT   0x0008

#define CSIDL_STARTMENU   0x000b

#define CSIDL_STARTUP   0x0007

#define FILE_ATTRIBUTE_ARCHIVE   0x00000020

#define FILE_ATTRIBUTE_COMPRESSED   0x00000800

#define FILE_ATTRIBUTE_DIRECTORY   0x00000010

#define FILE_ATTRIBUTE_HAS_CHILDREN   0x00010000

#define FILE_ATTRIBUTE_HIDDEN   0x00000002

#define FILE_ATTRIBUTE_INROM   0x00000040

#define FILE_ATTRIBUTE_NORMAL   0x00000080

#define FILE_ATTRIBUTE_READONLY   0x00000001

#define FILE_ATTRIBUTE_SYSTEM   0x00000004

#define FILE_ATTRIBUTE_TEMPORARY   0x00000100

#define GENERIC_READ   0x80000000

#define GENERIC_WRITE   0x40000000

#define HKEY_CLASSES_ROOT   ((HKEY) 0x80000000)

#define HKEY_CURRENT_USER   ((HKEY) 0x80000001)

#define HKEY_LOCAL_MACHINE   ((HKEY) 0x80000002)

#define OPEN_EXISTING   3

#define REG_BINARY   3

#define REG_DWORD   4

#define REG_DWORD_BIG_ENDIAN   5

#define REG_DWORD_LITTLE_ENDIAN   REG_DWORD

#define REG_EXPAND_SZ   2

#define REG_LINK   6

#define REG_MULTI_SZ   7

#define REG_NONE   0

#define REG_SZ   1

#define VOIDPARAM   void


Typedef Documentation

typedef struct _CE_FIND_DATA CE_FIND_DATA

typedef struct _IRAPIStream IRAPIStream

Stream type for CeRapiInvoke-like functions.

typedef struct _CE_FIND_DATA * LPCE_FIND_DATA

typedef struct _CE_FIND_DATA ** LPLPCE_FIND_DATA

typedef void* LPOVERLAPPED

typedef void* LPSECURITY_ATTRIBUTES

typedef BOOL(_STDFKTARGS * t_ceclosehandle)(HANDLE hObject)

Type for the function pointer to CeCloseHandle().

typedef BOOL(_STDFKTARGS * t_cecreatedirectory)(LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSa)

Type for the function pointer to CeCreateDirectory().

typedef HANDLE(_STDFKTARGS * t_cecreatefile)(LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)

Type for the function pointer to CeCreateFile().

typedef BOOL(_STDFKTARGS * t_cecreateprocess)(LPCWSTR lpApplicationName, LPCWSTR lpCommandLine, void *lpProcessAttributes, void *lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPWSTR lpCurrentDirectory, void *lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)

Type for the function pointer to CeCreateProcess().

typedef BOOL(_STDFKTARGS * t_cedeletefile)(LPCWSTR lpFileName)

Type for the function pointer to CeDeleteFile().

typedef BOOL(_STDFKTARGS * t_cefindclose)(HANDLE hFindFile)

Type for the function pointer to CeFindClose.

typedef HANDLE(_STDFKTARGS * t_cefindfirstfile)(LPCWSTR lpFileName, LPCE_FIND_DATA lpFindFileData)

Type for the function pointer to CeFindFirstFile.

typedef BOOL(_STDFKTARGS * t_cefindnextfile)(HANDLE hFindFile, LPCE_FIND_DATA lpFindFileData)

Type for the function pointer to CeFindNextFile.

typedef DWORD(_STDFKTARGS * t_cegetfileattributes)(LPCWSTR lpFileName)

Type for the function pointer to CeGetFileAttributes().

typedef DWORD(_STDFKTARGS * t_cegetlasterror)(void)

Type for the function pointer to CeRapiGetLastError().

typedef DWORD(_STDFKTARGS * t_cegetspecialfolderpath)(int nFolder, DWORD nBufferLength, LPWSTR lpBuffer)

Type for the function pointer to CeGetSpecialFolderPath().

typedef BOOL(_STDFKTARGS * t_cegetversionex)(CEOSVERSIONINFO *lpVersionInfo)

Type for the function pointer to CeGetVersionEx().

typedef BOOL(_STDFKTARGS * t_cemovefile)(LPCWSTR lpOld, LPCWSTR lpNew)

Type for the function pointer to CeMoveFile().

typedef HRESULT(_STDFKTARGS * t_cerapifreebuffer)(LPVOID Buffer)

Type for the function pointer to CeRapiFreeBuffer().

typedef HRESULT(_STDFKTARGS * t_cerapigeterror)(void)

Type for the function pointer to CeRapiGetError().

typedef HRESULT(_STDFKTARGS * t_cerapiinit)(VOIDPARAM)

Type for the function pointer to CeRapiInit().

typedef HRESULT(_STDFKTARGS * t_cerapiinvoke)(LPCWSTR pDllPath, LPCWSTR pFunctionName, DWORD cbInput, const BYTE *pInput, DWORD *pcbOutput, BYTE **ppOutput, IRAPIStream **ppIRAPIStream, DWORD dwReserved)

Type for the function pointer to CeRapiInvoke().

typedef HRESULT(_STDFKTARGS * t_cerapiuninit)(VOIDPARAM)

Type for the function pointer to CeRapiUninit().

typedef BOOL(_STDFKTARGS * t_cereadfile)(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)

Type for the function pointer to CeReadFile().

typedef LONG(_STDFKTARGS * t_ceregclosekey)(HKEY hKey)

Type for the function pointer to CeRegCloseKey().

typedef LONG(_STDFKTARGS * t_ceregenumkeyex)(HKEY hKey, DWORD dwIndex, LPWSTR lpName, LPDWORD lpcbName, LPDWORD lpReserved, LPWSTR lpClass, LPDWORD lpcbClass, PFILETIME lpftLastWriteTime)

Type for the function pointer to CeRegEnumKeyEx().

typedef LONG(_STDFKTARGS * t_ceregenumvalue)(HKEY hKey, DWORD dwIndex, LPWSTR lpszValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)

Type for the function pointer to CeRegQueryEnumValue().

typedef LONG(_STDFKTARGS * t_ceregopenkeyex)(HKEY hKey, LPCWSTR lpszSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)

Type for the function pointer to CeRegOpenKeyEx().

typedef LONG(_STDFKTARGS * t_ceregqueryinfokey)(HKEY key, LPWSTR lpClass, LPDWORD lpcbClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)

Type for the function pointer to CeRegQueryInfoKey().

typedef LONG(_STDFKTARGS * t_ceregqueryvalueex)(HKEY hKey, LPCWSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)

Type for the function pointer to CeRegQueryValueEx().

typedef BOOL(_STDFKTARGS * t_ceremovedirectory)(LPCWSTR lpPathName)

Type for the function pointer to CeRemoveDirectory().

typedef BOOL(_STDFKTARGS * t_cesetfileattributes)(LPCWSTR lpFileName, DWORD dwFileAttributes)

Type for the function CeSetFileAttributes.

typedef BOOL(_STDFKTARGS * t_ceshcreateshortcut)(LPCWSTR target, LPCWSTR source)

Type for the function pointer to CeSHCreateShortcut().

typedef BOOL(_STDFKTARGS * t_cewritefile)(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)

Type for the function pointer to CeWriteFile().


Variable Documentation

Pointer to CeCloseHandle().

Pointer to CeCreateDirectory().

Pointer to CeCreateFile().

Pointer to CeCreateProcess().

Pointer to CeDeleteFile().

Pointer to CeFindClose().

Pointer fo CeFindFirstFile().

Pointer to CeFindNextFile().

Pointer to CeGetFileAttributes().

Pointer to CeRapiGetLastError().

Pointer to CeGetSpecialFolderPath().

Pointer to CeGetVersionEx().

Pointer to CeMoveFile().

Pointer to CeRapiFreeBuffer().

Pointer to CeRapiGetError().

Pointer to CeRapiInit().

Pointer to CeRapiInvoke().

Pointer to CeRapiUninit().

Pointer to CeReadFile().

Pointer to CeRegCloseKey().

Pointer to CeRegEnumKeyEx().

Pointer to CeRegEnumValue().

Pointer to CeRegOpenKeyEx().

Pointer to CeRegQueryInfoKey().

Pointer to CeRegQueryKeyEx().

Pointer to CeRemoveDirectory().

Pointer to CeSetFileAttributes.

Pointer to CeSHCreateShortcut().

Pointer to CeWriteFile().


Generated on Mon Jul 12 14:51:51 2010 for cetoys by  doxygen 1.5.6