📄 opcerrsec.h
字号:
//==============================================================================
// TITLE: OpcErrSec.h
//
// CONTENTS:
//
// Defines error codes for the Security specifications.
//
// (c) Copyright 2000-2003 The OPC Foundation
// ALL RIGHTS RESERVED.
//
// DISCLAIMER:
// This code is provided by the OPC Foundation solely to assist in
// understanding and use of the appropriate OPC Specification(s) and may be
// used as set forth in the License Grant section of the OPC Specification.
// This code is provided as-is and without warranty or support of any sort
// and is subject to the Warranty and Liability Disclaimers which appear
// in the printed OPC Specification.
//
// MODIFICATION LOG:
//
// Date By Notes
// ---------- --- -----
// 2000/08/18 OPC Created.
// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block.
//
#ifndef __OPC_ERR_SEC_H
#define __OPC_ERR_SEC_H
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// The 'Facility' is set to the standard for COM interfaces or FACILITY_ITF (i.e. 0x004)
// The 'Code' is set in the range defined OPC Commmon for DA (i.e. 0x0600 to 0x06FF)
// Note that for backward compatibility not all existing codes use this range.
//
// Values are 32 bit values layed out as follows:
//
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
// +---+-+-+-----------------------+-------------------------------+
// |Sev|C|R| Facility | Code |
// +---+-+-+-----------------------+-------------------------------+
//
// where
//
// Sev - is the severity code
//
// 00 - Success
// 01 - Informational
// 10 - Warning
// 11 - Error
//
// C - is the Customer code flag
//
// R - is a reserved bit
//
// Facility - is the facility code
//
// Code - is the facility's status code
//
//
// Define the facility codes
//
//
// Define the severity codes
//
//
// MessageId: OPC_E_PRIVATE_ACTIVE
//
// MessageText:
//
// A session using private OPC credentials is already active.
//
#define OPC_E_PRIVATE_ACTIVE ((HRESULT)0xC0040301L)
//
// MessageId: OPC_E_LOW_IMPERS_LEVEL
//
// MessageText:
//
// Server requires higher impersonation level to access secured data.
//
#define OPC_E_LOW_IMPERS_LEVEL ((HRESULT)0xC0040302L)
//
// MessageId: OPC_S_LOW_AUTHN_LEVEL
//
// MessageText:
//
// Server expected higher level of package privacy.
//
#define OPC_S_LOW_AUTHN_LEVEL ((HRESULT)0xC0040303L)
#endif // __OPC_ERR_SEC_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -