Kernel32OpenPrivateNamespace Method

Opens a private namespace.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

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.

Remarks

See Also