com.jinvoke.win32
Class Advapi32

java.lang.Object
  extended by com.jinvoke.win32.Advapi32

public class Advapi32
extends java.lang.Object


Constructor Summary
Advapi32()
           
 
Method Summary
static boolean BackupEventLog(int hEventLog, java.lang.String lpBackupFileName)
           
static boolean ClearEventLog(int hEventLog, java.lang.String lpBackupFileName)
           
static boolean CloseEventLog(int hEventLog)
           
static boolean CloseServiceHandle(int hSCObject)
           
static boolean CreateProcessAsUser(int hToken, java.lang.String lpApplicationName, java.lang.String lpCommandLine, SecurityAttributes lpProcessAttributes, SecurityAttributes lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int lpEnvironment, java.lang.String lpCurrentDirectory, StartupInfo lpStartupInfo, ProcessInformation lpProcessInformation)
           
static boolean CryptAcquireContext(int[] phProv, java.lang.String pszContainer, java.lang.String pszProvider, int dwProvType, int dwFlags)
           
static boolean CryptCreateHash(int hProv, int Algid, int hKey, int dwFlags, int[] phHash)
           
static boolean CryptDecrypt(int hKey, int hHash, boolean Final, int dwFlags, byte[] pbData, int[] pdwDataLen)
           
static boolean CryptDeriveKey(int hProv, int Algid, int hBaseData, int dwFlags, int[] phKey)
           
static boolean CryptDestroyHash(int hHash)
           
static boolean CryptDestroyKey(int hKey)
           
static boolean CryptEncrypt(int hKey, int hHash, boolean Final, int dwFlags, byte[] pbData, int[] pdwDataLen, int dwBufLen)
           
static boolean CryptExportKey(int hKey, int hExpKey, int dwBlobType, int dwFlags, byte[] pbData, int[] pdwDataLen)
           
static boolean CryptGenKey(int hProv, int Algid, int dwFlags, int[] phKey)
           
static boolean CryptGenRandom(int hProv, int dwLen, byte[] pbBuffer)
           
static boolean CryptGetHashParam(int hHash, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)
           
static boolean CryptGetKeyParam(int hKey, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)
           
static boolean CryptGetProvParam(int hProv, int dwParam, byte[] pbData, int[] pdwDataLen, int dwFlags)
           
static boolean CryptGetUserKey(int hProv, int dwKeySpec, int[] phUserKey)
           
static boolean CryptHashData(int hHash, byte[] pbData, int dwDataLen, int dwFlags)
           
static boolean CryptHashSessionKey(int hHash, int hKey, int dwFlags)
           
static boolean CryptImportKey(int hProv, byte[] pbData, int dwDataLen, int hPubKey, int dwFlags, int[] phKey)
           
static boolean CryptReleaseContext(int hProv, int dwFlags)
           
static boolean CryptSetHashParam(int hHash, int dwParam, byte[] pbData, int dwFlags)
           
static boolean CryptSetKeyParam(int hKey, int dwParam, byte[] pbData, int dwFlags)
           
static boolean CryptSetProvider(java.lang.String pszProvName, int dwProvType)
           
static boolean CryptSetProvParam(int hProv, int dwParam, byte[] pbData, int dwFlags)
           
static boolean CryptSignHash(int hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags, byte[] pbSignature, int[] pdwSigLen)
           
static boolean CryptVerifySignature(int hHash, byte[] pbSignature, int dwSigLen, int hPubKey, java.lang.String sDescription, int dwFlags)
           
static boolean DeregisterEventSource(int hEventLog)
           
static boolean DuplicateTokenEx(int hExistingToken, int dwDesiredAccess, SecurityAttributes lpTokenAttributes, int ImpersonationLevel, int TokenType, int[] phNewToken)
           
static boolean EnumServicesStatus(int hSCManager, int dwServiceType, int ServiceState, int lpServices, int cbBuffSize, int[] pcbBytesNeeded, int[] lpServicesReturned, int[] lpResumeHandle)
           
static boolean GetCurrentHwProfile(HwProfileInfo lpHwProfileInfo)
           
