, - FooParams, - , DLL-, DLL, "": Put
typedef struct FooParams FooParams;
fooExports.h. FOO_API . , :
FooParams ( FooParams * ptr = NULL; ).- -
FooParams. sizeof(FooParams) - , , malloc FooParams.
#define, , . , DLL "" "factory", , -
FOO_API FooParams* CreateFooParams(const char * input);
,
FOO_API void DestroyFooParams(FooParams * p);
, { free(p); }, , , DLL, ( Windows malloc free).
, - #include struct . - FooParams, , , , FooParams. ( ) #include -d, DLL.