Mini application server API for C++.
mini
Typedef session
in mini.h
Prototype for a mini-fast-cgi service
- Parameters:
session - Session object
argc - Number of cgi-parameters
argv - Vector with cgi-parameters:
argv[0] Always the name of the DLL
argv[n] Name of parameter: -{name}
argv[n+1] Value of parameter {value}
example: -id myid
buff - Reply buffer, The buffer must be allocated with GlobalAlloc().
The buffer is freed by the caller when the call returns.
size - Size of buff
msg - Error message. Buffer allocated by the caller.
msglen - Maximum size of error message, equals the size of the buffer allocated by the caller
- Returns:
- 0 if service is successful, or !0 of the service fails
session
public typedef int( __stdcall MINI_DLL_SVC )( MINI_SESSION* session, int argc, char** argv, char** buff, int* size, char* msg, int msglen );