How to share directory via code in windows 3.1x

How directory shareing can be done with code in windows 3.1x
WNETAddConnection connects to shared device, but howto actually share
one?

WNetAddConnection doesen't support "AddConnection automaticly in
startup". How that can be done in delphi 1.0 and windows 3.1x.

Mechaul Oy - Ohjelmistotuotteet
Janne Timmerbacka
Easy Contact - tuotep??llikk?

gsm     040-5525448
email   easycont...@mechaul.com
www     http://www.mechaul.com/ohjelmat/

Tehdaskyl?nkatu 7                      
11711 RIIHIM?KI
vaihde 019-733446