Kategorie: Programmierung

Programmierung

SHGetSpecialFolderLocation

[code lang=”delphi”]Var SFolder : pItemIDList; SpecialPath : Array[0..MAX_PATH] Of Char; begin SHGetSpecialFolderLocation(Form1.Handle, CSIDL_STARTUP, SFolder); SHGetPathFromIDList(SFolder, SpecialPath); Label1.Caption := StrPas(SpecialPath); Other folders : CSIDL_BITBUCKET…

Programmierung

Show Or Hide TaskBar

[code lang=”delphi”]procedure TForm1.btnHideTaskBarClick(Sender: TObject); Var TaskBarHandle : Integer; Begin TaskBarHandle := FindWindow(‘Shell_TrayWnd’,Nil); ShowWindow(TaskBarHandle, SW_HIDE); End; procedure TForm1.btnShowTaskBarClick(Sender: TObject); Var TaskBarHandle : Integer; Begin…

Programmierung

System Image Usage

[code lang=”delphi”]function GetIconIndex(const AFile: string; Attrs: DWORD): integer; var SFI: TSHFileInfo; begin SHGetFileInfo(PChar(AFile), Attrs, SFI, SizeOf(TSHFileInfo), SHGFI_SYSICONINDEX or SHGFI_USEFILEATTRIBUTES); Result := SFI.iIcon; end;[/code]…