var SHGetSetFolderCustomSettings: function (pfcs: PSHFOLDERCUSTOMSETTINGS; pszPath: PWideChar; dwReadWrite: DWORD):HRESULT; stdcall; implementation .. .. .. var Shell32: HModule; begin Shell32 := GetModuleHandle('Shell32'); if Shell32 = 0 then RaiseLastOSError; @SHGetSetFolderCustomSettings := GetProcAddress(Shell32, 'SHGetSetFolderCustomSettings'); // Win7 / Vista if not Assigned(_SHGetSetFolderCustomSettings) then @_SHGetSetFolderCustomSettings := GetProcAddress(Shell32, 'SHGetSetFolderCustomSettingsW'); // XP and older end;
var fcs: SHFOLDERCUSTOMSETTINGS; . . SHGetSetFolderCustomSettings(@fcs,PWideChar(Folder),FCS_FORCEWRITE);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question