Questions tagged [windows-api-code-pack]

The Windows API Code Pack for .NET is esentially a managed API to access Shell functions, that are otherwise not available for .NET Developers.

The Windows API Code Pack for .NET can either be downloaded from MSDN or installed via NuGet with Install-Package Windows7APICodePack.

170 questions
0
votes
1 answer

Unspecified Error when using Windows Search API

I am using the Windows Search API from C# with the following query: SELECT System.ItemNameDisplay,SYSTEM.ITEMURL,System.DateModified, System.ItemName, System.Search.Rank, System.Keywords, System.Search.AutoSummary,System.Search.GatherTime,…
SimonKravis
  • 553
  • 1
  • 3
  • 24
0
votes
2 answers

Customizing OpenFileDialog to modify button text

I wanted a folder dialog box to get the path of a folder that is selected and wanted to save multiple files in to that path. I am able to get this using WindowsApiCodePack I want to rename the text in the button "Select folder" to "Save" which was…
0
votes
0 answers

How to show a TaskDialog outside of Windows Form in C#? (comctl v6 is not loaded)

I love TaskDialogs and quite often use them, but I have trouble invoking them outside of Windows Form class. In a Winforms class, they can be invoked easy like this: new Microsoft.WindowsAPICodePack.Dialogs.TaskDialog().Show(); So to show a general…
KnorxThieus
  • 567
  • 8
  • 17
0
votes
0 answers

NUMLINES macro and sysmetrics array in sysmets.h, Windows API

//score is a variable that is case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // Update the score here EndPaint(hWnd, &ps); break; I am creating a game using windows API and using a score variable to keep track of the…
varimax
  • 111
  • 1
  • 13
0
votes
1 answer

VBA stopped running after executing popup button in IE?

I Have create VBA code which open website and click upload button but after executing upload button its still running same line but it should run next line of my API program for fill the popup upload form but its not running. Below is my VBA…
Kathir vtv
  • 305
  • 2
  • 7
  • 19
0
votes
1 answer

How to handle "Destination Path Too Long" event using .NET?

When I am trying to move a lot of files from one folder to another folder windows shows me a message about one of those files: The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try…
0
votes
1 answer

How to get Root Drive details using Windows API Code Pack?

I wrote function which allows me to get all properties of any file. This function even works for folders. But I mentioned that without "Windows API Code Pack" and using "Shell32" you can get early about 308 properties of any file. …
0
votes
1 answer

How to obtain mouse cursor coordinates from lParam from a low level mouse callback method?

The question heading itself pretty much describes my overall problem. Following is what I have done so far. // the event is registered as following mouseProc = new CallWndRetProc(MouseProc); // get keys MouseProcHandle =…
Nilaksha Perera
  • 715
  • 2
  • 12
  • 36
0
votes
0 answers

How to add "Store app" project template to Visual basic?

I wanted to build windows phone app using Visual basic. It requires store app project template which is not existing in my version! I tried to download the VS Express version 2013 and every time i start it shows Visual studio needs some repair. Even…
0
votes
0 answers

C# - Get jumplist tasks from assembly

Is it possible to read all jumplist tasks/entries from an assembly using C#? I have worked with the WindowsAPICodePack before, but I did not find the appropriate methods/classes. I have read some articles which stated that it is impossible to read…
unknown6656
  • 2,765
  • 2
  • 36
  • 52
0
votes
1 answer

Java JNA using kernal32 VirtualQueryEx returns zero (no success error code)

I am trying to use VirtualQueryEx from kernal32.dll windows API functions. All pointers/addresses i get before call to this function are correct. The call to VirtualQueryEx returns 0 , which means no success. Also GetLastError() returns error code…
Stav Bodik
  • 2,018
  • 3
  • 18
  • 25
0
votes
1 answer

What is the best way to identify if MSI have been modified or not

In our organization, An automated script copies all MSI's from build location to a new folder inside a shared folder each time after a successful build. There are more than 150 projects. Problem I am facing is, even though only 20 projects have been…
0
votes
1 answer

Windows API Code Pack features on windows xp machine

I have a windows app that needs to work on all platforms of windows. I recently installed the Windows API Code Pack and replaced a folder browser with a "CommonOpenFileBrowser". This was great until I tried running my program on a windows XP machine…
Takahashinator
  • 189
  • 1
  • 7
0
votes
1 answer

Hosting an EXE in WPF seamlessly

I've currently been given the task of hosting a bunch of old VB6 exes insdide WPF while the seemingly infinite task or refactoring is taking place. Hosting the EXE wasn't too tricky at all but making the process seamless has. Currently the flow…
Oli
  • 428
  • 1
  • 5
  • 20
0
votes
1 answer

Is HWND value is constant for a file/application?

I want to know that ,hwnd value of a file or application is constant through the life time or it can vary for a file or application after close?