static boolean GetEventLogInformation(int hEventLog, int dwInfoLevel, byte[] lpBuffer, int cbBufSize, int[] pcbBytesNeeded)
           
static boolean GetNumberOfEventLogRecords(int hEventLog, int[] NumberOfRecords)
           
static boolean GetOldestEventLogRecord(int hEventLog, int[] OldestRecord)
           
static boolean GetUserName(java.lang.StringBuffer lpBuffer, int[] nSize)
           
static boolean ImpersonateLoggedOnUser(int hToken)
           
static boolean IsTextUnicode(int lpBuffer, int cb, int[] lpi)
           
static boolean LogonUser(java.lang.String lpszUsername, java.lang.String lpszDomain, java.lang.String lpszPassword, int dwLogonType, int dwLogonProvider, int[] phToken)
           
static boolean LookupAccountName(java.lang.String lpSystemName, java.lang.String lpAccountName, int[] Sid, int[] cbSid, java.lang.StringBuffer ReferencedDomainName, int[] cchReferencedDomainName, int[] peUse)
           
static boolean LookupAccountSid(java.lang.String lpSystemName, int lpSid, java.lang.StringBuffer lpName, int[] cchName, java.lang.StringBuffer lpReferencedDomainName, int[] cchReferencedDomainName, int[] peUse)
           
static boolean NotifyChangeEventLog(int hEventLog, int hEvent)
           
static int OpenBackupEventLog(java.lang.String lpUNCServerName, java.lang.String lpFileName)
           
static int OpenEventLog(java.lang.String lpUNCServerName, java.lang.String lpSourceName)
           
static int OpenSCManager(java.lang.String lpMachineName, java.lang.String lpDatabaseName, int dwDesiredAccess)
           
static int OpenService(int hSCManager, java.lang.String lpServiceName, int dwDesiredAccess)
           
static boolean QueryServiceConfig(int hService, int lpServiceConfig, int cbBufSize, int[] pcbBytesNeeded)
           
static boolean QueryServiceStatus(int hService, ServiceStatus lpServiceStatus)
           
static boolean ReadEventLog(int hEventLog, int dwReadFlags, int dwRecordOffset, byte[] lpBuffer, int nNumberOfBytesToRead, int[] pnBytesRead, int[] pnMinNumberOfBytesNeeded)
           
static boolean ReadEventLog(int hEventLog, int dwReadFlags, int dwRecordOffset, int lpBuffer, int nNumberOfBytesToRead, int[] pnBytesRead, int[] pnMinNumberOfBytesNeeded)
           
static int RegCloseKey(int hKey)
           
static int RegConnectRegistry(java.lang.String lpMachineName, int hKey, int[] phkResult)
           
static int RegCreateKeyEx(int hKey, java.lang.String lpSubKey, int Reserved, java.lang.StringBuffer lpClass, int dwOptions, int samDesired, SecurityAttributes lpSecurityAttributes, int[] phkResult, int[] lpdwDisposition)
           
static int RegDeleteKey(int hKey, java.lang.String lpSubKey)
           
static int RegEnumKey(int hKey, int dwIndex, java.lang.StringBuffer lpName, int cchName)
           
static int RegEnumKeyEx(int hKey, int dwIndex, java.lang.StringBuffer lpName, int[] lpcName, int lpReserved, java.lang.StringBuffer lpClass, int[] lpcClass, FileTime lpftLastWriteTime)
           
static int RegEnumValue(int hKey, int dwIndex, java.lang.StringBuffer lpValueName, int[] lpcchValueName, int[] lpReserved, int[] lpType, byte[] lpData, int[] lpcbData)
           
static int RegFlushKey(int hKey)
           
static int RegisterEventSource(java.lang.String lpUNCServerName, java.lang.String lpSourceName)
           
static int RegLoadKey(int hKey, java.lang.String lpSubKey, java.lang.String lpFile)
           
static int RegNotifyChangeKeyValue(int hKey, boolean bWatchSubtree, int dwNotifyFilter, int hEvent, boolean fAsynchronous)
           
static int RegOpenCurrentUser(int samDesired, int[] phkResult)
           
