2个回答
展开全部
procedure TForm1.Button1Click(Sender: TObject);
var
WinIni : TIniFile;
WinIniFileName : array[0..MAX_PATH] of char;
s : array[0..64] of char;
begin
GetWindowsDirectory(WinIniFileName, sizeof(WinIniFileName));
StrCat(WinIniFileName, '\win.ini');
WinIni := TIniFile.Create(WinIniFileName);
try
WinIni.WriteString('windows',
'device',
'HP LaserJet Series II,HPPCL,LPT1:');
finally
WinIni.Free;
end;
StrCopy(S, 'windows');
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, LongInt(@S));
end;
var
WinIni : TIniFile;
WinIniFileName : array[0..MAX_PATH] of char;
s : array[0..64] of char;
begin
GetWindowsDirectory(WinIniFileName, sizeof(WinIniFileName));
StrCat(WinIniFileName, '\win.ini');
WinIni := TIniFile.Create(WinIniFileName);
try
WinIni.WriteString('windows',
'device',
'HP LaserJet Series II,HPPCL,LPT1:');
finally
WinIni.Free;
end;
StrCopy(S, 'windows');
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, LongInt(@S));
end;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
北京合创芯彩科技
2024-08-22 广告
2024-08-22 广告
请问打印控制系统哪家好?建议咨询北京合创芯彩科技有限公司,北京合创芯彩科技有限公司(英文名:ICCOLOR),专注于打印技术及相关产品的开发,公司拥有多项自主创新的技术成果,拥有多项软件著作权和专利,是国内独家能提供从主控芯片、到办公设备开...
点击进入详情页
本回答由北京合创芯彩科技提供
展开全部
procedure
TForm1.Button1Click(Sender:
TObject);
var
WinIni
:
TIniFile;
WinIniFileName
:
array[0..MAX_PATH]
of
char;
s
:
array[0..64]
of
char;
begin
GetWindowsDirectory(WinIniFileName,
sizeof(WinIniFileName));
StrCat(WinIniFileName,
'\win.ini');
WinIni
:=
TIniFile.Create(WinIniFileName);
try
WinIni.WriteString('windows',
'device',
'HP
LaserJet
Series
II,HPPCL,LPT1:');
finally
WinIni.Free;
end;
StrCopy(S,
'windows');
SendMessage(HWND_BROADCAST,
WM_WININICHANGE,
0,
LongInt(@S));
end;
TForm1.Button1Click(Sender:
TObject);
var
WinIni
:
TIniFile;
WinIniFileName
:
array[0..MAX_PATH]
of
char;
s
:
array[0..64]
of
char;
begin
GetWindowsDirectory(WinIniFileName,
sizeof(WinIniFileName));
StrCat(WinIniFileName,
'\win.ini');
WinIni
:=
TIniFile.Create(WinIniFileName);
try
WinIni.WriteString('windows',
'device',
'HP
LaserJet
Series
II,HPPCL,LPT1:');
finally
WinIni.Free;
end;
StrCopy(S,
'windows');
SendMessage(HWND_BROADCAST,
WM_WININICHANGE,
0,
LongInt(@S));
end;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询