The following code example shows the usage of a mutex object to determine if MSN Explorer is signed in. When you have finished using the handle, be sure to call the CloseHandle function.
Note:
This mutex object is available for use in checking MSN Explorer 7.x sign-in status. It may be unavailable in subsequent versions.
HANDLE hMSNSignedInMutex;
hMSNSignedInMutex = OpenMutex(SYNCHRONIZE, FALSE,
"{ECCC50B5-064B-4693-B104-925714A4C74B}");
if (hMSNSignedInMutex != NULL)
{
// MSN Explorer is signed in
}
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
