While writing your codes, use the uses section. implementation
{$IFDEF MSWINDOWS}
uses Winapi.ShellAPI, Winapi.Windows,vcl.Forms,IdUri;
{$ENDIF}
between these phrases If you write your procedures and functions between these phrases, they will be compiled.
{$IFDEF MSWINDOWS}
your codes
{$ENDIF}