>Thank You George.
>The realy work for me. It work on NT just fine.
>
>I have a question.
>What is the use of the lcDevice? It it the device use to get the user ID? If we put "C:\" will it work or it will return the User ID of Windows?
lcDevice needs to be the name of a remote drive. Remember that user ids are only valid within that context. While multiple users are permitted on a Win32 machine, such was not the case in Win16. Since this is in FPW (a 16 bit application), it only has access to the Win16 API.
George
Ubi caritas et amor, deus ibi est