есть у кого сабж?
ну или хотяб описание структур в flash.dll
есть у кого сабж?
ну или хотяб описание структур в flash.dll
unsigned int FlashInit (FlashIO *pIO, FlashParameters *pParams);
This function has to be called first in order to be able to use the OptiFlash DLL.
pIO points to a structure of type FlashIO. A handle will be placed in
the structure which is required by several other DLL functions.
pParams is either NULL or points to a structure of type FlashParameters.
If supplied, the structure will be initialised with default values.
unsigned int FlashLoad (FlashIO *pIO, FlashParameters const *pParams);
This function performs a specified flash operation.
pIO points to the initialised FlashIO structure.
pParams points to a FlashParameters structure containing a description
of the required operation.
unsigned int FlashFinish (FlashIO *pIO);
This function must be called after all flash operations have been performed. It
releases the internally allocated resources.
pIO points to the initialised FlashIO structure.
unsigned int FlashParseOptionString (FlashIO *pIO, char *pszCmdLine,
unsigned int *puOptions,
FlashParameters *pParams);
This function parses a specified command-line options string and places the
results in a FlashParameters structure.
pIO points to the initialised FlashIO structure.
pszCmdLine points to a nul-terminated character string containing the
command line options.
puOptions points to a variable into which the number of options will be
placed. If the command line contains errors, *puOptions will be
set to 0 and the return value to FLASH_ERR_BAD_CMDLINE.
pParams points to the FlashParameters structure.
unsigned int FlashMakeOptionString (FlashParameters *pParams,
char *pszCmdLine,
unsigned int uMaxLen);
This is the inverse function to FlashParseOptionString; it constructs a
command-line parameter string from the values in a FlashParameters
structure.
pParams points to the FlashParameters structure.
pszCmdLine points to a character array into which the command line options
will be placed as a nul-terminated string.
uMaxLen specifies the size of the character array. If the constructed
command line exceeds this size, the function will fail with an
appropriate error code.
unsigned int FlashGetErrorString (unsigned int uError, char *pszBuffer);
This function converts an error code into a descriptive error text.
uError specifies the error code.
pszCmdLine points to a character array into which the error text will be
placed as a nul-terminated string. The supplied buffer must be
large enough to accommodate the string (50 characters or
more).
Сообщение от fishmd
Просили сс-но структуру :-) А не стринги :-)
А на кой *** надо его описание ? Библиотека сама эту структуру заполняет :-) Или моск совсем окислился чтобы IDA или OllyDbg запустить ? Может исходник флешера дать ?