Subversion Repositories Kolibri OS

Rev

Rev 8869 | Rev 9432 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8869 Rev 9034
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 8869 $
8
$Revision: 9034 $
9
 
9
 
Line 426... Line 426...
426
        call    file_system_lfn_protected
426
        call    file_system_lfn_protected
427
        popad
427
        popad
428
        ret
428
        ret
429
endp
429
endp
Line 430... Line 430...
430
 
430
 
431
; description
431
align 4
432
;  allocate kernel memory and loads the specified file
432
; @brief Allocate kernel memory and loads the specified file
433
;
-
 
434
; param
433
;
435
;  file_name= path to file
434
; @param file_name Path to file
436
;
-
 
437
; retval
435
;
438
;  eax= file image in kernel memory
-
 
439
;  ebx= size of file
436
; @returns File image in kernel memory in `eax` and size of file in `ebx`
440
;
-
 
441
; warging
437
;
442
;  You mast call kernel_free() to delete each file
438
; @warning You must call kernel_free() to delete each file loaded by the
443
;  loaded by the load_file() function
-
 
444
 
-
 
445
align 4
439
;          load_file() function
446
proc load_file stdcall, file_name:dword
440
proc load_file stdcall, file_name:dword
447
           locals
441
           locals
448
             attr       dd ?
442
             attr       dd ?
449
             flags      dd ?
443
             flags      dd ?