Win32 API 日本語リファレンス
ホームSystem.Com.Urlmon › IEGetUserPrivateNamespaceName

IEGetUserPrivateNamespaceName

関数
IEのユーザー専用名前空間の名前を取得する。
DLLurlmon.dll呼出規約winapi

シグネチャ

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

LPWSTR IEGetUserPrivateNamespaceName(void);

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

各言語での呼び出し定義

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

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

IEGetUserPrivateNamespaceName = ctypes.windll.urlmon.IEGetUserPrivateNamespaceName
IEGetUserPrivateNamespaceName.restype = wintypes.LPWSTR
IEGetUserPrivateNamespaceName.argtypes = []
require 'fiddle'
require 'fiddle/import'

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

var (
	urlmon = windows.NewLazySystemDLL("urlmon.dll")
	procIEGetUserPrivateNamespaceName = urlmon.NewProc("IEGetUserPrivateNamespaceName")
)

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