Shell32GetCurrentProcessExplicitAppUserModelID Method
Retrieves the application-defined, explicit Application User Model ID (AppUserModelID) for the current process.
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("Shell32.dll")]
public static int GetCurrentProcessExplicitAppUserModelID(
out string refAppID
)
<DllImportAttribute("Shell32.dll">]
Public Shared Function GetCurrentProcessExplicitAppUserModelID (
<OutAttribute> ByRef refAppID As String
) As Integer
Dim refAppID As String
Dim returnValue As Integer
returnValue = Shell32.GetCurrentProcessExplicitAppUserModelID(refAppID)
public:
[DllImportAttribute(L"Shell32.dll")]
static int GetCurrentProcessExplicitAppUserModelID(
[OutAttribute] String^% refAppID
)
[<DllImportAttribute("Shell32.dll")>]
static member GetCurrentProcessExplicitAppUserModelID :
refAppID : string byref -> int
No code example is currently available or this language may not be supported.
- refAppID String
-
A pointer that receives the address of the AppUserModelID assigned to the process.
The caller is responsible for freeing this string with CoTaskMemFree when it is no longer needed.
Int32
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.