Kernel32OpenPrivateNamespace Method
Opens a private namespace.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr OpenPrivateNamespace(
IntPtr boundaryDescriptor,
string aliasPrefix
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function OpenPrivateNamespace (
boundaryDescriptor As IntPtr,
aliasPrefix As String
) As IntPtr
Dim boundaryDescriptor As IntPtr
Dim aliasPrefix As String
Dim returnValue As IntPtr
returnValue = Kernel32.OpenPrivateNamespace(boundaryDescriptor,
aliasPrefix)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr OpenPrivateNamespace(
[InAttribute] IntPtr boundaryDescriptor,
[InAttribute] String^ aliasPrefix
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member OpenPrivateNamespace :
boundaryDescriptor : IntPtr *
aliasPrefix : string -> IntPtr
No code example is currently available or this language may not be supported.
- boundaryDescriptor IntPtr
-
A descriptor that defines how the namespace is to be isolated.
The CreateBoundaryDescriptor(String, UInt32) function creates a boundary descriptor..
- aliasPrefix String
-
The prefix for the namespace. To create an object in this namespace, specify the object name as prefix<i>objectname.
IntPtr
If the function succeeds, the return value is the handle to the existing namespace>.
If the function fails, the return value is
Zero.
To get extended error information, call
GetLastWin32Error.