HP LoadRunner Protocol SDK
Declare the Functions

The API Functions are called from a script in the C language. They require a header file and a C invocation implementation. The Visual Studio add-in creates the required header file, .h. Declare all the API functions in the header.

  1. Define a function in the <protocol ID>.cpp file. For example, for protocol TinyFTP, add code to TinyFTP.cpp:

    TinyFTP_action1 Definition

  2. Declare the function in the <protocol ID>.h file. For example, for protocol TinyFTP, add code to TinyFTP.h:

    TinyFTP_action1 Declaration

  3. Declare the function in settings.lrapi. For example:

    TinyFTP_action1 Declaration