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