static string GetCurrentProcessAppId() { string appId; TaskbarNativeMethods.GetCurrentProcessExplicitAppUserModelID(out appId); return(appId); }
/// <summary> /// Gets the current process' explicit application user model id. /// </summary> /// <returns>The app id or null if no app id has been defined.</returns> private string GetCurrentProcessAppId() { string appId = string.Empty; TaskbarNativeMethods.GetCurrentProcessExplicitAppUserModelID(out appId); return(appId); }