| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final NTDSAPI |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Error code ERROR_SUCCESS, ERROR_BUFFER_OVERFLOW or ERROR_INVALID_PARAMETERSPN service class (in) serviceClass, WString SPN service name (in) serviceName, @Nullable WString SPN instance name (in, null ok) instanceName, short SPN port number (in, 0 to omit) instancePort, @Nullable WString SPN referer (in, null ok) referrer, IntByReference Size of 'spn' buffer (in), actual length of spn created including null
terminator (out) spnLength, char[] SPN buffer (in/out) spn)Wrap DsMakeSpn To get the String result, call new String(buf, 0, spnLength) |
| ERROR_BUFFER_OVERFLOW | back to summary |
|---|---|
| public static final int ERROR_BUFFER_OVERFLOW | |
| ERROR_INVALID_PARAMETER | back to summary |
|---|---|
| public static final int ERROR_INVALID_PARAMETER | |
| ERROR_SUCCESS | back to summary |
|---|---|
| public static final int ERROR_SUCCESS | |
| instance | back to summary |
|---|---|
| public static final NTDSAPI instance | |
| DsMakeSpnW | back to summary |
|---|---|
| public int DsMakeSpnW(WString serviceClass, WString serviceName, @Nullable WString instanceName, short instancePort, @Nullable WString referrer, IntByReference spnLength, char[] spn) throws LastErrorException Wrap DsMakeSpn To get the String result, call new String(buf, 0, spnLength)on the byte[] buffer passed to 'spn' after testing to ensure ERROR_SUCCESS.
| |