static int RegOpenKeyEx(int hKey, java.lang.String lpSubKey, int ulOptions, int samDesired, int[] phkResult)
           
static int RegOpenUserClassesRoot(int hToken, int dwOptions, int samDesired, int[] phkResult)
           
static int RegOverridePredefKey(int hKey, int hNewHKey)
           
static int RegQueryInfoKey(int hKey, java.lang.StringBuffer lpClass, int[] lpcClass, int[] lpReserved, int[] lpcSubKeys, int[] lpcMaxSubKeyLen, int[] lpcMaxClassLen, int[] lpcValues, int[] lpcMaxValueNameLen, int[] lpcMaxValueLen, int[] lpcbSecurityDescriptor, FileTime lpftLastWriteTime)
           
static int RegQueryValueEx(int hKey, java.lang.String lpValueName, int[] lpReserved, int[] lpType, byte[] lpData, int[] lpcbData)
           
static int RegQueryValueExByte(int hKey, java.lang.String lpValueName, int[] lpReserved, int[] lpType, byte[] lpData, int[] lpcbData)
           
static int RegQueryValueExInt(int hKey, java.lang.String lpValueName, int[] lpReserved, int[] lpType, int[] lpData, int[] lpcbData)
           
static int RegQueryValueExStr(int hKey, java.lang.String lpValueName, int[] lpReserved, int[] lpType, java.lang.StringBuffer lpData, int[] lpcbData)
           
static int RegReplaceKey(int hKey, java.lang.String lpSubKey, java.lang.String lpNewFile, java.lang.String lpOldFile)
           
static int RegRestoreKey(int hKey, java.lang.String lpFile, int dwFlags)
           
static int RegSaveKey(int hKey, java.lang.String lpFile, SecurityAttributes lpSecurityAttributes)
           
static int RegSaveKeyEx(int hKey, java.lang.String lpFile, SecurityAttributes lpSecurityAttributes, int Flags)
           
static int RegSetValue(int hKey, java.lang.String lpSubKey, int dwType, java.lang.String lpData, int cbData)
           
static int RegSetValueEx(int hKey, java.lang.String lpValueName, int Reserved, int dwType, byte[] lpData, int cbData)
           
static int RegSetValueEx(int hKey, java.lang.String lpValueName, int Reserved, int dwType, java.lang.String lpData, int cbData)
           
static int RegUnLoadKey(int hKey, java.lang.String lpSubKey)
           
static boolean ReportEvent(int hEventLog, short wType, short wCategory, int dwEventID, int lpUserSid, short wNumStrings, int dwDataSize, int lpStrings, int lpRawData)
           
static boolean SetThreadToken(int[] Thread, int Token)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Advapi32

public Advapi32()
Method Detail

BackupEventLog

public static boolean BackupEventLog(int hEventLog,
                                     java.lang.String lpBackupFileName)

ClearEventLog

public static boolean ClearEventLog(int hEventLog,
                                    java.lang.String lpBackupFileName)

CloseEventLog

public static boolean CloseEventLog(int hEventLog)

CreateProcessAsUser

public static boolean CreateProcessAsUser(int hToken,
                                          java.lang.String lpApplicationName,
                                          java.lang.String lpCommandLine,
                                          SecurityAttributes lpProcessAttributes,
                                          SecurityAttributes lpThreadAttributes,
                                          boolean bInheritHandles,
                                          int dwCreationFlags,
                                          int lpEnvironment,
                                          java.lang.String lpCurrentDirectory,
                                          StartupInfo lpStartupInfo,
                                          ProcessInformation lpProcessInformation)

CryptAcquireContext

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

CryptCreateHash

public static boolean CryptCreateHash(int hProv,
                                      int Algid,
                                      int hKey,
                                      int dwFlags,
                                      int[] phHash)

CryptDecrypt

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

CryptDeriveKey

public static boolean CryptDeriveKey(int hProv,
                                     int Algid,
                                     int hBaseData,
                                     int dwFlags,
                                     int[] phKey)

CryptDestroyHash

public static boolean CryptDestroyHash(int hHash)

CryptDestroyKey

public static boolean CryptDestroyKey(int hKey)

CryptEncrypt

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

CryptExportKey

public static boolean CryptExportKey(int hKey,
                                     int hExpKey,
                                     int dwBlobType,
                                     int dwFlags,
                                     byte[] pbData,
                                     int[] pdwDataLen)

CryptGenKey

public static boolean CryptGenKey(int hProv,
                                  int Algid,
                                  int dwFlags,
                                  int[] phKey)

CryptGenRandom

public static boolean CryptGenRandom(int hProv,
                                     int dwLen,
                                     byte[] pbBuffer)

CryptGetHashParam

public static boolean CryptGetHashParam(int hHash,
                                        int dwParam,
                                        byte[] pbData,
                                        int[] pdwDataLen,
                                        int dwFlags)

CryptGetKeyParam

public static boolean CryptGetKeyParam(int hKey,
                                       int dwParam,
                                       byte[] pbData,
                                       int[] pdwDataLen,
                                       int dwFlags)

CryptGetProvParam

public static boolean CryptGetProvParam(int hProv,
                                        int dwParam,
                                        byte[] pbData,
                                        int[] pdwDataLen,
                                        int dwFlags)

CryptGetUserKey

public static boolean CryptGetUserKey(int hProv,
                                      int dwKeySpec,
                                      int[] phUserKey)

CryptHashData

public static boolean CryptHashData(int hHash,
                                    byte[] pbData,
                                    int dwDataLen,
                                    int dwFlags)

CryptHashSessionKey

public static boolean CryptHashSessionKey(int hHash,
                                          int hKey,
                                          int dwFlags)

CryptImportKey

public static boolean CryptImportKey(int hProv,
                                     byte[] pbData,
                                     int dwDataLen,
                                     int hPubKey,
                                     int dwFlags,
                                     int[] phKey)

CryptReleaseContext

public static boolean CryptReleaseContext(int hProv,
                                          int dwFlags)

CryptSetHashParam

public static boolean CryptSetHashParam(int hHash,
                                        int dwParam,
                                        byte[] pbData,
                                        int dwFlags)

CryptSetKeyParam

public static boolean CryptSetKeyParam(int hKey,
                                       int dwParam,
                                       byte[] pbData,
                                       int dwFlags)

CryptSetProvParam

public static boolean CryptSetProvParam(int hProv,
                                        int dwParam,
                                        byte[] pbData,
                                        int dwFlags)

CryptSetProvider

public static boolean CryptSetProvider(java.lang.String pszProvName,
                                       int dwProvType)

CryptSignHash

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

CryptVerifySignature

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

DeregisterEventSource

public static boolean DeregisterEventSource(int hEventLog)

DuplicateTokenEx

public static boolean DuplicateTokenEx(int hExistingToken,
                                       int dwDesiredAccess,
                                       SecurityAttributes lpTokenAttributes,
                                       int ImpersonationLevel,
                                       int TokenType,
                                       int[] phNewToken)

GetCurrentHwProfile

public static boolean GetCurrentHwProfile(HwProfileInfo lpHwProfileInfo)

GetNumberOfEventLogRecords

public static boolean GetNumberOfEventLogRecords(int hEventLog,
                                                 int[] NumberOfRecords)

GetOldestEventLogRecord

public static boolean GetOldestEventLogRecord(int hEventLog,
                                              int[] OldestRecord)

GetUserName

public static boolean GetUserName(java.lang.StringBuffer lpBuffer,
                                  int[] nSize)

ImpersonateLoggedOnUser

public static boolean ImpersonateLoggedOnUser(int hToken)

IsTextUnicode

public static boolean IsTextUnicode(int lpBuffer,
                                    int cb,
                                    int[] lpi)

LogonUser

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

NotifyChangeEventLog

public static boolean NotifyChangeEventLog(int hEventLog,
                                           int hEvent)

OpenBackupEventLog

public static int OpenBackupEventLog(java.lang.String lpUNCServerName,
                                     java.lang.String lpFileName)

OpenEventLog

public static int OpenEventLog(java.lang.String lpUNCServerName,
                               java.lang.String lpSourceName)

