Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. if( open_status == WinRegStatus::wrsNO_ERROR )
  2.       {
  3.          LONG read_status = QueryValue( value );
  4.          CloseKey( );
  5.          
  6.          std::ofstream out("test_2.txt");
  7.          out<<read_status<<std::endl;
  8.          
  9.          if( ERROR_SUCCESS == read_status )
  10.          {
  11.             return WinRegOperationStatus( WinRegStatus::wrsNO_ERROR );
  12.          }
  13.          return WinRegOperationStatus( WinRegStatus::wrsREAD_ERROR, read_status );
  14.  
  15.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement