為什麼執行帶Proc 的函數都要跳出一個顯示''計算機名''的對話框??
LibHandle:=Loadlibrary('GetComputerName.dll');
try
if LibHandle=0 then
ShowMessage('GetComputerName.dll Dll Faile');
@MyName:=GetProcAddress(LibHandle,'MyGetAppServerName');
if (@MyName=nil) then
Showmessage('MyGetAppServerName proc_faile')
else
//DCOM_LOGO.ComputerName :=MyName('{9DDED473-6513-11D4-9B7E-00C04F1CD0D6}'); ---------------(1)
DCOM_LOGO.ComputerName :='FXit02'; ---------------(2)
上面的語句執行(1)跳出一個顯示''計算機名''的對話框, 而(2)沒有對話框.
下面的語句在執行RETURN:=CreateProcess 時也跳出好幾次對話框.
為什麼帶Proc 的函數都要跳出一個顯示''計算機名''的對話框??
STR:=ModuleName + ' '+Act+' '+PSW+' '+UserName+' '+USERCODE;
PCH:=PCHAR(STR);
RETURN:=CreateProcess(
nil, // pointer to name of executable module
PCH, // pointer to command line string
NIL, // pointer to process security attributes
NIL, // pointer to thread security attributes
FALSE, // handle inheritance flag
0, // creation flags
NIL, // pointer to new environment block
NIL, // pointer to current directory name
START, // pointer to STARTUPINFO
PROCESSINFO // pointer to PROCESS_INFORMATION
);