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

SetupApi : enable virtual network adapter using c++ setupApi

On windows, I am unable to find how to enable hotspot adapter i.e. virtual adapter through coding if it was disabled manually from 'Network Connections'. I want to implement as we do from device manager and enable it by right click on network…
1
vote
1 answer

A WPF/Prism window calling CommonOpenFileDialog (select directory) loses focus after selection

I have a WPF (Prism) application that needs "select directory" functionality. The main window's menu opens a child "Settings" window through notorious Prism InteractionRequest. That "Settings" window has a button to open a "Select Directory"…
mechanic
  • 761
  • 6
  • 11
1
vote
1 answer

Application crashes when getting metadata containing unicode character via Windows API Code Pack

I have an ASP.NET MVC application that needs to extract certain metadata from image files. I'm currently using the Windows API Code Pack to do this as follows: var imageShellObject = ShellObject.FromParsingName(filePath); var title =…
Bas
  • 1,946
  • 21
  • 38
1
vote
1 answer

Using the Windows.Media.Speechrecognition namespace in a Qt C++ application

I'm trying to develop a speech-to-text-input with the Windows.Media.SpeechRecognition namespace as described here: https://msdn.microsoft.com/en-us/library/windows.media.speechrecognition.aspx Now, I'm working in Qt and apparently, there's no such…
1
vote
0 answers

How to draw a rectangle on picturebox when capturing webcam view?

I have a question about drawing a rectangle on VB picturebox when capturing webcam view,when I run this code,the picturebox can shows what webcam capture,but it doesn't show any red rectangle on picturebox, How to solve this problem?? My code is…
Arthur
  • 11
  • 2
1
vote
1 answer

TaskDialog as modal Dialog

I am using TaskDialog and its really nice and i like it instead of normal messagebox. However i noticed that Show() of the TaskDialog allow user to go back to form and do something... I mean its not blocking Form till user close TaskDialog clicking…
Arie
  • 3,041
  • 7
  • 32
  • 63
1
vote
0 answers

Set textbox text with SendMessage()

I am trying to set the text value of an 'edit' control text box with the SendMessage() function. I am able to set the text about 75% of the time but sometimes the function fails. Why would it work sometimes and fail others? I am always getting the…
Matt26
  • 61
  • 4
1
vote
0 answers

WPF WindowsAPICodePack ExplorerBrowser stops tabbing

I've searched in as many ways as I can think to search and I haven't seen anyone mention this issue. Maybe I'm doing it wrong? If I place an ExplorerBrowser control from the Windows API code pack in a WPF window and call Navigate() then tabbing…
Rob Knight
  • 11
  • 4
1
vote
0 answers

How to access Windows 8 Search api from Java?

My java application should be able to list all the software from windows operating system and list result on its own java panel. For example if I type skype or any software name in my java application then it should search from windows os and list…
Dhiren Hamal
  • 874
  • 1
  • 12
  • 31
1
vote
0 answers

Using Shellfile to get BitmapSource changes windows size

I have this line of code screwing everything up. private void button1_Click(object sender, EventArgs e) { BitmapSource bitmapSource = ShellFile.FromFilePath(@"myfilepath").Thumbnail.ExtraLargeBitmapSource; } So after…
Zuoanqh
  • 942
  • 4
  • 10
  • 26
1
vote
0 answers

How can I get a dialog's initial directory without opening the dialog in C#?

Through ways I don't understand, whenever I open my CommonOpenFileDialog it opens to the last directory I was in. Awesome! I'd like to access this directory's path string before I open the dialog to show the current directory on screen. Is there a…
NSouth
  • 5,067
  • 7
  • 48
  • 83
1
vote
1 answer

Textured quad rendering in pixel stripes

I have the following .fx file: Texture2D texture2d; SamplerState linearSampler { Filter = MIN_MAG_MIP_LINEAR; AddressU = Clamp; AddressV = Clamp; }; struct VS_IN { float4 pos : POSITION; float3 uvq : TEXCOORD0; }; struct PS_IN { …
Gábor
  • 9,466
  • 3
  • 65
  • 79
1
vote
1 answer

Windows API CodePack. Get all selected items in the CommonOpenFileDialog:IFileOpenDialog

I work with the CommonOpenFileDialog class from the Windows® API Code Pack for Microsoft® .NET Framework that implements the IFileOpenDialog interface. More info about Windows API CodePack…
Murat Korkmaz
  • 1,329
  • 2
  • 19
  • 37
1
vote
2 answers

Reading the EFI System Table in Windows

Is it possible to access the EFI System Table from the OS? I would like to know where the Runtime Services are mapped. The reason for this is that the Windows API only exposes the variable services to user mode (Get/SetFirmwareEnvironmentVariable),…
Kubus
  • 23
  • 6
1
vote
1 answer

Retrieveing video/audio duration using WindowsAPICodecPack and Shell

I have the following code to retrieve the duration of a video uploaded: HttpPostedFileBase postedFileCopy = postedFile; postedFileCopy.InputStream.Position = 0; Stream stream = postedFile.InputStream; LocalResource tempDirectory =…
Jay
  • 3,012
  • 14
  • 48
  • 99