FileDocCategorySizeDatePackage
OtherFnc.javaAPI DocExample40374Fri Apr 24 01:00:00 BST 1998com.ms.win32

Advapi32

public class Advapi32 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static native booleanBackupEventLog(int hEventLog, java.lang.String lpBackupFileName)

dll.import("ADVAPI32",
auto)

public static native booleanClearEventLog(int hEventLog, java.lang.String lpBackupFileName)

dll.import("ADVAPI32",
auto)

public static native booleanCloseEventLog(int hEventLog)

dll.import("ADVAPI32",auto)

public static native booleanCreateProcessAsUser(int hToken, java.lang.String lpApplicationName, java.lang.String lpCommandLine, SECURITY_ATTRIBUTES lpProcessAttributes, SECURITY_ATTRIBUTES lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int lpEnvironment, java.lang.String lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation)

dll.import("ADVAPI32",
auto)

public static native booleanCryptAcquireContext(int[] phProv, java.lang.String pszContainer, java.lang.String pszProvider, int dwProvType, int dwFlags)

dll.import("ADVAPI32",
auto)

public static native booleanCryptCreateHash(int hProv, int Algid, int hKey, int dwFlags, int[] phHash)

dll.import("ADVAPI32",auto)

public static native booleanCryptDecrypt(int hKey, int hHash, boolean Final, int dwFlags, byte[] pbData, int[] pdwDataLen)

dll.import("ADVAPI32",auto)

public static native booleanCryptDeriveKey(int hProv, int Algid, int hBaseData, int dwFlags, int[] phKey)

dll.import("ADVAPI32",auto)

public static native booleanCryptDestroyHash(int hHash)

dll.import("ADVAPI32",auto)

public static native booleanCryptDestroyKey(int hKey)

dll.import("ADVAPI32",auto)

public static native booleanCryptEncrypt(int hKey, int hHash, boolean Final, int dwFlags, byte[] pbData, int[] pdwDataLen, int dwBufLen)

dll.import("ADVAPI32",auto)

public static native booleanCryptExportKey(int hKey, int hExpKey, int dwBlobType, int dwFlags, byte[] pbData, int[] pdwDataLen)

dll.import("ADVAPI32",auto)

public static native booleanCryptGenKey(int hProv, int Algid, int dwFlags, int[] phKey)

dll.import("ADVAPI32",auto)

public static native booleanCryptGenRandom(int hProv, int dwLen, byte[] pbBuffer)

dll.import("ADVAPI32",auto)

public static native booleanCryptGetHashParam(int hHash, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptGetKeyParam(int hKey, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptGetProvParam(int hProv, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptGetUserKey(int hProv, int dwKeySpec, int[] phUserKey)

dll.import("ADVAPI32",auto)

public static native booleanCryptHashData(int hHash, byte[] pbData, int dwDataLen, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptHashSessionKey(int hHash, int hKey, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptImportKey(int hProv, byte[] pbData, int dwDataLen, int hPubKey, int dwFlags, int[] phKey)

dll.import("ADVAPI32",auto)

public static native booleanCryptReleaseContext(int hProv, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptSetHashParam(int hHash, int dwParam, byte[] pbData, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptSetKeyParam(int hKey, int dwParam, byte[] pbData, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptSetProvParam(int hProv, int dwParam, byte[] pbData, int dwFlags)

dll.import("ADVAPI32",auto)

public static native booleanCryptSetProvider(java.lang.String pszProvName, int dwProvType)

dll.import("ADVAPI32",
auto)

public static native booleanCryptSignHash(int hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags, byte[] pbSignature, int[] pdwSigLen)

dll.import("ADVAPI32",
auto)

public static native booleanCryptVerifySignature(int hHash, byte[] pbSignature, int dwSigLen, int hPubKey, java.lang.String sDescription, int dwFlags)

dll.import("ADVAPI32",
auto)

public static native booleanDeregisterEventSource(int hEventLog)

dll.import("ADVAPI32",auto)

public static native booleanDuplicateTokenEx(int hExistingToken, int dwDesiredAccess, SECURITY_ATTRIBUTES lpTokenAttributes, int ImpersonationLevel, int TokenType, int[] phNewToken)

dll.import("ADVAPI32",auto)

public static native booleanGetCurrentHwProfile(HW_PROFILE_INFO lpHwProfileInfo)

dll.import("ADVAPI32",auto)

public static native booleanGetNumberOfEventLogRecords(int hEventLog, int[] NumberOfRecords)

dll.import("ADVAPI32",auto)

public static native booleanGetOldestEventLogRecord(int hEventLog, int[] OldestRecord)

dll.import("ADVAPI32",auto)

public static native booleanGetUserName(java.lang.StringBuffer lpBuffer, int[] nSize)

dll.import("ADVAPI32",
auto)

public static native booleanImpersonateLoggedOnUser(int hToken)

dll.import("ADVAPI32",auto)

public static native booleanIsTextUnicode(int lpBuffer, int cb, int[] lpi)

dll.import("ADVAPI32",auto)

public static native booleanLogonUser(java.lang.String lpszUsername, java.lang.String lpszDomain, java.lang.String lpszPassword, int dwLogonType, int dwLogonProvider, int[] phToken)

dll.import("ADVAPI32",
auto)

public static native booleanNotifyChangeEventLog(int hEventLog, int hEvent)

dll.import("ADVAPI32",auto)

public static native intOpenBackupEventLog(java.lang.String lpUNCServerName, java.lang.String lpFileName)

dll.import("ADVAPI32",
auto)

public static native intOpenEventLog(java.lang.String lpUNCServerName, java.lang.String lpSourceName)

dll.import("ADVAPI32",
auto)

public static native booleanReadEventLog(int hEventLog, int dwReadFlags, int dwRecordOffset, int lpBuffer, int nNumberOfBytesToRead, int[] pnBytesRead, int[] pnMinNumberOfBytesNeeded)

dll.import("ADVAPI32",auto)

public static native intRegisterEventSource(java.lang.String lpUNCServerName, java.lang.String lpSourceName)

dll.import("ADVAPI32",
auto)

public static native booleanReportEvent(int hEventLog, short wType, short wCategory, int dwEventID, int lpUserSid, short wNumStrings, int dwDataSize, int lpStrings, int lpRawData)

dll.import("ADVAPI32",auto)

public static native booleanSetThreadToken(int[] Thread, int Token)

dll.import("ADVAPI32",auto)