ホーム › System.WinRT.Metadata › RoCreateNonAgilePropertySet
RoCreateNonAgilePropertySet
関数アジャイルでないプロパティセットを作成する。
シグネチャ
// api-ms-win-ro-typeresolution-l1-1-1.dll
#include <windows.h>
HRESULT RoCreateNonAgilePropertySet(
IPropertySet* ppPropertySet
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| ppPropertySet | IPropertySet* | out |
戻り値の型: HRESULT
各言語での呼び出し定義
// api-ms-win-ro-typeresolution-l1-1-1.dll
#include <windows.h>
HRESULT RoCreateNonAgilePropertySet(
IPropertySet* ppPropertySet
);[DllImport("api-ms-win-ro-typeresolution-l1-1-1.dll", ExactSpelling = true)]
static extern int RoCreateNonAgilePropertySet(
IntPtr ppPropertySet // IPropertySet* out
);<DllImport("api-ms-win-ro-typeresolution-l1-1-1.dll", ExactSpelling:=True)>
Public Shared Function RoCreateNonAgilePropertySet(
ppPropertySet As IntPtr ' IPropertySet* out
) As Integer
End Function' ppPropertySet : IPropertySet* out
Declare PtrSafe Function RoCreateNonAgilePropertySet Lib "api-ms-win-ro-typeresolution-l1-1-1" ( _
ByVal ppPropertySet As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RoCreateNonAgilePropertySet = ctypes.windll.LoadLibrary("api-ms-win-ro-typeresolution-l1-1-1.dll").RoCreateNonAgilePropertySet
RoCreateNonAgilePropertySet.restype = ctypes.c_int
RoCreateNonAgilePropertySet.argtypes = [
ctypes.c_void_p, # ppPropertySet : IPropertySet* out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('api-ms-win-ro-typeresolution-l1-1-1.dll')
RoCreateNonAgilePropertySet = Fiddle::Function.new(
lib['RoCreateNonAgilePropertySet'],
[
Fiddle::TYPE_VOIDP, # ppPropertySet : IPropertySet* out
],
Fiddle::TYPE_INT)#[link(name = "api-ms-win-ro-typeresolution-l1-1-1")]
extern "system" {
fn RoCreateNonAgilePropertySet(
ppPropertySet: *mut IPropertySet // IPropertySet* out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("api-ms-win-ro-typeresolution-l1-1-1.dll")]
public static extern int RoCreateNonAgilePropertySet(IntPtr ppPropertySet);
"@
$api = Add-Type -MemberDefinition $sig -Name 'api-ms-win-ro-typeresolution-l1-1-1_RoCreateNonAgilePropertySet' -Namespace Win32 -PassThru
# $api::RoCreateNonAgilePropertySet(ppPropertySet)#uselib "api-ms-win-ro-typeresolution-l1-1-1.dll"
#func global RoCreateNonAgilePropertySet "RoCreateNonAgilePropertySet" sptr
; RoCreateNonAgilePropertySet varptr(ppPropertySet) ; 戻り値は stat
; ppPropertySet : IPropertySet* out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "api-ms-win-ro-typeresolution-l1-1-1.dll" #cfunc global RoCreateNonAgilePropertySet "RoCreateNonAgilePropertySet" var ; res = RoCreateNonAgilePropertySet(ppPropertySet) ; ppPropertySet : IPropertySet* out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "api-ms-win-ro-typeresolution-l1-1-1.dll" #cfunc global RoCreateNonAgilePropertySet "RoCreateNonAgilePropertySet" sptr ; res = RoCreateNonAgilePropertySet(varptr(ppPropertySet)) ; ppPropertySet : IPropertySet* out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; HRESULT RoCreateNonAgilePropertySet(IPropertySet* ppPropertySet) #uselib "api-ms-win-ro-typeresolution-l1-1-1.dll" #cfunc global RoCreateNonAgilePropertySet "RoCreateNonAgilePropertySet" var ; res = RoCreateNonAgilePropertySet(ppPropertySet) ; ppPropertySet : IPropertySet* out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; HRESULT RoCreateNonAgilePropertySet(IPropertySet* ppPropertySet) #uselib "api-ms-win-ro-typeresolution-l1-1-1.dll" #cfunc global RoCreateNonAgilePropertySet "RoCreateNonAgilePropertySet" intptr ; res = RoCreateNonAgilePropertySet(varptr(ppPropertySet)) ; ppPropertySet : IPropertySet* out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
api_ms_win_ro_typeresolution_l1_1_1 = windows.NewLazySystemDLL("api-ms-win-ro-typeresolution-l1-1-1.dll")
procRoCreateNonAgilePropertySet = api_ms_win_ro_typeresolution_l1_1_1.NewProc("RoCreateNonAgilePropertySet")
)
// ppPropertySet (IPropertySet* out)
r1, _, err := procRoCreateNonAgilePropertySet.Call(
uintptr(ppPropertySet),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction RoCreateNonAgilePropertySet(
ppPropertySet: Pointer // IPropertySet* out
): Integer; stdcall;
external 'api-ms-win-ro-typeresolution-l1-1-1.dll' name 'RoCreateNonAgilePropertySet';result := DllCall("api-ms-win-ro-typeresolution-l1-1-1\RoCreateNonAgilePropertySet"
, "Ptr", ppPropertySet ; IPropertySet* out
, "Int") ; return: HRESULT●RoCreateNonAgilePropertySet(ppPropertySet) = DLL("api-ms-win-ro-typeresolution-l1-1-1.dll", "int RoCreateNonAgilePropertySet(void*)")
# 呼び出し: RoCreateNonAgilePropertySet(ppPropertySet)
# ppPropertySet : IPropertySet* out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。