Форум: "Основная";
Текущий архив: 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.012 c