home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2001 June
/
VPR0106A.BIN
/
OLS
/
ZIP3J037
/
zip3j037.lzh
/
zip32j
/
SRC
/
MINIZIP
/
MINIZIP.C
next >
Wrap
C/C++ Source or Header
|
2000-12-16
|
743b
|
24 lines
#include <windows.h>
#include <stdio.h>
typedef BOOL (WINAPI * ZIP_QUERYENCRYPTION)(VOID); // ZipQueryEncryption
void main()
{
char t[64] = "ZIP32J.DLL 暗号化が可能か調べるのはどうやるのさ?";
char m[64] = "エラー";
HINSTANCE hDll = LoadLibrary("zip32j.dll");
if (hDll)
{
ZIP_QUERYENCRYPTION fpZipQueryEncryption = (ZIP_QUERYENCRYPTION) GetProcAddress(hDll, "ZipQueryEncryption");
if (fpZipQueryEncryption)
{
sprintf(m, "ZIP形式の圧縮時にパスワードを付加でき%s。", ((*fpZipQueryEncryption)()) ? "ます" : "ません");
} else strcpy(m, "処理に必要な、APIのエントリーアドレスが得られません。");
FreeLibrary(hDll);
}
else strcpy(m, "zip32j.dllがありません");
MessageBox(NULL, m, t, MB_OK);
}