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