Updated calls to CreateFile and added initial attempt at a dev method.
Added some file security constants and a path function.