Re: GTK-Function with pathnamestring???
- From: Nix <nix go-nix ca>
- To: "Pawel S. Veselov" <Pawel Veselov Sun COM>
- Cc: Waldek Maleska <progss interia pl>, Christian Schneider <christian_schneider_2000 yahoo de>, gtk-app-devel-list gnome org
- Subject: Re: GTK-Function with pathnamestring???
- Date: Mon, 13 Oct 2003 12:16:45 -0600
I would like to remind everyone that for Windows, this discussion is
moot. From msdn.microsoft.com:
GetModuleFileName
The GetModuleFileName function retrieves the fully qualified path for
the specified module.
To specify the process that contains the module, use the
GetModuleFileNameEx function.
DWORD GetModuleFileName(
HMODULE hModule, LPTSTR lpFilename, DWORD nSize);
Parameters
hModule
[in] Handle to the module whose path is being requested. If this
parameter is NULL, GetModuleFileName retrieves the path of the
executable file of the current process.
lpFilename
[out] Pointer to a buffer that receives a null-terminated string
that specifies the fully-qualified path of the module. If the
length of the path exceeds the size specified by the nSize
parameter, the function succeeds and the string is truncated to
nSize characters and is null terminated.
The path can have the prefix "\\?\", depending on how the module
was loaded. For more information, see Naming a File.
nSize
[in] Size of the lpFilename buffer, in TCHARs.
Return Values
If the function succeeds, the return value is the length of the string
copied to the buffer, in TCHARs. If the buffer is too small to hold the
module name, the string is truncated to nSize, and the function returns
nSize.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]