ReadEventLog

public static boolean ReadEventLog(int hEventLog,
                                   int dwReadFlags,
                                   int dwRecordOffset,
                                   int lpBuffer,
                                   int nNumberOfBytesToRead,
                                   int[] pnBytesRead,
                                   int[] pnMinNumberOfBytesNeeded)

RegisterEventSource

public static int RegisterEventSource(java.lang.String lpUNCServerName,
                                      java.lang.String lpSourceName)

ReportEvent

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

SetThreadToken

public static boolean SetThreadToken(int[] Thread,
                                     int Token)

OpenSCManager

public static int OpenSCManager(java.lang.String lpMachineName,
                                java.lang.String lpDatabaseName,
                                int dwDesiredAccess)

EnumServicesStatus

public static boolean EnumServicesStatus(int hSCManager,
                                         int dwServiceType,
                                         int ServiceState,
                                         int lpServices,
                                         int cbBuffSize,
                                         int[] pcbBytesNeeded,
                                         int[] lpServicesReturned,
                                         int[] lpResumeHandle)

CloseServiceHandle

public static boolean CloseServiceHandle(int hSCObject)

OpenService

public static int OpenService(int hSCManager,
                              java.lang.String lpServiceName,
                              int dwDesiredAccess)

QueryServiceStatus

public static boolean QueryServiceStatus(int hService,
                                         ServiceStatus lpServiceStatus)

QueryServiceConfig

public static boolean QueryServiceConfig(int hService,
                                         int lpServiceConfig,
                                         int cbBufSize,
                                         int[] pcbBytesNeeded)

RegCloseKey

public static int RegCloseKey(int hKey)

RegConnectRegistry

public static int RegConnectRegistry(java.lang.String lpMachineName,
                                     int hKey,
                                     int[] phkResult)

RegCreateKeyEx

public static int RegCreateKeyEx(int hKey,
                                 java.lang.String lpSubKey,
                                 int Reserved,
                                 java.lang.StringBuffer lpClass,
                                 int dwOptions,
                                 int samDesired,
                                 SecurityAttributes lpSecurityAttributes,
                                 int[] phkResult,
                                 int[] lpdwDisposition)

RegDeleteKey

public static int RegDeleteKey(int hKey,
                               java.lang.String lpSubKey)

RegEnumKey

public static int RegEnumKey(int hKey,
                             int dwIndex,
                             java.lang.StringBuffer lpName,
                             int cchName)

RegEnumKeyEx

public static int RegEnumKeyEx(int hKey,
                               int dwIndex,
                               java.lang.StringBuffer lpName,
                               int[] lpcName,
                               int lpReserved,
                               java.lang.StringBuffer lpClass,
                               int[] lpcClass,
                               FileTime lpftLastWriteTime)

RegEnumValue

public static int RegEnumValue(int hKey,
                               int dwIndex,
                               java.lang.StringBuffer lpValueName,
                               int[] lpcchValueName,
                               int[] lpReserved,
                               int[] lpType,
                               byte[] lpData,
                               int[] lpcbData)

RegFlushKey

public static int RegFlushKey(int hKey)

RegLoadKey

public static int RegLoadKey(int hKey,
                             java.lang.String lpSubKey,
                             java.lang.String lpFile)

RegNotifyChangeKeyValue

public static int RegNotifyChangeKeyValue(int hKey,
                                          boolean bWatchSubtree,
                                          int dwNotifyFilter,
                                          int hEvent,
                                          boolean fAsynchronous)

RegOpenCurrentUser

public static int RegOpenCurrentUser(int samDesired,
                                     int[] phkResult)

RegOpenKeyEx

public static int RegOpenKeyEx(int hKey,
                               java.lang.String lpSubKey,
                               int ulOptions,
                               int samDesired,
                               int[] phkResult)

RegOpenUserClassesRoot

public static int RegOpenUserClassesRoot(int hToken,
                                         int dwOptions,
                                         int samDesired,
                                         int[] phkResult)

RegOverridePredefKey

public static int RegOverridePredefKey(int hKey,
                                       int hNewHKey)

