int RmRegisterResources(int dwSessionHandle,
                            int nFiles,
                            StringArray rgsFilenames,
                            int nApplications,
                            Pointer rgApplications,
                            int nServices,
                            StringArray rgsServiceNames);
int RmRegisterResources(int dwSessionHandle,
                            int nFiles,
                            StringArray rgsFilenames,
                            int nApplications,
                            Pointer rgApplications,
                            int nServices,
                            StringArray rgsServiceNames)