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

How to implement the outline effect on text with WindowsAPICodePack?

I'm still struggling on this issue after our other requirements are finished. I found we can use GeometrySink alike classes to implement the outline effect; but I'm not familiar with c++; see this…
Howard
  • 3,638
  • 4
  • 32
  • 39
0
votes
0 answers

How to remove/hide the entire taskbar preview in Windows 10/11

I have a question. Is it possible to use WindowsAPICodePack or some other way to remove/hide taskbar preview. Or is it impossible. I tried this: // Disables the taskbar thumbnail preview TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip((new…
user6473719
0
votes
1 answer

how to create cascade window in python3 win32gui

i want to cascade window in pywin32 module. i use: win32gui.CascadeWindow() but rased an error: AttributeError: module 'win32gui' has no attribute 'CascadeWindow'. how can i fix this? AttributeError: module 'win32gui' has no attribute…
0
votes
0 answers

Getting 'An item with the same key has already been added' when trying to get extended file properties

I've been trying to use WindowsAPICodePack to get extended file properties but I keep running into the same problem. I'm getting 'An item with the same key has already been added' and I can't understand how and why. public string Name = ""; public…
0
votes
1 answer

Halo effect with WindowsAPICodePack library

Does any one have any experience on how to implement the halo(outline) effect for text with Direct 2D using the WindowdsAPICodePack? I searched for its API with google, but could not find any result for this; so I doubt if it supports it. I…
Howard
  • 3,638
  • 4
  • 32
  • 39
0
votes
1 answer

I can see only one USB string when I try to print all the USB devices (WinAPI)

I try to print a message whenever a new USB device is connected to my PC, but I don't want to create an application which just catches and treats the events triggered by the windows' kernel. So I used some specific functions in order to print the…
0
votes
1 answer

Error writing to Windows 10 registry with WindowsAPI/C (strange situation)

I am trying to write to my Windows 10 registry, to include a program in Startup. At the moment I have written the following code, which is not wroking: #include #include #include #include #include…
0
votes
1 answer

How can I determine if a RECT area inside of my window is covered by other windows (occluded) using windows APIs?

How can I determine if a RECT area inside of my window is covered by other windows (occluded). I mean, if the user can see this RECT area or not? I could not find the right answer to this question. In fact, I should define a function with a…
0
votes
0 answers

C# How to place a window between desktop backgrounds and desktop icons

I'm trying to make a program like a desktop calendar,finding problems when trying to place the window into desktop. I called windows API, it did put the window into desktop, and win+D won't hide the window, but still, the window remained above…
0
votes
1 answer

Error showing TaskDialog with both ProgressBar and Custom Button

I am using the TaskDialog within WindowsAPICodePack. When I try to create a TaskDialog without just a TaskDialogProgressBar and TaskDialogButton it throws the follow exception. System.ComponentModel.Win32Exception was unhandled Message=Invalid…
0
votes
0 answers

What is the best way to connect a WebCam in graphedit?

When I Connect them in this manner it open the camera but with black no Images or video display: How can I connect the WebCam successfully?
0
votes
1 answer

How to read a char from the console(c++)? (not by inputting/getche() or getch())

To be very honest, I know nothing about pointers, OOP, or any of that scary stuff in c++ (I will learn them very soon). Suppose: (the console) HELLO WORLD!! ENTER YOUR AGE: So that's what is printed on the console. There's a function gotoxy(int x,…
0
votes
1 answer

CreateProcess windows API stores excel in Documents folder

I am working on a legacy application which calls CreateProcess method method1() { BOOL bResult = ::CreateProcess( NULL, // LPCTSTR wctAppPath, // LPTSTR lpszCommandLine NULL, …
usmanharoon
  • 173
  • 2
  • 13
0
votes
2 answers

What is a Null value for a Long variable type in a Windows API call?

Stupid question. I think this should be 0, but I can't seem to find it. So, if I want to pass a Null value to a Windows API call (this happens to be in VB6), what value would I use? I think 0, but I guess it could be VBNull.
Clay Nichols
  • 11,848
  • 30
  • 109
  • 170
0
votes
2 answers

Why won't the FindFirstFile function accept my pointer to a data struct?

Dear Stack Overflow community. I am a first time poster here. I've found this forum very helpful in the past and hope to contribute in many ways in the future. Right now I have a problem that I can't make out head or tail of. I am trying to acquire…