暗号化プロバイダのタイプを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 長整数型
暗号化プロバイダのタイプ暗号プロバイダの詳細は、MSDN を参照してください(http://msdn.microsoft.com)。
追加の注意はありません。
VBA:
Sub Example_ProviderType() ' This example encrypts and saves a file. Dim sp As AcadSecurityParams Set sp = GetInterfaceObject("AutoCAD.SecurityParams.20") sp.Action = AcadSecurityParamsType.ACADSECURITYPARAMS_ENCRYPT_DATA sp.Algorithm = AcadSecurityParamsConstants.ACADSECURITYPARAMS_ALGID_RC4 sp.KeyLength = 40 sp.Password = UCase("mypassword") 'AutoCAD converts all passwords to uppercase before applying them sp.ProviderName = "Microsoft Base Cryptographic Provider v1.0" sp.ProviderType = 1 ThisDrawing.SaveAs "C:\MyDrawing.dwg", , sp End Sub
Visual LISP:
(vl-load-com) (defun c:Example_ProviderType() ;; This example encrypts and saves a drawing file. (setq acadObj (vlax-get-acad-object)) (setq sp (vlax-create-object "AutoCAD.SecurityParams.20")) (vla-put-Visible acadObj :vlax-true) (vla-put-Action sp ACADSECURITYPARAMS_ENCRYPT_DATA) (vla-put-Algorithm sp ACADSECURITYPARAMS_ALGID_RC4) (vla-put-KeyLength sp 40) (vla-put-Password sp (strcase "mypassword")) (vla-put-ProviderName sp "Microsoft Base Cryptographic Provider v1.0") (vla-put-ProviderType sp 1) (setq doc (vla-get-ActiveDocument acadObj)) (vla-SaveAs doc "C:\\MyDrawing.dwg" acNative sp) (vlax-release-object sp) )