Controlling PeerGuardian 2

From Phoenix Labs Wiki

Jump to: navigation, search

There are currently minimal ways to have your application interact with PeerGuardian 2.

Hide/Unhide

If you would like to bring PeerGuardian 2 out of the tray or send it back, you can do:

UINT msg=RegisterWindowMessage(_T("PeerGuardian2SetVisible"));
SendMessage(HWND_BROADCAST, msg, 0, TRUE); // TRUE to show, FALSE to hide.

Force a list reload

As of Beta 6, PeerGuardian 2 allows you to force it to reload its lists, and possibly regenerate its cache. This is done in a similar fashion to hiding/unhiding:

UINT msg=RegisterWindowMessage(_T("PeerGuardian2LoadLists"));
SendMessage(HWND_BROADCAST, msg, 0, 0);
Personal tools