Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.07.15;
Скачать: [xml.tar.bz2];

Вниз

Пытаюсь зашифровать файл функцией EncryptFile.   Найти похожие ветки 

 
Alexander   (2002-07-02 13:52) [0]

она описана в модуле Windows как
function EncryptFile; external kernel32 name "EncryptFile";
Delphi ругается, что точка входа в процедуру не найдена.


 
Игорь Шевченко   (2002-07-02 14:09) [1]

Вот же странно - ее там нету :-)


 
Гарик   (2002-07-02 15:25) [2]

Если OS W2k то она должна быть:
Requirements
Windows NT/2000 or later: Requires Windows 2000 or later.
Windows 95/98/Me: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000


 
Игорь Шевченко   (2002-07-02 15:31) [3]

Гарик (02.07.02 15:25)

В любом случае, либо
function EncryptFile; external kernel32 name "EncryptFileA";
либо
function EncryptFile; external kernel32 name "EncryptFileW";



 
Alexander   (2002-07-02 21:02) [4]

Так я под Win2k и сижу. Не проходит ни один из предложенных вариантов!


 
Игорь Шевченко   (2002-07-03 10:41) [5]

Platform SDK: Storage

EncryptFile
The EncryptFile function encrypts a file or directory. All data streams in a file are encrypted. All new files created in an encrypted directory are encrypted.

BOOL EncryptFile(
LPCTSTR lpFileName // file name
);
Parameters
lpFileName
[in] Pointer to a null-terminated string that specifies the name of the file or directory to encrypt.
The caller must have the FILE_READ_DATA, FILE_WRITE_DATA, FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, and SYNCHRONIZE access rights. For more information, see File Security and Access Rights.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks
The EncryptFile function requires exclusive access to the file being encrypted, and will fail if another process is using the file.

If the file is already encrypted, EncryptFile simply returns a nonzero value, which indicates success. If the file is compressed, EncryptFile will decompress the file before encrypting it.

To decrypt an encrypted file, use the DecryptFile function.

Requirements
Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also
File Encryption, File Management Functions, DecryptFile


Platform SDK Release: May 2002 What did you think of this topic?
Let us know. Order a Platform SDK CD Online
(U.S/Canada) (International)


Что именно не проходит ?



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.07.15;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
1-47538
zam
2002-06-25 19:18
2002.07.15
Как изменить тип выделения в ListView ???


14-47677
cyborg
2002-06-17 11:37
2002.07.15
ПАМЯТЬ НЕ ОСВОБОЖДАЕТСЯ!!!


14-47738
serg
2002-06-11 10:13
2002.07.15
работа


1-47258
easy
2002-06-27 17:08
2002.07.15
Битмапы


1-47268
Samvel
2002-06-29 20:20
2002.07.15
string





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский