Byte Array with Parameter in CApi
Posted: Thu May 18, 2017 2:51 pm
Hi,
I have a function which would like to call by parameters
PRG:
NRet: = CBIOS_UPWLogin ("demo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")
Lib: libcbios.a is available
// in cbios.h
DWORD WINAPI CBIOS_UPWLogin (BYTE bUPW [0x10]);
// The funcion without parameters is ok
HB_FUNC (CBIOS_UPWLOGIN)
{
DWORD dwRet;
BYTE bPass [] = "demo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
DwRet = CBIOS_UPWLogin (bPass);
Hb_retnl ((LONG) dwRet);
}
How does the C function with parameter transfer look like?
Greeting Manfred
I have a function which would like to call by parameters
PRG:
NRet: = CBIOS_UPWLogin ("demo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")
Lib: libcbios.a is available
// in cbios.h
DWORD WINAPI CBIOS_UPWLogin (BYTE bUPW [0x10]);
// The funcion without parameters is ok
HB_FUNC (CBIOS_UPWLOGIN)
{
DWORD dwRet;
BYTE bPass [] = "demo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
DwRet = CBIOS_UPWLogin (bPass);
Hb_retnl ((LONG) dwRet);
}
How does the C function with parameter transfer look like?
Greeting Manfred