Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

bahareh655

@bahareh655
About
Posts
8
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem on a sample code in "Windows SDK" (COM interface)?
    B bahareh655

    Hi all I've built a sample code named "enrollCustomCMC" in Windows SDK at "Microsoft SDKs\Windows\v6.1\Samples\Security\X509 Certificate Enrollment\VC" directory, but when the ".exe" file is built and I use it with the "Command Prompt", I see error in first "CoCreateInstance" function as "REGDB_E_CLASSNOTREG" that means: "Class not registered"! I couldn't find the reason even with debugging! The code is written using COM interface, here's the code: #include #include #include #include #include #include "enrollCommon.h" void Usage() { wprintf(L"Usage:\n"); wprintf(L"enrollCustomCMC \n"); wprintf(L"Example: enrollCustomCMC Name Value "); wprintf(L"www.adatum.com 1.3.6.1.5.5.7.3.1\n"); } HRESULT __cdecl wmain(__in int argc, __in_ecount(argc) wchar_t *argv[]) { HRESULT hr = S_OK; bool fCoInit = false; ICertRequest2* pCertRequest2 = NULL; ICertConfig* pCertConfig = NULL; IX509Enrollment* pEnroll = NULL; IX509CertificateRequest* pRequest = NULL; IX509CertificateRequestPkcs10* pPkcs10 = NULL; IX509CertificateRequestCmc* pCmc = NULL; IX509Extensions* pExtensions = NULL; IX509Extension* pExtension1 = NULL; IX509Extension* pExtension2 = NULL; IX509ExtensionEnhancedKeyUsage* pExtensionEKU = NULL; IX509ExtensionAlternativeNames* pExtensionSAN = NULL; IObjectId *pEKUObjectId = NULL; IObjectId *pSANObjectId = NULL; IObjectIds *pEKUObjectIds = NULL; IObjectIds *pSANObjectIds = NULL; IAlternativeName * anDnsName = NULL; IAlternativeNames * pAlternativeNames = NULL; IX509NameValuePair *pPair = NULL; IX509NameValuePairs *pPairs = NULL; PCWSTR pwszName; PCWSTR pwszValue; PCWSTR pwszDnsName; PCWSTR pwszEKU; BSTR strCAConfig = NULL; BSTR strDnsName = NULL; BSTR strName = NULL; BSTR strValue = NULL; BSTR strEKU = NULL; BSTR strRequest = NULL; BSTR strCert = NULL; BSTR strDisposition = NULL; LONG pDisposition = 0; // Process command line arguments if (argc != 5) { Usage(); hr = E_INVALIDARG; _JumpError(hr, error, "invalid arg"); } else { pwszName = argv[1]; pwszValue = argv[2]; pwszDnsName = argv[3]; pwszEKU = argv[4]; } // CoInitializeEx hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); _JumpIfError(hr, error, "CoInitializeEx");

    C / C++ / MFC help com security cryptography tutorial

  • Is there any posssibility to see the function definitions of dll file?
    B bahareh655

    Hi all As you know, we can export a dll's functions using "dumpbin.exe" tool. Now, I want to know if Is there any posssibility to see the function definitions of dll file? That is, a complete definition of the functions with their input and output arguments in the dll? THX.

    C / C++ / MFC question

  • how to generate a static library ".lib" from a DLL?
    B bahareh655

    Hello I have downloaded a dll driver for a TPM hardware(Trusted Platform Module) and need to have it's library; How can I generate a static library file for this dll? I don't have any header file for this dll! I've uploaded this dll on a host that is here: http://www.ziddu.com/download/6401151/TPMDrivers.rar.html In which: A folder named "Main DLL" contains the main driver; A folder named "Other DLL" contains another TPM driver; A folder named "TPM .sys file" contains a .sys driver for TPM; Could you produce a lib file for each one? Thanks in Advance.

    C / C++ / MFC question html com hardware tutorial

  • how to use "LDRLoadDll" to load a dll in DDK?
    B bahareh655

    Hi and thanks! Unfortunately it doesn't work! I have already examined this normal way of specifying a module path, but kernel mode is so sensitive and doesn't accept this format. This comment suggests how to seperate different paths of dlls. I think it should be in a different way to load dlls in "kernel mode(DDK)" specifically!

    C / C++ / MFC help tutorial question csharp c++

  • how to use "LDRLoadDll" to load a dll in DDK?
    B bahareh655

    Hello and Thanks of your reply! I saw "http://www.matcode.com/undocwin.h.txt" address, but it only declares the "LdrLoadDll" as below and doesn't use of it with providing a valid path for a dll! DWORD __stdcall LdrLoadDll( PWSTR *szcwPath, // Optional PDWORD pdwLdrErr, // Optional PUNICODE_STRING pUniModuleName, PHINSTANCE pResultInstance );

    C / C++ / MFC help tutorial question csharp c++

  • how to use "LDRLoadDll" to load a dll in DDK?
    B bahareh655

    Hi all I do appologize in advance for my question, because I couldn't find a related forum with my question!! I'm writting a program in DDK for secure booting of windows XP. I use NT-Native functions in kernel mode, but unfortunately there is not any reference or example of using these functions! I want to load some kernel mode dlls there(such as "hal.dll" in system32 folder) and use of "LDRLoadDLL" function whereas there is no good example of it's usage! I don't know how should I pass those dlls path address in the first input argument of this function? when I set NULL in it, I get error to load some kernel mode dll (Error such as "File not found" where it succeeds in loading only "ntdll.dll"!) and also I don't know how should be the dll's "path" format in first argument of function? I've seen ntdll.dll's source code for this function, but the correct format of path is some complex for me!! Here is the ntdll's source including "LDRLoadDll" function: http://source.winehq.org/source/dlls/ntdll/loader.c#L2007 I extremely hope you could help me!!!! Thanks in Advance.

    C / C++ / MFC help tutorial question csharp c++

  • Need guidance and proposal of design and implementation for an e-voting (electronic voting) system
    B bahareh655

    Hi all! I want to design and implement an e-voting(electronic voting) system with two computers(one as server and the other as client) under windows; What technology or programming model do you suggest me for this purpose? I'm not familiar with network programming models in windows and need help of experience people to introduce me a suitable and applicable programming model and language for this case! One guy have suggested me to create an ActiveX on client and communicate with server through COM, what do you think about it? Please help me!!! Best Regards.

    .NET (Core and Framework) com sysadmin design help question

  • Need guidance and proposal of design and implementation for an e-voting (electronic voting) system
    B bahareh655

    Hi all! I want to design and implement an e-voting(electronic voting) system with two computers(one as server and the other as client) under windows; What technology or programming model do you suggest me for this purpose? I'm not familiar with network programming models in windows and need help of experience people! One guy have suggested me to create an ActiveX on client and communicate with server through COM, what do you think about it? Please help me!!! Best Regards.

    C / C++ / MFC com sysadmin design help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups