Restrictions implied on API functions

What are the restrictions implied on API functions?

E

Expert

Verified

The use of API function is to provide easy to use interface and have functions that reads the processes and memory.

a. API function can read the memory region and can be used by anyone without any restrictions.

b. The restrictions implied on the functions are as follows:

i. Windows API functions call different API that is known as Native API. This allows the easy interaction with the kernel, but at this time the CPU switches to the kernel mode.

ii. The special instruction for the system calls like sysenter and sysexit allow the CPU to switch to the ring 0, which in turn execute the handler provided by the operating system.

   Related Questions in Programming Languages

  • Q : Block Started by Symbol What is the

    What is the Block Started by the Symbol?

  • Q : Explain Throw statement Throw statement

    Throw statement: It is a statement employed to throw an exception. For example:     throw new IndexOutOfBoundsException(i+" is too large.");

  • Q : What is SLAM SLAM is a Microsoft

    SLAM is a Microsoft project that blurs the line between static analysis and model checking and deductive reasoning. The main goal of SLAM is to check temporal safety properties of C programs (it actually checks that a program correctly uses the interf

  • Q : Explain main quality of unsuitable life

    What are the main quality consequences of selecting an unsuitable life cycle model for a software project?

  • Q : What is applet? Explain life cycle of

    Ans. Applet: An applet is an application designed to travel over the internet and to be executed on the client machine by a java compatible

  • Q : Define User Datagram Protocol User

    User Datagram Protocol: The User Datagram Protocol (abbreviated as UDP) is a set of rules which permit communication among two processes across a network. The protocol is unreliable, that means that information is not guaranteed to be

  • Q : Overriding a base class method in

    Explain the way to overriding a base class method in Visual Studio .NET and in Visual Studio 2005.

  • Q : What is Automation Testing life cycle

    What is Automation Testing life cycle?

  • Q : Define Package Package : The named

    Package: The named grouping of classes and interfaces which gives a package namespace. Classes, interfaces and class members devoid of an explicit public, protected or private access modifier {access!modifier} encompass package visibility. The public

  • Q : Explain the difference between the

    Explain the difference between the Interpreter and Compiler?

©TutorsGlobe All rights reserved 2022-2023.