473,480 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to use a Win32 API inteface in C#?

nox
hi,

for my last question I didn't get any answer, so I'll try to define
the question in another way...

the shell32.dll exposes an interface called ITaskbarList which has a
few functions to manipulate taskbar buttons

I know how to use the a "normal" API function with DllImport, but I
can't figure out how to implement this interface...

can you help me please?
Jun 27 '08 #1
3 2212
Hi,

Have a look at http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx

It says: You do not implement ITaskbarList; it is implemented by the
Shell

Here you can find more on using the taskbar

http://msdn.microsoft.com/en-us/libr...22(VS.85).aspx

Hope this helps,
Joachim
Jun 27 '08 #2
nox
actually I know that I should not implement it, I've the first page in
the documentation (thx for the second link, this I haven't seen
yet)...

I just don't know how to use this interface in my application :(
Jun 27 '08 #3
nox wrote:
for my last question I didn't get any answer, so I'll try to define
the question in another way...

the shell32.dll exposes an interface called ITaskbarList which has a
few functions to manipulate taskbar buttons

I know how to use the a "normal" API function with DllImport, but I
can't figure out how to implement this interface...
ITaskbarList is not Win32 API - it is COM.

It seems to be a bit tricky to use from .NET though.

See:

http://www.codeproject.com/KB/winsdk...g_Windows.aspx
http://forums.microsoft.com/MSDN/Sho...52502&SiteID=1

for some hints.

Arne
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2202
by: Bryan Parkoff | last post by:
Please provide me the information when it is not in the correct newsgroups. I have been using C and C++ language for a long time when it is time for me to learn Win32 API functions that they can...
8
4748
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
3
9500
by: gemel | last post by:
Interface definitions do no not contain implementation, only signtures. That is there real purpose. Here thow we have an Inteface which does not have any implementation code but it has to be...
8
1195
by: Marius Horak | last post by:
I've never used Interface and never will. But now I have to make major modifications to a large system where almost all classes are based on some kind of Interface. Hundreds of classes. When I...
1
1450
by: Matthias Langbein | last post by:
Hi all, how do I solve this problem: Interface A {...} Class B : System.Windows.Forms.UserControl, A {...} ClassC : System.Windows.Forms.UserControl, A
0
2420
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
3
4072
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
9
1644
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I have noticed a lot of COM samples that the function AddRef and Release function of COM inteface is not synchronized to make it thread safe when dealing with adding/decreasing...
3
1567
by: devgupta01 | last post by:
How to see methods of class/inteface of library if i m using console. Please give an example. thnx
0
7051
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7054
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7097
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6750
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4493
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3003
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.