2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/windows.h>
|
|
|
|
|
|
|
|
#include <freerdp/client/channels.h>
|
|
|
|
|
|
|
|
int TestClientChannels(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int index;
|
2012-11-06 04:55:15 +04:00
|
|
|
DWORD dwFlags;
|
2012-11-04 07:04:04 +04:00
|
|
|
FREERDP_ADDIN* pAddin;
|
|
|
|
FREERDP_ADDIN** ppAddins;
|
|
|
|
|
2019-02-07 19:53:21 +03:00
|
|
|
WINPR_UNUSED(argc);
|
|
|
|
WINPR_UNUSED(argv);
|
2012-11-06 04:55:15 +04:00
|
|
|
dwFlags = FREERDP_ADDIN_DYNAMIC;
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate all\n");
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins(NULL, NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n",
|
|
|
|
pAddin->cName, pAddin->cSubsystem, pAddin->cType);
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate rdpsnd\n");
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins("rdpsnd", NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n",
|
|
|
|
pAddin->cName, pAddin->cSubsystem, pAddin->cType);
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
printf("Enumerate tsmf video\n");
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins("tsmf", NULL, "video", dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n",
|
|
|
|
pAddin->cName, pAddin->cSubsystem, pAddin->cType);
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins("unknown", NULL, NULL, dwFlags);
|
2012-11-04 07:04:04 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n",
|
|
|
|
pAddin->cName, pAddin->cSubsystem, pAddin->cType);
|
|
|
|
}
|
|
|
|
|
2012-11-04 07:33:10 +04:00
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-06 05:58:58 +04:00
|
|
|
printf("Enumerate static addins\n");
|
|
|
|
|
2012-11-06 04:55:15 +04:00
|
|
|
dwFlags = FREERDP_ADDIN_STATIC;
|
2012-11-18 07:03:04 +04:00
|
|
|
ppAddins = freerdp_channels_list_addins(NULL, NULL, NULL, dwFlags);
|
2012-11-06 04:55:15 +04:00
|
|
|
|
|
|
|
for (index = 0; ppAddins[index] != NULL; index++)
|
|
|
|
{
|
|
|
|
pAddin = ppAddins[index];
|
|
|
|
|
|
|
|
printf("Addin: Name: %s Subsystem: %s Type: %s\n",
|
|
|
|
pAddin->cName, pAddin->cSubsystem, pAddin->cType);
|
|
|
|
}
|
|
|
|
|
|
|
|
freerdp_channels_addin_list_free(ppAddins);
|
|
|
|
|
2012-11-04 07:04:04 +04:00
|
|
|
return 0;
|
|
|
|
}
|