On Fri, April 11, 2008 22:12, Stephano wrote: > Tomas Hajny wrote: >> If I read the Windows unit sources correctly, INVALID_HANDLE_VALUE = -1 >> too. However, I believe that you might consider returning UnusedHandle >> constant defined in System unit for all the platforms (that's -1 for at >> least most of them anyway, but I believe that it may be still better >> from >> portability point of view to refer to it using this constant). > I cannot rely on what the actual value of INVALID_HANDLE_VALUE really is > as it could in theory change. But nevertheless your suggestion to return > the UnusedHandle constant, once I locate it :), is very logical.
Do I understand correctly that you cannot find it? As I wrote above, this constant is defined in unit System, i.e. always available without any additions to the uses clause or so. Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal