Originally Posted by
Rune Hunter
what do you mean by definition?
All I know is what it does and it is stored in the windows.h. (at least should be)
well, tha's my point... AFAIK, DecryptFile() isn't standard, but I don't know much about the windows.h file (if that file itself is standard)...
with non-standard code, you'll need to know what it does and how it does it so you can write your own definition when you get to a comiler that doesn't support it (which is probably any compiler other than what that code was already written on)
here's to pointnig you in the right direction:
Code:
#include<iostream>
void myFunction(int number); //prototype
int main()
{
myFunction(23); //call
}
void myFunction(int number) //next few lines is the definition
{
std::cout<<"The number is: "<<number;
}
a small bit of research shows that DecryptClass is a boolean function, and returns zero if it fails, but they seem to be using their own version of boolean, probably signed short int or something, because their decleration is as follows:
Code:
BOOL DecryptFile(
LPCTSTR lpFileName,
DWORD dwReserved
);
and BOOL is not a standard data type...
also, read the requrements for that:
Originally Posted by
MSDN
Requirements
Client: Requires Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2003 or Windows 2000 Server.
Unicode: Implemented as Unicode and ANSI versions.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.