/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
SCardDef
Abstract:
This file contains useful defined constants for use with smart card
vendor wrapper and low-level COM objects/interfaces
Author:
Chris Dudley 1/8/1997
Environment:
Win32, C++ w/Exceptions, ATL, COM/OLE
Revision History:
--*/
#ifndef __SCARDDEF_H__
#define __SCARDDEF_H__
////////////////////////////////////////////////////////////////////////////////////
//
// Following used with various ISO7816-4 ICC commands
//
// ISO7816 Select file parameter P1
#define SC_ID_MF_DF_EF0x00
#define SC_ID_CHILD_DF0x01
#define SC_ID_EF_UNDER_DF0x02
#define SC_ID_PARENT_DF0x03
#define SC_NAME_DF0x04
#define SC_PATH_FROM_MF0x08
#define SC_PATH_CURRENT_DF0x09
// ISO7816 Select File parameter P2
#define SC_ONLY_OCCUR0x00
#define SC_LAST_OCCUR0x01
#define SC_NEXT_OCCUR0x02
#define SC_PREV_OCCUR0x03
#define SC_RETURN_FCI0x00
#define SC_RETURN_FCP0x04
#define SC_RETURN_FMD0x08
// ISO7816 Verify
#define SC_GLOBAL_REF0x00
#define SC_SPECIFIC_REF0x80
// MAX number of open files
#define MAX_OPEN_FILES0x0A
// maximum handle value
#define MAX_HANDLE_VALUE0xFFFFFFFF
// Vendor Specific Info
#define VENDOR_CLASS_ID0xC0
// lengths
#define SC_FILE_ID_LENGTH2*sizeof(BYTE)
#define SC_FILE_ID_STR_LENGTH4
#define BYTE_BUFFER_HEAD0
// Status
#define SC_STATUS_SUCCESS0x9000
#define SC_STATUS_MOREDATA0x61
///////////////////////////////////////////////////////////////////////////////////
#endif // __SCARDDEF_H__