WindowsUtils.getPackageInstallationSubdirectory

Warning g_win32_get_package_installation_subdirectory has been deprecated since version 2.18 and should not be used in newly-written code. Pass the HMODULE of a DLL or EXE to g_win32_get_package_installation_directory_of_module() instead, and then construct a subdirectory pathname with g_build_filename(). This function is deprecated. Use g_win32_get_package_installation_directory_of_module() and g_build_filename() instead. Returns a newly-allocated string containing the path of the subdirectory subdir in the return value from calling g_win32_get_package_installation_directory() with the package and dll_name parameters. See the documentation for g_win32_get_package_installation_directory() for more details. In particular, note that it is deprecated to pass anything except NULL as package.

class WindowsUtils
static
string
getPackageInstallationSubdirectory
(
string p
,
string dllName
,
string subdir
)

Parameters

dllName string

The name of a DLL that a package provides, in UTF-8, or NULL. [allow-none]

subdir string

A subdirectory of the package installation directory, also in UTF-8

Return Value

Type: string

a string containing the complete path to subdir inside the installation directory of package. The returned string is in the GLib file name encoding, i.e. UTF-8. The return value should be freed with g_free() when no longer needed. If something goes wrong, NULL is returned.

Meta