# GetApplicationUserModelId

```csharp
[DllImport("Shell32.dll")][return: MarshalAs(UnmanagedType.U4)]
public static extern uint GetApplicationUserModelId(
   IntPtr hProcess,
   ref uint AppModelIDLength,
   [Out] StringBuilder sbAppModelID
);
```

Microsoft documentation: [Link](https://learn.microsoft.com/en-us/windows/win32/api/appmodel/nf-appmodel-getapplicationusermodelid)
