+ Reply to Thread
Results 1 to 2 of 2

Thread: What API does fopen function call?

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    2

    What API does fopen function call?

    Hello,

    I was just wondering what happens behind the call when calling fopen() function? Is this another function similar to Win32 API CreateFile?

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    1
    Hi Adam,

    I'll try to explain this.

    The fopen() function is imported from C runtime (msvcrt.dll). When this function is called it actually calls Win32 API CreateFile() which is exported from kernel32.dll. Then CreateFile() actually calls NtCreateFile() in Ntdll.dll and finally Ntdll.dll resolves this call by invoking interrupt to operating system kernel.

    Hope this explained your question.

    - Gabriel

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts