[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 935
  • Last Modified:

what is the problem for the CryptUnprotectData in wincrypt.h?

i worked on the CPP code he error appear to  me
error C2065: 'CryptUnprotectData' : undeclared identifier


i include

#pragma comment(lib, "crypt32.lib")

 #include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>

#include <windows.h>
#include <Wincrypt.h>


and the linker Crypt32.lib


what is the problem
0
sa3q
Asked:
sa3q
  • 3
  • 2
1 Solution
 
deepu chandranCommented:
0
 
sa3qAuthor Commented:
i sow this link befor  and  try  it  but it  not run  

because i use visual  c++ 6
0
 
deepu chandranCommented:
What IDE you are using other than VS 6?
0
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
sa3qAuthor Commented:
i didn't use  other than  VS 6
0
 
jkrCommented:
'CryptUnprotectData()' (http://msdn.microsoft.com/en-us/library/aa380882(VS.85).aspx) requires Win2k as the minimum OS - VC++6 was introduced two years earlier. If you want to use this API, you need to install an updated Platorm SDK, which you can get from http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc
0
 
sa3qAuthor Commented:
thanks
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now