--%>

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 : What is Parsing Parsing : Generally

    Parsing: Generally applied to the action of a compiler in examining a program source file for syntax errors. This is too employed more broadly to mean the analysis of the structure of input.

  • Q : What is Classpath Classpath : The path

    Classpath: The path searched by interpreter and compiler for class definitions. The class path might be set by a command-line argument to either, or through an environment variable.

  • Q : Write a recursive function intpower(base

    Write a recursive function intpower(base, exponent) that when invoked returns base^exponent. For example, intpower(3,4) = 3*3*3*3. Assume that the exponent is an integer greater than or equal to 1.

  • Q : Define Capability Normal 0 false false

    Normal 0 false false

  • Q : Subroutine in the programming Describe

    Describe the number of ways that an argument is passed to a subroutine in the programming?

  • Q : Define the term Array Define the term

    Define the term Array: It is a fixed-size object which can hold zero (0) or more items of the array's declared type.

  • Q : Define Well-known port Well-known port

    Well-known port: It is a port number at which a server provides a familiar service. For example, 80 is well-known port number for the servers employing the HyperText Transfer Protocol (abbreviated as HTTP).

  • Q : Explain Cast Cast : Where Java does not

    Cast: Where Java does not allow the utilization of a source value of one type, it is essential to use a cast to force the compiler to admit the use for the target type. The care must be taken with casting values of primitive types, as this frequently

  • Q : Write the benefits of DLR Write the

    Write the benefits of DLR?

  • Q : Define the term Catching exceptions

    Catching exceptions: Exceptions are caught in the catch clause of the try statement. Catching an exception provides the program a chance to recover from the trouble or attempt a repair for whatsoever caused it.