rapi/rapi.c File Reference

Rapi tool. More...

#include "ucs2le.h"
#include "rapiwrap.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>

Data Structures

struct  _tarhdr
 Header for each file contained in the tar archive. More...
union  _tarblock
 One tar block. More...

Defines

#define CMDLINE_MAX   511
 Maximum size of the command line passed to a windows CE program.
#define MAXBUF   65536
 Help buffer size, used in _wcat().
#define TARBLOCKLEN   512
 Length of one tar block.
#define TARBLOCKSIZE   512
 Block size of the tar file created in _tar.

Typedefs

typedef t_err(* _t_lscb )(const CE_FIND_DATA *aFileInfo, const t_ucs2le *ucs2le, const char *aBaseDir, void *aCtx)
 Type of the callback function for any kind of directory listing callback functions.
typedef t_err(* _t_reg1cb )(const t_ucs2le *ucs2le, const char *aKeyName, const char *aValName, const BYTE *aValue, DWORD aValSize, DWORD aValType)
 Type of the callback function for _reg1().

Enumerations

enum  t_err {
  ERR_OK = 0, ERR_NOT_INIT, ERR_RAPI_INIT, ERR_UCS2LE,
  ERR_PARAM, ERR_FILE, ERR_LIST, ERR_MD,
  ERR_RD, ERR_CREATE_PROCESS, ERR_IO, ERR_RM,
  ERR_MV, ERR_LN, ERR_REG, ERR_MEM,
  ERR_VER, ERR_ATTFMT, ERR_SETATT, ERR_NFND,
  ERR_INVOKE, ERR_NOMEM, ERR_TMPFILE, ERR_COPYORPASTE,
  ERR_UNKNOWN
}
 Error codes. More...


Detailed Description

Rapi tool.

Author:
Daniel Stoinski
Version:
$Revision$

Define Documentation

#define CMDLINE_MAX   511

Maximum size of the command line passed to a windows CE program.

#define MAXBUF   65536

Help buffer size, used in _wcat().

#define TARBLOCKLEN   512

Length of one tar block.

#define TARBLOCKSIZE   512

Block size of the tar file created in _tar.


Typedef Documentation

typedef t_err(* _t_lscb)(const CE_FIND_DATA *aFileInfo, const t_ucs2le *ucs2le, const char *aBaseDir, void *aCtx)

Type of the callback function for any kind of directory listing callback functions.

The first parameter is pointer to a structure describing a file found in the directory. The second parameter is the UCS2LE character encoding handle. The third parameter is the base directory for listed files. The fourth parameter is pointer to a context variable, the type and meaning of the context variable depends on the reason, for which the directory listing has been made.

See also:
_showfile()

typedef t_err(* _t_reg1cb)(const t_ucs2le *ucs2le, const char *aKeyName, const char *aValName, const BYTE *aValue, DWORD aValSize, DWORD aValType)

Type of the callback function for _reg1().

Function of this type is called for each key value retrieved from by _reg1() from the registry.

See also:
_reg1cb_prtkey


Enumeration Type Documentation

enum t_err

Error codes.

Enumerator:
ERR_OK  Everything went OK.
ERR_NOT_INIT  Function pointer are not initialized.
ERR_RAPI_INIT  Can't init rapi.
ERR_UCS2LE  Character conversion engine error.
ERR_PARAM  Wrong parameters.
ERR_FILE  Can't open file.
ERR_LIST  Error while creating listing.
ERR_MD  Error while creating directory.
ERR_RD  Error while removing directory.
ERR_CREATE_PROCESS  Can't create process on the remote machine.
ERR_IO  IO error.
ERR_RM  Can't delete file.
ERR_MV  Can't move file.
ERR_LN  Can't create link.
ERR_REG  Registry error
ERR_MEM  No memory
ERR_VER  Can't get version information from the device.
ERR_ATTFMT  Wrong attribute format
ERR_SETATT  Error on setting file attribute
ERR_NFND  Can't find directory or file.
ERR_INVOKE  Error in call to CeRapiInvoke().
ERR_NOMEM  No memory.
ERR_TMPFILE  Can't create temporary file name.
ERR_COPYORPASTE  Only copy and paste allowed for clipboard operations.
ERR_UNKNOWN  Unknown error.


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