868_____________________________________________ 14

    Testi,      Test,   -
. ,      ,   -
  DirectoryExists.

 getcurdir  GetCurrentDir    
    .

 API Windows GetSystemDirectory,    , -
   Windows.   ,   
 , , .     -
-    .      , -
     GetWindowsDirectory,  
  Windows.      Windows, 
 .ini    ..      
      .   -
  ,    ,      -
,     ,    
.         -
.

 IpBuffer  GetSystemDirectory  GetWindowsDirectory -
        ,   
 .       
\,      .

 uSize      .  -
      _.

       IpBuffer  
   ,    .    -
,  uSize,        -
.

     ,    
.       ,  GetLastError (.
 14.20).

 .     Windows 
WINDOWS\SYSTEM     :,  

char s[MAX_PATH];

GetSystemDirectory(s,MAX_PATH) ;

  s : C:\WINDOWS\SYSTEM.   , , -
  ,       -
,   .

 FileGetAttr, FileSetAttr, _rtl_chmod   
   (.     14.12.1). -
          -
 .   FileGetAttr  _rtl_chmod 
      .

 _rtl_chmod      
(.     14.12.1).  func = 0    -
   path,   func = 1   path  at-
trib. ,     ,  
SFile,  :

_rtl_chmod(SFile, I, FA_HIDDEN) ;

  FileGetAttr  _rtl_chmod   -
     .

      ,  
SFile,  :