CeGetCurrentTrust (Windows CE 5.0)
This function retrieves the assigned trust level of a process.
DWORD CeGetCurrentTrust (void);
Parameters
None.
Return Values
The following table shows the possible values that can be returned.
Value | Description |
---|---|
OEM_CERTIFY_TRUST (2) | The OEM trusts the module to perform any OS function calls. |
OEM_CERTIFY_RUN (1) | The OEM trusts the module to run, but restricts the module from making certain function calls. |
An OEM assigns the trust level when a process is loaded. A dynamically-linked library (DLL) can call this function to determine whether its trust level is sufficient to complete all operations. If the DLL is required to run in a trusted mode and is loaded in a nontrusted module, the DLL can return FALSE in its DLLEntryPoint to abort the load.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Kfuncs.h.
Link Library: Nk.lib.
See Also
OEMCertifyModule | Trusted APIs
Send Feedback on this topic to the authors