To call RfcWinInstallFunction, use the calling syntax:
RFC_ONCALL * f_ptr,
char * description);
To implement an RFC server, you must register every callable function with RFC. This allows theRfcDispatch routine to route RFC requests properly. To register callable functions when you are programming in the Windows operating system, use the RfcWinInstallFunction routine.
RFC provides both the
This function is defined in SAPRFC.H.
Rfc connection handle
name of the RFC function
help text for the function
Once you have used and registered the function with RfcWinInstallFunction, you can use the RfcDispatch routine to execute RFC requests that come in.
The sample programs provide examples of how to use RfcInstallFunction, and you can use RfcWinInstallFunction in the same way. (In particular, the program rfcexec.c which is included in the RFC SDK implements an RFC server.)