shell32.dll

DinkToPdf Library Unable to load shared library 'Shell32.dll'

ε祈祈猫儿з 提交于 2021-02-11 17:04:30
问题 I am using DinkToPdf Library for pdf generation, but I encountered on a problme on Debian 9. I changed CustomAssemblyLoadConext to load the .so file like this #region DinkToPDF #if DEBUG string filePath = $@"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\libwkhtmltox.dll"; #else string filePath = $@"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\libwkhtmltox.so"; #endif CustomAssemblyLoadContext context = new CustomAssemblyLoadContext(); context

How I can use Shell32.dll in Silverlight OOB

 ̄綄美尐妖づ 提交于 2020-01-05 05:50:50
问题 I'd like to get the target information from a shortcut file using my silverlight OOB app, so I'm going to make the following code to work in my silverlight OOB. It seems I have to used P/Invoke to use Shell32.dll, but I'm not sure how I can use Folder, FolderItem, and ShellLinkObject? Most references explain how I can use the functions in the .dll using P/invoke:( Please give me any comments or sample code/links:) public string GetShortcutTargetFile(string shortcutFilename) { string pathOnly

ShellExecuteEx crashes in Excel VBA

随声附和 提交于 2019-12-30 10:43:16
问题 since Windows updates occurred an api call to ShellExecuteEx(sExecuteInfo) crashes saying "unhandled exception at 0x75F7A529 (shell32.dll) Access violation reading location 0x68686903". I have no clue what is wrong here, can you help me please ? Definition : Private Type SHELLEXECUTEINFO cbSize As Long fMask As Long Hwnd As Long lpVerb As String lpFile As String lpParameters As String lpDirectory As String nShow As Long hInstApp As Long lpIDList As Long lpClass As String hkeyClass As Long

ShellExecuteEx crashes in Excel VBA

五迷三道 提交于 2019-12-30 10:43:06
问题 since Windows updates occurred an api call to ShellExecuteEx(sExecuteInfo) crashes saying "unhandled exception at 0x75F7A529 (shell32.dll) Access violation reading location 0x68686903". I have no clue what is wrong here, can you help me please ? Definition : Private Type SHELLEXECUTEINFO cbSize As Long fMask As Long Hwnd As Long lpVerb As String lpFile As String lpParameters As String lpDirectory As String nShow As Long hInstApp As Long lpIDList As Long lpClass As String hkeyClass As Long

ShellExecuteEx crashes in Excel VBA

为君一笑 提交于 2019-12-30 10:42:11
问题 since Windows updates occurred an api call to ShellExecuteEx(sExecuteInfo) crashes saying "unhandled exception at 0x75F7A529 (shell32.dll) Access violation reading location 0x68686903". I have no clue what is wrong here, can you help me please ? Definition : Private Type SHELLEXECUTEINFO cbSize As Long fMask As Long Hwnd As Long lpVerb As String lpFile As String lpParameters As String lpDirectory As String nShow As Long hInstApp As Long lpIDList As Long lpClass As String hkeyClass As Long

VB.net or Windows API: How to find out which icons the file explorer uses?

a 夏天 提交于 2019-12-23 05:08:58
问题 I am currently working on a Windows desktop application using VB.net where I would like to have a file and folder browsing interface directly integrated, i.e. the user does not have to open a file browser dialog to select files. My file browser should resemble the original Windows file explorer at least in that it uses the same icons for the most common locations. For example, I would like to include the "Favorites" folder with the appropriate icon (please note that this is NOT the IE

Clear Recycle Bin programmatically with Powershell

╄→尐↘猪︶ㄣ 提交于 2019-12-10 09:34:01
问题 One of the hardest things I've had to do is access Windows APIs with PowerShell. I want to erase the Recycle Bin using the API in Shell32.dll. There are other ways of doing it, but they are typically bypassing the normal Windows processes and in this case, I want to do it the "right" way. 回答1: After a few hours, I came up with this. $TypeDefinition=@" using System; using System.ComponentModel; using System.Runtime.InteropServices; namespace shell32 { //Put all the variables required for the

Shell BrowseForFolder preselected path

我的未来我决定 提交于 2019-12-08 19:53:44
问题 I have this call: oShell.BrowseForFolder(Me.hwnd, "Select path:", 0, "C:\dir\") This opens a standard file browser dialog with "C:\dir\" as root. My problem is that you can not browse above the root folder. (as specified in doc http://msdn.microsoft.com/en-us/library/bb774065(v=vs.85).aspx) Any suggestions on oppening this dialog with a selected path and full browsing posibility? Thanks 回答1: The way to do this involves calling the underlying API, SHBrowseForFolder(). Since you want the entire

Show network folder icon in listview VB.NET

妖精的绣舞 提交于 2019-12-04 05:22:12
问题 how do I show network folder icon in a listview? the one with the green tube under the folder, I have the code that works great with files and folders but when visiting other computer through network, I can't see the network folders that looks like this one. what should I add? here's my code: this is how I display icon in a ListView Dim fPath As String = Form2.TextBox1.Text Dim di = New DirectoryInfo(fPath) ' store imagelist index for known/found file types Dim exts As New Dictionary(Of

Show network folder icon in listview VB.NET

自作多情 提交于 2019-12-02 04:09:28
how do I show network folder icon in a listview? the one with the green tube under the folder, I have the code that works great with files and folders but when visiting other computer through network, I can't see the network folders that looks like this one. what should I add? here's my code: this is how I display icon in a ListView Dim fPath As String = Form2.TextBox1.Text Dim di = New DirectoryInfo(fPath) ' store imagelist index for known/found file types Dim exts As New Dictionary(Of String, Int32) If di.Exists = True Then Dim img As Image Dim lvi As ListViewItem For Each d In di