Win32 API 日本語リファレンス
ホームGaming › ProcessPendingGameUI

ProcessPendingGameUI

関数
保留中のゲームUI処理を実行する。
DLLapi-ms-win-gaming-tcui-l1-1-0.dll呼出規約winapi

シグネチャ

// api-ms-win-gaming-tcui-l1-1-0.dll
#include <windows.h>

HRESULT ProcessPendingGameUI(
    BOOL waitForCompletion
);

パラメーター

名前方向
waitForCompletionBOOLin

戻り値の型: HRESULT

各言語での呼び出し定義

// api-ms-win-gaming-tcui-l1-1-0.dll
#include <windows.h>

HRESULT ProcessPendingGameUI(
    BOOL waitForCompletion
);
[DllImport("api-ms-win-gaming-tcui-l1-1-0.dll", ExactSpelling = true)]
static extern int ProcessPendingGameUI(
    bool waitForCompletion   // BOOL
);
<DllImport("api-ms-win-gaming-tcui-l1-1-0.dll", ExactSpelling:=True)>
Public Shared Function ProcessPendingGameUI(
    waitForCompletion As Boolean   ' BOOL
) As Integer
End Function
' waitForCompletion : BOOL
Declare PtrSafe Function ProcessPendingGameUI Lib "api-ms-win-gaming-tcui-l1-1-0" ( _
    ByVal waitForCompletion As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ProcessPendingGameUI = ctypes.windll.LoadLibrary("api-ms-win-gaming-tcui-l1-1-0.dll").ProcessPendingGameUI
ProcessPendingGameUI.restype = ctypes.c_int
ProcessPendingGameUI.argtypes = [
    wintypes.BOOL,  # waitForCompletion : BOOL
]
require 'fiddle'
require 'fiddle/import'

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

var (
	api_ms_win_gaming_tcui_l1_1_0 = windows.NewLazySystemDLL("api-ms-win-gaming-tcui-l1-1-0.dll")
	procProcessPendingGameUI = api_ms_win_gaming_tcui_l1_1_0.NewProc("ProcessPendingGameUI")
)

// waitForCompletion (BOOL)
r1, _, err := procProcessPendingGameUI.Call(
	uintptr(waitForCompletion),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function ProcessPendingGameUI(
  waitForCompletion: BOOL   // BOOL
): Integer; stdcall;
  external 'api-ms-win-gaming-tcui-l1-1-0.dll' name 'ProcessPendingGameUI';
result := DllCall("api-ms-win-gaming-tcui-l1-1-0\ProcessPendingGameUI"
    , "Int", waitForCompletion   ; BOOL
    , "Int")   ; return: HRESULT
●ProcessPendingGameUI(waitForCompletion) = DLL("api-ms-win-gaming-tcui-l1-1-0.dll", "int ProcessPendingGameUI(bool)")
# 呼び出し: ProcessPendingGameUI(waitForCompletion)
# waitForCompletion : BOOL -> "bool"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。