⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opcsec.idl

📁 OPC客户程序所需要的头文件。 OPC基金会产品。 适用于opc1.0和opc2.0规范。
💻 IDL
字号:
//==============================================================================
// TITLE: OpcSec.idl
//
// CONTENTS:
// 
// Interface declarations for the OPC Security specifications.
//
// (c) Copyright 1999-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/03 DJ    Finalized for spec release 1.00
// 2003/01/06 RSA   Fixed formatting to comply with coding guidelines.
//

import "oaidl.idl";

//==============================================================================
// IOPCSecurityNT

[
	object,
	uuid(7AA83A01-6C77-11d3-84F9-00008630A38B),
	pointer_default(unique)
]
interface IOPCSecurityNT : IUnknown
{
	HRESULT IsAvailableNT(
		[out] BOOL* pbAvailable
	);

	HRESULT QueryMinImpersonationLevel(
		[out] DWORD* pdwMinImpLevel
	);

	HRESULT ChangeUser(
		void
	);
};

//==============================================================================
// IOPCSecurityPrivate

[
    object,
    uuid(7AA83A02-6C77-11d3-84F9-00008630A38B),
    pointer_default(unique)
]
interface IOPCSecurityPrivate : IUnknown
{
    HRESULT IsAvailablePriv(
		[out] BOOL* pbAvailable
	);

    HRESULT Logon(
		[in, string] LPCWSTR szUserID, 
		[in, string] LPCWSTR szPassword
	);

    HRESULT Logoff(
		void
	);
};

//==============================================================================
// Type Library

[
    uuid(7AA83AFF-6C77-11d3-84F9-00008630A38B),
    version(1.00),
    helpstring("OPC Security 1.00 Type Library")
]
library OPCSEC
{
    importlib("stdole32.tlb");
    importlib("stdole2.tlb");

    interface IOPCSecurityNT;
    interface IOPCSecurityPrivate;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -