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
3
votes
0 answers

COMException while adding paths to a ShellLibrary

I'm using Windows 7's Shell Libraries to overwrite an existing library and add new paths to it, using the managed wrapper available through the Windows API Code Pack 1.1. Every now and then, I can't seem to reproduce this in any way, a COMException…
Steven Jeuris
  • 18,274
  • 9
  • 70
  • 161
2
votes
0 answers

Removing items from Custom Category - Jumplist

How to dynamically remove items from custom category in Jumplist (without deleting the jumplist itself). Here is how i am creating jumplist and customcategory: // Creating jumplist list =…
bayCoder
  • 1,345
  • 1
  • 11
  • 19
2
votes
0 answers

Go win64 api permission denied

I am using this Windows API wrapper to try and get bitlocker status. My code is: test, err := wapi.GetBitLockerConversionStatus() I am getting the following error: err wmi.Connect: permission denied: Exception occurred. (Access denied ) When I'm…
2
votes
1 answer

How to convert WicImagingBitmap to Gdi+ Bitmap or a stream?

I'm a .net developer and I'm using WindowsAPICodePackage WIC to render images. I want to convert WIC ImagingBitmap to a gdi+ bitmap or to a MemoryStream instead using its own method "SaveToFile". Is there a way? Here is my code, please help: int…
Howard
  • 3,638
  • 4
  • 32
  • 39
2
votes
1 answer

How to allocate heap in kernel space for an array of fix-sized arrays of characters?

I know that in kernel space one usually uses ExAllocatePoolWithTag function, but I don't know how to allocate memory for a dynamically-sized array of fixed-sized arrays of chars (kind of 2x2 matrix of which the number of lines could dynamically…
2
votes
1 answer

How to prevent Start Menu Pinning in WPF App

Using WindowsAPICodePack.Shell I am trying to prevent users from pinning a WPF application to the Start menu and Taskbar. I'm doing this on a Windows 10 machine. I've tried two approaches and both prevent pinning to the Taskbar but still can pin to…
Ciaran Martin
  • 578
  • 4
  • 12
2
votes
1 answer

c++ win32 console app adding a "choose file" dialog box using windows api

I am trying to add a choose file dialog box to my project which now can only take the filename input by the user. I did some search and it seems windows API with GetOpenFileName function is the easiest way for me to do that. However, when I…
2
votes
1 answer

Inhibit Input Validation on CommonOpenFileDialog in Win API Pack

This is a WPF app with the latest version of the .NET framework and VS2015 on a Win 10 box. I am trying to use the "CommonOpenFileDialog" from the Windows API code pack 1.1 to allow the user to establish a folder in which to do some stuff. The…
Wally Walrus
  • 253
  • 1
  • 2
  • 7
2
votes
1 answer

Odd error in ShellFile.FromFilePath

Sometimes I am getting following error: An item with the same key has already been added at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary'2.Add(TKey key, TValue…
Vladimirs
  • 8,232
  • 4
  • 43
  • 79
2
votes
0 answers

Removing ShellFile Properties

I ran into a problem this week regarding the Windows Shell Property System when applied to TIFF/TIF files. I'm using Microsoft.WindowsAPICodePack 1.1.0.0 to access the property system. When adding properties, the file gets corrupted because it seems…
RickNo
  • 403
  • 5
  • 12
2
votes
1 answer

How to programmatically diffrenciate the epub fix layout and reflowable

I need to programmatically identify the layout of an ePub file. The ePub file can be either in Fixed Layout or Reflowable Layout. I tried to use Microsoft.WindowsAPICodePack with Microsoft.WindowsAPICodePack.Shell to pull the metadata of an ePub…
Alan B
  • 2,219
  • 4
  • 32
  • 62
2
votes
0 answers

AllowsTransparency and TabbedThumbnail issue in Windows 10

I created an application that uses an image as preview in the taskbar. This is done by using the GlassWindow from an extended version of the WindowsApiCodePack. The window was styled using AllowsTransparency, WindowsStyle and using WindowChrome. Now…
2
votes
1 answer

FIndWindow() not working after BM_CLICK

I am using SendMessage() to send a BM_CLICK to a button that opens a popup window and then trying to use FindWindow() to find the ID for this window. When I manually click the button or press enter once selecting the button I can find the window ID…
Matt26
  • 61
  • 4
2
votes
1 answer

Select a menu item in another application

I am using VB6 to try and select a menu item in a sub menu of a third-party application. I can get the ID for the menu item I want to click but now I am not sure how to actually click the button in order to have the related actions run. Here is my…
Matt26
  • 61
  • 4
2
votes
1 answer

Windows 8 Backup/Restore application

I am new in Windows Software (not app) development. Now I want to build a software having options like this- This position is to create a piece of software which monitors all changes a user makes to a public windows 8 machine (registry+files). When…
Abrar Jahin
  • 13,970
  • 24
  • 112
  • 161
1 2
3
11 12