Windows has it in CryptEncrypt Function:
Example C Program: Encrypting a File in
http://msdn.microsoft.com/en-us/library/aa382358(VS.85).aspx