ホーム › UI.Shell.PropertiesSystem › PSUnregisterPropertySchema
PSUnregisterPropertySchema
関数プロパティスキーマ定義の登録を解除する。
シグネチャ
// PROPSYS.dll
#include <windows.h>
HRESULT PSUnregisterPropertySchema(
LPCWSTR pszPath
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pszPath | LPCWSTR | in |
戻り値の型: HRESULT
各言語での呼び出し定義
// PROPSYS.dll
#include <windows.h>
HRESULT PSUnregisterPropertySchema(
LPCWSTR pszPath
);[DllImport("PROPSYS.dll", ExactSpelling = true)]
static extern int PSUnregisterPropertySchema(
[MarshalAs(UnmanagedType.LPWStr)] string pszPath // LPCWSTR
);<DllImport("PROPSYS.dll", ExactSpelling:=True)>
Public Shared Function PSUnregisterPropertySchema(
<MarshalAs(UnmanagedType.LPWStr)> pszPath As String ' LPCWSTR
) As Integer
End Function' pszPath : LPCWSTR
Declare PtrSafe Function PSUnregisterPropertySchema Lib "propsys" ( _
ByVal pszPath As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
PSUnregisterPropertySchema = ctypes.windll.propsys.PSUnregisterPropertySchema
PSUnregisterPropertySchema.restype = ctypes.c_int
PSUnregisterPropertySchema.argtypes = [
wintypes.LPCWSTR, # pszPath : LPCWSTR
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('PROPSYS.dll')
PSUnregisterPropertySchema = Fiddle::Function.new(
lib['PSUnregisterPropertySchema'],
[
Fiddle::TYPE_VOIDP, # pszPath : LPCWSTR
],
Fiddle::TYPE_INT)#[link(name = "propsys")]
extern "system" {
fn PSUnregisterPropertySchema(
pszPath: *const u16 // LPCWSTR
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("PROPSYS.dll")]
public static extern int PSUnregisterPropertySchema([MarshalAs(UnmanagedType.LPWStr)] string pszPath);
"@
$api = Add-Type -MemberDefinition $sig -Name 'PROPSYS_PSUnregisterPropertySchema' -Namespace Win32 -PassThru
# $api::PSUnregisterPropertySchema(pszPath)#uselib "PROPSYS.dll"
#func global PSUnregisterPropertySchema "PSUnregisterPropertySchema" sptr
; PSUnregisterPropertySchema pszPath ; 戻り値は stat
; pszPath : LPCWSTR -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "PROPSYS.dll"
#cfunc global PSUnregisterPropertySchema "PSUnregisterPropertySchema" wstr
; res = PSUnregisterPropertySchema(pszPath)
; pszPath : LPCWSTR -> "wstr"; HRESULT PSUnregisterPropertySchema(LPCWSTR pszPath)
#uselib "PROPSYS.dll"
#cfunc global PSUnregisterPropertySchema "PSUnregisterPropertySchema" wstr
; res = PSUnregisterPropertySchema(pszPath)
; pszPath : LPCWSTR -> "wstr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
propsys = windows.NewLazySystemDLL("PROPSYS.dll")
procPSUnregisterPropertySchema = propsys.NewProc("PSUnregisterPropertySchema")
)
// pszPath (LPCWSTR)
r1, _, err := procPSUnregisterPropertySchema.Call(
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(pszPath))),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction PSUnregisterPropertySchema(
pszPath: PWideChar // LPCWSTR
): Integer; stdcall;
external 'PROPSYS.dll' name 'PSUnregisterPropertySchema';result := DllCall("PROPSYS\PSUnregisterPropertySchema"
, "WStr", pszPath ; LPCWSTR
, "Int") ; return: HRESULT●PSUnregisterPropertySchema(pszPath) = DLL("PROPSYS.dll", "int PSUnregisterPropertySchema(char*)")
# 呼び出し: PSUnregisterPropertySchema(pszPath)
# pszPath : LPCWSTR -> "char*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。