On September 11, 2002 05:48 am, Francois Gouget wrote:
Hmm, for strings the spec files currently distinguish between input strings (str) and output strings (ptr). This cannot be
extracted from
the source files... unless we start using IN/OUT macros everywhere?
It's all in the types, dude...
LPCSTR/LPCWSTR = IN, LPSTR/LPWSTR=IN/OUT.
The is almost always correct. Unfortunately Microsoft is not consequent in the regard, but then I guess that we could modify the API slightly. If a WineLib application breaks, it was in some meaning broken anyway.
However how do know whether it is IN/OUT or OUT? For debug messages that is quite important since the pointer in the OUT case might point to uninitialized memory which shouldn't be printed in the debug output...
On September 11, 2002 10:23 am, Patrik Stridvall wrote:
However how do know whether it is IN/OUT or OUT?
Excellent point. There aren't that many IN/OUT cases anyway (can you produce a count?), but we would need to add some metainfo at the source level. No big deal, really...