Главная страница
    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.012 c
7-47855
dron-hack
2002-04-11 00:32
2002.07.15
Программирование Пультов ДУ устройств


3-47076
MsGuns
2002-06-19 23:08
2002.07.15
Как заюзать QBE вместо SQL в T...Query ?


1-47543
Dmk
2002-06-26 23:22
2002.07.15
ScrollBar


3-47177
Прохожий
2002-06-19 11:16
2002.07.15
stack overflow при закрытии программы! ???


3-47199
veronika
2002-06-19 12:58
2002.07.15
Округление значений полей.





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский