Win32 API 日本語リファレンス
ホームNetworking.Clustering › ResetAllAppInstanceVersions

ResetAllAppInstanceVersions

関数
全アプリインスタンスのバージョンをリセットする。
DLLNTLANMAN.dll呼出規約winapi

シグネチャ

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

DWORD ResetAllAppInstanceVersions(void);

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

各言語での呼び出し定義

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

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

ResetAllAppInstanceVersions = ctypes.windll.ntlanman.ResetAllAppInstanceVersions
ResetAllAppInstanceVersions.restype = wintypes.DWORD
ResetAllAppInstanceVersions.argtypes = []
require 'fiddle'
require 'fiddle/import'

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

var (
	ntlanman = windows.NewLazySystemDLL("NTLANMAN.dll")
	procResetAllAppInstanceVersions = ntlanman.NewProc("ResetAllAppInstanceVersions")
)

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