Partager via


CeGetCallerTrust

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function obtains the assigned trust level of a process.

Syntax

DWORD CeGetCallerTrust (void);

Parameters

None.

Return Value

  • NULL
    The OEM does not trust this calling process.
  • OEM_CERTIFY_RUN (1)
    The OEM trusts the process to run, but restricts the module from making some function calls.
  • OEM_CERTIFY_TRUST (2)
    The OEM trusts the process to perform OS function calls.

Remarks

The trust level is assigned by an OEM when a process is loaded or by setting an attribute in a .bib file.

A driver DLL that exists in the Device Manager's address space can call this function to determine whether the calling process's trust level is sufficient to complete all operations.

If the driver DLL is required to run in a privileged mode and the calling process is not privileged, the driver should return NULL to the application's request to get a handle to the driver.

Requirements

Header kfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Process and Thread Functions