p/invoke Xenroll.DLL (Xenroll.h)

S

Saleh Matani

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
S

Saleh Matani

Nicholas said:
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/default.asp?url=/library/en-us/dncapi/html/certenrollment.asp

for the example that i need it in C# its in this section:
http://msdn.microsoft.com/library/en-us/dncapi/html/certenrollment.asp?frame=true#certenroll_topic8


Many thanks
Saleh Matani
 
W

Willy Denoyette [MVP]

Saleh Matani said:
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/default.asp?url=/library/en-us/dncapi/html/certenrollment.asp

for the example that i need it in C# its in this section:
http://msdn.microsoft.com/library/en-us/dncapi/html/certenrollment.asp?frame=true#certenroll_topic8


Many thanks
Saleh Matani

Why not use CAPICOM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncapi/html/certenrollment.asp

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

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top