473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

p/invoke Xenroll.DLL (Xenroll.h)

hello ,
i am using the Xenroll.DLL in C# as COM bacause of that i do not have
access to all methods i need.
I am searching for a posibility to use teh Xenroll as an API with
[DLLImport !!!
is there any Programm that can convert("invoke") the Xenroll.h ?

thak you

Saleh Matani
Nov 17 '05 #1
3 4692
Saleh,

What do you mean use it as COM? If you are importing the components
through COM interop, then you don't have to use the P/Invoke layer (most
likely).

However if you have the header file, then you are not using COM interop.

I think what you are asking is if there are automated tools which will
convert header files to DllImport statements. Unfortunately, there is not
(not that I know of, the syntax of C++ is complex enough to say the least,
which makes it very difficult).

If you post the functions you want converted, then I am sure people in
the group will help.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saleh Matani" <sa***@matani.net> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
hello ,
i am using the Xenroll.DLL in C# as COM bacause of that i do not have
access to all methods i need.
I am searching for a posibility to use teh Xenroll as an API with
[DLLImport !!!
is there any Programm that can convert("invoke") the Xenroll.h ?

thak you

Saleh Matani

Nov 17 '05 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Saleh,

What do you mean use it as COM? If you are importing the components
through COM interop, then you don't have to use the P/Invoke layer (most
likely).

However if you have the header file, then you are not using COM interop.

I think what you are asking is if there are automated tools which will
convert header files to DllImport statements. Unfortunately, there is not
(not that I know of, the syntax of C++ is complex enough to say the least,
which makes it very difficult).

If you post the functions you want converted, then I am sure people in
the group will help.

Hope this helps.

The Xenroll.DLL has an Interface (com) that means it can be regestred
and used.
With Xenroll.DLL can be a Certificate Request created and a *Certificate
Renewal Request (the Renewal Request is not implemented as Interface)
and that is the reason to prevoke the DLL in C#

the Xenroll is a part of the Microsoft Crypto API and here is the link
http://msdn.microsoft.com/library/de...enrollment.asp

for the example that i need it in C# its in this section:
http://msdn.microsoft.com/library/en...tenroll_topic8
Many thanks
Saleh Matani
Nov 17 '05 #3

"Saleh Matani" <sa***@matani.net> wrote in message
news:e3**************@tk2msftngp13.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
Saleh,

What do you mean use it as COM? If you are importing the components
through COM interop, then you don't have to use the P/Invoke layer (most
likely).

However if you have the header file, then you are not using COM
interop.

I think what you are asking is if there are automated tools which
will convert header files to DllImport statements. Unfortunately, there
is not (not that I know of, the syntax of C++ is complex enough to say
the least, which makes it very difficult).

If you post the functions you want converted, then I am sure people
in the group will help.

Hope this helps.

The Xenroll.DLL has an Interface (com) that means it can be regestred and
used.
With Xenroll.DLL can be a Certificate Request created and a *Certificate
Renewal Request (the Renewal Request is not implemented as Interface) and
that is the reason to prevoke the DLL in C#

the Xenroll is a part of the Microsoft Crypto API and here is the link
http://msdn.microsoft.com/library/de...enrollment.asp

for the example that i need it in C# its in this section:
http://msdn.microsoft.com/library/en...tenroll_topic8
Many thanks
Saleh Matani


Why not use CAPICOM
http://msdn.microsoft.com/library/de...enrollment.asp

instead of a low level API designed for C++ clients?

Willy.
Nov 17 '05 #4

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

Similar topics

1
by: John Altland | last post by:
Here is my basic problem. I have a form that executes a cpu instensive algorithm occupying the first thread. When the algorithm is executed another form pops up telling the user the progress that...
1
by: boxim | last post by:
hi all, I'm having a few problems whereby my application is hanging when using the Invoke method of a form's control. Basically, when a user clicks a button on the form, it calls a remote...
2
by: Tom | last post by:
Hi Everybod I want to update some controls in a form from another threads. I did it by passing the form to that thread and calling a delegate with Form1.Invoke, I want to have just one delegeate...
5
by: RickDee | last post by:
Please help, anybody. I am trying to write a program so that it can launch an exe file ( which is also genereated in C# ) and then simulate the button clicking and invoke the methods inside the...
23
by: Thomas Due | last post by:
Hi, I have a class which monitors a TCP socket. This will on occasion raise an event which can be handled by a GUI. Now, I am aware of the if(InvokeRequire) { EventHandler d = new...
6
by: Dom | last post by:
I'm teaching myself about delegates and the Invoke method, and I have a few newbie questions for the gurus out there: Here are some CSharp statements: 1. public delegate void MyDelegate (int k,...
0
by: fireline1082 | last post by:
Hi every body I am doing a project in which I have a Windows Certificate Authority server and RADIUS server (IAS RADIUS server under windows ) . In this project the clients will login to the...
2
by: =?Utf-8?B?a2VubmV0aG1Abm9zcGFtLm5vc3BhbQ==?= | last post by:
vs2005, c# Trying to understand why one way works but the other doesnt. I have not tried to create a simpler mdi/child/showdialog app for posting purposes (I think even this would not be so small...
3
balabaster
by: balabaster | last post by:
I have a class that I want to make thread-safe and am investigating the ISyncronizeInvoke interface and wondering just what it will take to implement this interface. So far the basic concept of my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.