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

WindowsAPICodePack property null when deployed

When debugging locally I am able to read the Title from an .mp4 video. However, after I have deployed this application to IIS, the Title property is null. Any ideas why this is happening? foreach (var f in new…
MightyAtom
  • 331
  • 4
  • 24
0
votes
2 answers

Is .NET 4.5 mandatory for Windows API Code Pack

Is .NET 4.5 mandatory for using Windows API Code Pack (Microsoft.WindowsAPICodePack and Microsoft.WindowsAPICodePack.Sensors.dll) Will it work for .NET 4.0? The latest version of Windows API Code Pack is 1.1 but there doesn't seems to be a dedicated…
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
0 answers

DirectX texture saves as empty bitmap

I have a DirectX rendering that works perfectly when I render to the screen: var DxDevice = D3D.D3DDevice.CreateDeviceAndSwapChain(host.Handle); ... var DxFinalRenderTexture = DxDevice.SwapChain.GetBuffer(0); var DxFinalRenderTarget =…
Gábor
  • 9,466
  • 3
  • 65
  • 79
0
votes
1 answer

Reading effect file always returns no technique

I have a very simple test effect file that I try to load with the following code: using D3D = Microsoft.WindowsAPICodePack.DirectX.Direct3D10; ... var DxDevice = CreateDevice(D3D.DriverType.Hardware); var stream =…
Gábor
  • 9,466
  • 3
  • 65
  • 79
0
votes
1 answer

Accessing windows shell functions from webservice

I am building a webservice to generate thumbnails for PDF files using the Windows API Code Pack, using the ShellObject.FromParsingName(filepath) and then accessing the Thumbnails property. This works fine as long as it is hosted in a console…
Tudor Olariu
  • 1,318
  • 1
  • 11
  • 18
0
votes
4 answers

How to Invoke a Verb on a ShellFile/ShellFolder/ShellObject objects using Windows API Code Pack?

I'm looking for a C# or Vb.NET solution to know how I can invoke the undelete verb on a ShellObject (ShellFile or ShellFolder) stored in the recycle bin. The recycle bin part I've it written, what I only need is to know how to invoke a verb on a…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
2 answers

What RegistryKey does on Windows Form Application

I have got work of the maintenance of a windows form application which contains code of windows RegistryKey on Form_Load method of the form..But i have not idea o what work is being performed by RegistryKey code snippet .Here is my code which is…
vikas
  • 471
  • 3
  • 15
  • 31
0
votes
0 answers

Reading MS Office XML document properties using WindowsAPI Code Pack fails on server

I have written a small C# application that displays the "Date Last Save"-property of an Office Document, using the WindowsAPI Code Pack: ShellFile file = ShellFile.FromFilePath(absolutePath); DateTime result =…
Zurb
  • 738
  • 1
  • 5
  • 18
0
votes
1 answer

How do I display a list of files in ExplorerBrowser?

I wrote an algorithm that finds files that match a particular criteria. After I obtain these files (FileInfo objects), how can I display them in the ExplorerBrowser control? I am very new to the Windows API Code Pack.
Tyler Crompton
  • 12,284
  • 14
  • 65
  • 94
0
votes
2 answers

How To Show Program's Tabs In The Taskbar Like IE

Windows 7 and 8 can show multiple tabs in the task bar preview. some programs like IE, FireFox and ... can show all internal tabs in the task bar. FireFox Multiple Tabs In the task bar preview sample. I want to create a WPF program that can use this…
Ali Jalali
  • 145
  • 1
  • 3
  • 10
0
votes
1 answer

Task bar progress bar does not show after window was hidden

I am trying to add a progress bar to the taskbar icon in Windows 7 with C# (Net 3.5). I am using the Windows API Code Pack to achieve this: if (WindowStateInternal == FormWindowState.Normal) // the taskbar can only be set if the window is…
Gunnar Bernstein
  • 6,074
  • 2
  • 45
  • 67
0
votes
1 answer

Removing Taskbar Jumplist?

So I was messing about with JumpLists from the Windows API Code Pack for Microsoft .NET, and there is a slight problem that seems to have occurred. After removing or editing the code, references and deleting the libraries themselves, the jumplist…
LMS
  • 4,117
  • 5
  • 27
  • 37
-1
votes
0 answers

Use Windows API and GDIPLUS to connect printers to print pictures on the paper. The content of the picture printed on some printers is missing

The following is the code I used to control printing pictures: using namespace Gdiplus; void printImage(std::wstring printerDriverName, std::wstring printerName, std::wstring printerPortName, PDEVMODEW pDevMode) { GdiplusStartupInput…
douxiaobao
  • 11
  • 2
-1
votes
1 answer

c# Taskbar Progress Bar, getting value from Windows Media Player currentMedia.currentPosition

What I tried to was getting the value in the following way, which didn't work: private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) { TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal); …
Marian
  • 3,789
  • 2
  • 26
  • 36
-1
votes
1 answer

Using Windows API Code Pack can I get Windows Explorer AddresBar path?

I would like to know whether the Class Library of the Microsoft's Windows APi Code Pack library provides a direct way to iterate the Windows Explorer instances to retrieve the current path of the address bar of each Explorer instance, in simple…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1 2 3
11
12