Win32 API 日本語リファレンス
ホームUI.Shell.PropertiesSystem › PSRefreshPropertySchema

PSRefreshPropertySchema

関数
プロパティスキーマのキャッシュを更新する。
DLLPROPSYS.dll呼出規約winapi対応OSWindows XP 以降

シグネチャ

// PROPSYS.dll
#include <windows.h>

HRESULT PSRefreshPropertySchema(void);

パラメーターなし。戻り値: HRESULT

各言語での呼び出し定義

// PROPSYS.dll
#include <windows.h>

HRESULT PSRefreshPropertySchema(void);
[DllImport("PROPSYS.dll", ExactSpelling = true)]
static extern int PSRefreshPropertySchema();
<DllImport("PROPSYS.dll", ExactSpelling:=True)>
Public Shared Function PSRefreshPropertySchema() As Integer
End Function
Declare PtrSafe Function PSRefreshPropertySchema Lib "propsys" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

PSRefreshPropertySchema = ctypes.windll.propsys.PSRefreshPropertySchema
PSRefreshPropertySchema.restype = ctypes.c_int
PSRefreshPropertySchema.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('PROPSYS.dll')
PSRefreshPropertySchema = Fiddle::Function.new(
  lib['PSRefreshPropertySchema'],
  [],
  Fiddle::TYPE_INT)
#[link(name = "propsys")]
extern "system" {
    fn PSRefreshPropertySchema() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("PROPSYS.dll")]
public static extern int PSRefreshPropertySchema();
"@
$api = Add-Type -MemberDefinition $sig -Name 'PROPSYS_PSRefreshPropertySchema' -Namespace Win32 -PassThru
# $api::PSRefreshPropertySchema()
#uselib "PROPSYS.dll"
#func global PSRefreshPropertySchema "PSRefreshPropertySchema"
; PSRefreshPropertySchema   ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "PROPSYS.dll"
#cfunc global PSRefreshPropertySchema "PSRefreshPropertySchema"
; res = PSRefreshPropertySchema()
; HRESULT PSRefreshPropertySchema()
#uselib "PROPSYS.dll"
#cfunc global PSRefreshPropertySchema "PSRefreshPropertySchema"
; res = PSRefreshPropertySchema()
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	propsys = windows.NewLazySystemDLL("PROPSYS.dll")
	procPSRefreshPropertySchema = propsys.NewProc("PSRefreshPropertySchema")
)

r1, _, err := procPSRefreshPropertySchema.Call()
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function PSRefreshPropertySchema: Integer; stdcall;
  external 'PROPSYS.dll' name 'PSRefreshPropertySchema';
result := DllCall("PROPSYS\PSRefreshPropertySchema", "Int")
●PSRefreshPropertySchema() = DLL("PROPSYS.dll", "int PSRefreshPropertySchema()")
# 呼び出し: PSRefreshPropertySchema()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。