Can I use const modifiers in IDL function definitions that get parsed by MIDL?
e.g.
HRESULT TestFunctionCall(
[in,string] const char *szParameter);
Or will that result in breakages somewhere down the track? It appears to make it through MIDL fine as far as the resulting _c.c and _s.c files go.
The const
modifier is part of the MIDL Language. Therefore you can use it at your interface definition.