Partager via


MapNtStatusToWinError (Windows Embedded CE 6.0)

1/6/2010

This function maps a Microsoft® Windows NT® status code to a Microsoft Win32® error code.

Syntax

ULONG MapNtStatusToWinError(
  NTSTATUS Status
);

Parameters

  • Status
    [in] The Windows NT status value that is to be translated into a Win32 error code.

Return Value

The Win32 error code corresponding to the NTSTATUS value.

Remarks

Internally, your driver should work with Windows NT status values and not with Win32 error codes. The Smart Card Resource Manager, however, needs Win32 error codes. You can use this function in your device I/O control routine to map the Windows NT status value to a Win32 error code.

Requirements

Header smclib.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Smart Card Driver Functions