RegQueryInfoKey

public static int RegQueryInfoKey(int hKey,
                                  java.lang.StringBuffer lpClass,
                                  int[] lpcClass,
                                  int[] lpReserved,
                                  int[] lpcSubKeys,
                                  int[] lpcMaxSubKeyLen,
                                  int[] lpcMaxClassLen,
                                  int[] lpcValues,
                                  int[] lpcMaxValueNameLen,
                                  int[] lpcMaxValueLen,
                                  int[] lpcbSecurityDescriptor,
                                  FileTime lpftLastWriteTime)

RegQueryValueEx

public static int RegQueryValueEx(int hKey,
                                  java.lang.String lpValueName,
                                  int[] lpReserved,
                                  int[] lpType,
                                  byte[] lpData,
                                  int[] lpcbData)

RegQueryValueExStr

public static int RegQueryValueExStr(int hKey,
                                     java.lang.String lpValueName,
                                     int[] lpReserved,
                                     int[] lpType,
                                     java.lang.StringBuffer lpData,
                                     int[] lpcbData)

RegQueryValueExInt

public static int RegQueryValueExInt(int hKey,
                                     java.lang.String lpValueName,
                                     int[] lpReserved,
                                     int[] lpType,
                                     int[] lpData,
                                     int[] lpcbData)

RegQueryValueExByte

public static int RegQueryValueExByte(int hKey,
                                      java.lang.String lpValueName,
                                      int[] lpReserved,
                                      int[] lpType,
                                      byte[] lpData,
                                      int[] lpcbData)

RegReplaceKey

public static int RegReplaceKey(int hKey,
                                java.lang.String lpSubKey,
                                java.lang.String lpNewFile,
                                java.lang.String lpOldFile)

RegRestoreKey

public static int RegRestoreKey(int hKey,
                                java.lang.String lpFile,
                                int dwFlags)

RegSaveKey

public static int RegSaveKey(int hKey,
                             java.lang.String lpFile,
                             SecurityAttributes lpSecurityAttributes)

RegSaveKeyEx

public static int RegSaveKeyEx(int hKey,
                               java.lang.String lpFile,
                               SecurityAttributes lpSecurityAttributes,
                               int Flags)

RegSetValueEx

public static int RegSetValueEx(int hKey,
                                java.lang.String lpValueName,
                                int Reserved,
                                int dwType,
                                byte[] lpData,
                                int cbData)

RegSetValueEx

public static int RegSetValueEx(int hKey,
                                java.lang.String lpValueName,
                                int Reserved,
                                int dwType,
                                java.lang.String lpData,
                                int cbData)

RegSetValue

public static int RegSetValue(int hKey,
                              java.lang.String lpSubKey,
                              int dwType,
                              java.lang.String lpData,
                              int cbData)

RegUnLoadKey

public static int RegUnLoadKey(int hKey,
                               java.lang.String lpSubKey)

GetEventLogInformation

public static boolean GetEventLogInformation(int hEventLog,
                                             int dwInfoLevel,
                                             byte[] lpBuffer,
                                             int cbBufSize,
                                             int[] pcbBytesNeeded)

ReadEventLog

public static boolean ReadEventLog(int hEventLog,
                                   int dwReadFlags,
                                   int dwRecordOffset,
                                   byte[] lpBuffer,
                                   int nNumberOfBytesToRead,
                                   int[] pnBytesRead,
                                   int[] pnMinNumberOfBytesNeeded)

LookupAccountName

public static boolean LookupAccountName(java.lang.String lpSystemName,
                                        java.lang.String lpAccountName,
                                        int[] Sid,
                                        int[] cbSid,
                                        java.lang.StringBuffer ReferencedDomainName,
                                        int[] cchReferencedDomainName,
                                        int[] peUse)

LookupAccountSid

public static boolean LookupAccountSid(java.lang.String lpSystemName,
                                       int lpSid,
                                       java.lang.StringBuffer lpName,
                                       int[] cchName,
                                       java.lang.StringBuffer lpReferencedDomainName,
                                       int[] cchReferencedDomainName,
                                       int[] peUse)