티스토리 뷰

Delphi

function GetModuleName(Module: HMODULE): string;

C++

extern PACKAGE System::UnicodeString __fastcall GetModuleName(unsigned Module);

Properties

Type

Visibility

Source

Unit

Parent

function

public

System.SysUtils.pas

System.SysUtils.hpp

System.SysUtils

System.SysUtils

Description

Returns the fully qualified name of a module, given its handle.

Call GetModuleName to obtain the fully qualified name of a module, given its handle.

Module is the handle of the module whose file name is required.

Warning: On MAC OS, GetModuleName is not always successful.

Depending on the way the application is called, on the presence of the /proc file system, and other factors, there are times when GetModuleName may return a name that is not fully qualified or, in some cases, no file name at all.

Be sure to check the results of this function before using the returned value.

 

해당 핸들을 사용하여 모듈의 정규화 된 이름을 반환합니다.

GetModuleName을 호출하여 주어진 해당 핸들의 모듈의 정규화된 이름을 가져옵니다.

Module 은 파일 이름이 필요한 모듈의 핸들입니다.

경고: MAC OS에서 GetModuleName은 항상 성공적이지는 않습니다.

응용 프로그램이 호출되는 방식, / proc 파일 시스템이 있는 상황 및 기타 요인에 따라 GetModuleName이 정규화되지 않았거나 어떤 경우에는 파일 이름이 없는 이름을 반환 할 수도 있습니다.

반환 값을 사용하기 전에 이 함수의 결과를 확인하십시오.

 

Example

begin

  { 현재 모듈의 파일 경로를 반환. 파라미터로 0만 사용됨 }

  // 결과: H:\Develop\test\Reference\System.SysUtils\System.SysUtils.GetModuleName\Win32\Debug\Project_GetModuleName.exe

  Writeln(GetModuleName(0));

  Readln;

end.

 

fully qualified

충분한 자격이 있는

presence 미국·영국 [|prezns]   영국식   중요

1. (특정한 곳에) 있음, 존재(), 참석
2.
있음
3. (
특정 상황을 처리하기 위해) 주둔하는 사람들; 주둔군

present (presence) 미국식   형용사 [|preznt]   명사 [|preznt]   동사 [prɪ|zent]   영국식   중요

1. 현재의, 현 …
2.
있는, 참석한
3.
있는, 존재하는

factor 미국·영국 [|fӕktə(r)]   영국식   중요

1. 요인, 인자
2.
인수
3. (
증가감소의)

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.GetModuleName

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함