ホーム › System.Ole › OaEnablePerUserTLibRegistration
OaEnablePerUserTLibRegistration
関数ユーザー単位のタイプライブラリ登録を有効にする。
シグネチャ
// OLEAUT32.dll
#include <windows.h>
void OaEnablePerUserTLibRegistration(void);パラメーターなし。戻り値: void
各言語での呼び出し定義
// OLEAUT32.dll
#include <windows.h>
void OaEnablePerUserTLibRegistration(void);[DllImport("OLEAUT32.dll", ExactSpelling = true)]
static extern void OaEnablePerUserTLibRegistration();<DllImport("OLEAUT32.dll", ExactSpelling:=True)>
Public Shared Sub OaEnablePerUserTLibRegistration()
End SubDeclare PtrSafe Sub OaEnablePerUserTLibRegistration Lib "oleaut32" ()
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
OaEnablePerUserTLibRegistration = ctypes.windll.oleaut32.OaEnablePerUserTLibRegistration
OaEnablePerUserTLibRegistration.restype = None
OaEnablePerUserTLibRegistration.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('OLEAUT32.dll')
OaEnablePerUserTLibRegistration = Fiddle::Function.new(
lib['OaEnablePerUserTLibRegistration'],
[],
Fiddle::TYPE_VOID)#[link(name = "oleaut32")]
extern "system" {
fn OaEnablePerUserTLibRegistration();
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("OLEAUT32.dll")]
public static extern void OaEnablePerUserTLibRegistration();
"@
$api = Add-Type -MemberDefinition $sig -Name 'OLEAUT32_OaEnablePerUserTLibRegistration' -Namespace Win32 -PassThru
# $api::OaEnablePerUserTLibRegistration()#uselib "OLEAUT32.dll"
#func global OaEnablePerUserTLibRegistration "OaEnablePerUserTLibRegistration"
; OaEnablePerUserTLibRegistration#uselib "OLEAUT32.dll"
#func global OaEnablePerUserTLibRegistration "OaEnablePerUserTLibRegistration"
; OaEnablePerUserTLibRegistration; void OaEnablePerUserTLibRegistration()
#uselib "OLEAUT32.dll"
#func global OaEnablePerUserTLibRegistration "OaEnablePerUserTLibRegistration"
; OaEnablePerUserTLibRegistrationimport (
"golang.org/x/sys/windows"
"unsafe"
)
var (
oleaut32 = windows.NewLazySystemDLL("OLEAUT32.dll")
procOaEnablePerUserTLibRegistration = oleaut32.NewProc("OaEnablePerUserTLibRegistration")
)
r1, _, err := procOaEnablePerUserTLibRegistration.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure OaEnablePerUserTLibRegistration; stdcall;
external 'OLEAUT32.dll' name 'OaEnablePerUserTLibRegistration';result := DllCall("OLEAUT32\OaEnablePerUserTLibRegistration", "Int")●OaEnablePerUserTLibRegistration() = DLL("OLEAUT32.dll", "int OaEnablePerUserTLibRegistration()")
# 呼び出し: OaEnablePerUserTLibRegistration()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。