.\" -*- nroff -*-
.\" Generated file - DO NOT EDIT!
.TH GetModuleFileNameA 3w "Oct 2012" "Wine API" "Wine API"

.SH NAME
\fBGetModuleFileNameA\fR (KERNEL32.@)
.SH SYNOPSIS
DWORD GetModuleFileNameA
 (
  HMODULE \fIhModule\fR,
  LPSTR   \fIlpFileName\fR,
  DWORD   \fIsize\fR
 )

.SH PARAMS
\fIhModule\fR \fB[In]\fR  Module handle (\fB32\fR bit).
.PP
\fIlpFileName\fR \fB[Out]\fR  Destination for file name.
.PP
\fB[In]\fR  Size of \fIlpFileName\fR in characters.
.PP

.SH DESCRIPTION
.PP
Get the file name of a loaded module from its handle. 

.SH RETURNS
.PP
\fBSuccess:\fR The length of the file name, excluding the terminating \fBNUL\fR. 
.PP
\fBFailure:\fR \fB0.\fR Use \fBGetLastError(3w)\fR to determine the cause. 

.SH NOTES
.PP
This function always returns the long path of \fIhModule\fR The function doesn't write a terminating \fB'\0'\fR if the buffer is too small. 

.SH IMPLEMENTATION
.PP
Declared in \fB"winbase.h"\fR. 
.PP
Implemented in \fB"dlls/kernel32/module.c"\fR. 
.PP
Debug channel \fB"module"\fR.