Documentation
¶
Index ¶
- Variables
- func NewWinsifServerHandle(o WinsifServer) dcerpc.ServerHandle
- func RegisterWinsifServer(conn dcerpc.Conn, o WinsifServer, opts ...dcerpc.Option)
- func WinsifServerHandle(ctx context.Context, o WinsifServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type BackupRequest
- type BackupResponse
- type DeleteDBRecordsRequest
- type DeleteDBRecordsResponse
- type DeleteWINSRequest
- type DeleteWINSResponse
- type DoScavengingNewRequest
- type DoScavengingNewResponse
- type DoScavengingRequest
- type DoScavengingResponse
- type DoStaticInitRequest
- type DoStaticInitResponse
- type GetBrowserNamesOldRequest
- type GetBrowserNamesOldResponse
- type GetBrowserNamesRequest
- type GetBrowserNamesResponse
- type GetDBRecordsByNameRequest
- type GetDBRecordsByNameResponse
- type GetDBRecordsRequest
- type GetDBRecordsResponse
- type GetNameAndAddrRequest
- type GetNameAndAddrResponse
- type PullRangeRequest
- type PullRangeResponse
- type RecordActionRequest
- type RecordActionResponse
- type ResetCountersRequest
- type ResetCountersResponse
- type SetFlagsRequest
- type SetFlagsResponse
- type SetPriorityClassRequest
- type SetPriorityClassResponse
- type StatusNewRequest
- type StatusNewResponse
- type StatusRequest
- type StatusResponse
- type StatusWRequest
- type StatusWResponse
- type TerminateRequest
- type TerminateResponse
- type TriggerRequest
- type TriggerResponse
- type WinsifClient
- type WinsifServer
- type WorkerThreadUpdateRequest
- type WorkerThreadUpdateResponse
Constants ¶
This section is empty.
Variables ¶
var ( // Syntax UUID WinsifSyntaxUUID = &uuid.UUID{TimeLow: 0x45f52c28, TimeMid: 0x7f9f, TimeHiAndVersion: 0x101a, ClockSeqHiAndReserved: 0xb5, ClockSeqLow: 0x2b, Node: [6]uint8{0x8, 0x0, 0x2b, 0x2e, 0xfa, 0xbe}} // Syntax ID WinsifSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: WinsifSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "raiw"
)
Functions ¶
func NewWinsifServerHandle ¶
func NewWinsifServerHandle(o WinsifServer) dcerpc.ServerHandle
func RegisterWinsifServer ¶
func RegisterWinsifServer(conn dcerpc.Conn, o WinsifServer, opts ...dcerpc.Option)
Types ¶
type BackupRequest ¶
type BackupRequest struct { // pBackupPath: A pointer to a string that contains the name of the directory to which // to back up the database. This pointer MUST not be NULL. BackupPath string `idl:"name:pBackupPath;string;pointer:ref" json:"backup_path"` // fIncremental: A value that is ignored. Incremental int16 `idl:"name:fIncremental" json:"incremental"` }
BackupRequest structure represents the R_WinsBackup operation request
func (*BackupRequest) MarshalNDR ¶
func (*BackupRequest) UnmarshalNDR ¶
type BackupResponse ¶
type BackupResponse struct { // Return: The R_WinsBackup return value. Return uint32 `idl:"name:Return" json:"return"` }
BackupResponse structure represents the R_WinsBackup operation response
func (*BackupResponse) MarshalNDR ¶
func (*BackupResponse) UnmarshalNDR ¶
type DeleteDBRecordsRequest ¶
type DeleteDBRecordsRequest struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"` // MinVersNo: The lower bound on the version number of the records to be deleted. MinVersNo *raiw.VersNo `idl:"name:MinVersNo" json:"min_vers_no"` // MaxVersNo: The upper bound on the version number of the records to be deleted. MaxVersNo *raiw.VersNo `idl:"name:MaxVersNo" json:"max_vers_no"` }
DeleteDBRecordsRequest structure represents the R_WinsDelDbRecs operation request
func (*DeleteDBRecordsRequest) MarshalNDR ¶
func (*DeleteDBRecordsRequest) UnmarshalNDR ¶
type DeleteDBRecordsResponse ¶
type DeleteDBRecordsResponse struct { // Return: The R_WinsDelDbRecs return value. Return uint32 `idl:"name:Return" json:"return"` }
DeleteDBRecordsResponse structure represents the R_WinsDelDbRecs operation response
func (*DeleteDBRecordsResponse) MarshalNDR ¶
func (*DeleteDBRecordsResponse) UnmarshalNDR ¶
type DeleteWINSRequest ¶
type DeleteWINSRequest struct {
WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"`
}
DeleteWINSRequest structure represents the R_WinsDeleteWins operation request
func (*DeleteWINSRequest) MarshalNDR ¶
func (*DeleteWINSRequest) UnmarshalNDR ¶
type DeleteWINSResponse ¶
type DeleteWINSResponse struct { // Return: The R_WinsDeleteWins return value. Return uint32 `idl:"name:Return" json:"return"` }
DeleteWINSResponse structure represents the R_WinsDeleteWins operation response
func (*DeleteWINSResponse) MarshalNDR ¶
func (*DeleteWINSResponse) UnmarshalNDR ¶
type DoScavengingNewRequest ¶
type DoScavengingNewRequest struct { // pScvReq: A pointer to a WINSINTF_SCV_REQ_T structure (section 2.2.2.12) that defines // the type of scavenging operation. PeriodicScavengingRequest *raiw.ScavengingRequest `idl:"name:pScvReq;pointer:ref" json:"periodic_scavenging_request"` }
DoScavengingNewRequest structure represents the R_WinsDoScavengingNew operation request
func (*DoScavengingNewRequest) MarshalNDR ¶
func (*DoScavengingNewRequest) UnmarshalNDR ¶
type DoScavengingNewResponse ¶
type DoScavengingNewResponse struct { // Return: The R_WinsDoScavengingNew return value. Return uint32 `idl:"name:Return" json:"return"` }
DoScavengingNewResponse structure represents the R_WinsDoScavengingNew operation response
func (*DoScavengingNewResponse) MarshalNDR ¶
func (*DoScavengingNewResponse) UnmarshalNDR ¶
type DoScavengingRequest ¶
type DoScavengingRequest struct { }
DoScavengingRequest structure represents the R_WinsDoScavenging operation request
func (*DoScavengingRequest) MarshalNDR ¶
func (*DoScavengingRequest) UnmarshalNDR ¶
type DoScavengingResponse ¶
type DoScavengingResponse struct { // Return: The R_WinsDoScavenging return value. Return uint32 `idl:"name:Return" json:"return"` }
DoScavengingResponse structure represents the R_WinsDoScavenging operation response
func (*DoScavengingResponse) MarshalNDR ¶
func (*DoScavengingResponse) UnmarshalNDR ¶
type DoStaticInitRequest ¶
type DoStaticInitRequest struct { // pDataFilePath: A pointer to a Unicode string containing the path to a text file on // the target WINS server. The file SHOULD contain entries that map NetBIOS names to // IPv4 addresses in string format using the following syntax: // // <IPv4 address 1> <one or more spaces> <NetBIOS name 1> <IPv4 address 2> <one or more // spaces> <NetBIOS name 2> ... <IPv4 address N> <one or more spaces> <NetBIOS name // N> // // An example of this syntax can be found in the Windows LMHOSTS file, as specified // in [MS-NBTE] section 2.2.3 LMHOSTS File Syntax. See [LMHOSTS] for more information. DataFilePath string `idl:"name:pDataFilePath;string;pointer:unique" json:"data_file_path"` // fDel: Value specifying whether or not to delete the file specified by pDataFilePath // from the target WINS server. A non-zero value deletes the file from the target WINS // server after the database initialization is complete. Delete uint32 `idl:"name:fDel" json:"delete"` }
DoStaticInitRequest structure represents the R_WinsDoStaticInit operation request
func (*DoStaticInitRequest) MarshalNDR ¶
func (*DoStaticInitRequest) UnmarshalNDR ¶
type DoStaticInitResponse ¶
type DoStaticInitResponse struct { // Return: The R_WinsDoStaticInit return value. Return uint32 `idl:"name:Return" json:"return"` }
DoStaticInitResponse structure represents the R_WinsDoStaticInit operation response
func (*DoStaticInitResponse) MarshalNDR ¶
func (*DoStaticInitResponse) UnmarshalNDR ¶
type GetBrowserNamesOldRequest ¶
type GetBrowserNamesOldRequest struct { }
GetBrowserNamesOldRequest structure represents the R_WinsGetBrowserNames_Old operation request
func (*GetBrowserNamesOldRequest) MarshalNDR ¶
func (*GetBrowserNamesOldRequest) UnmarshalNDR ¶
type GetBrowserNamesOldResponse ¶
type GetBrowserNamesOldResponse struct { // pNames: This field MUST be ignored. Names *raiw.BrowserNames `idl:"name:pNames" json:"names"` // Return: The R_WinsGetBrowserNames_Old return value. Return uint32 `idl:"name:Return" json:"return"` }
GetBrowserNamesOldResponse structure represents the R_WinsGetBrowserNames_Old operation response
func (*GetBrowserNamesOldResponse) MarshalNDR ¶
func (*GetBrowserNamesOldResponse) UnmarshalNDR ¶
type GetBrowserNamesRequest ¶
type GetBrowserNamesRequest struct { // ServerHdl: An RPC binding over IP address/HostName to the WINS server. RPC uses this // binding internally to determine which WINS server the call is directed to. See [MSDN-Handles] // for more information. Server *raiw.BindData `idl:"name:ServerHdl;pointer:ref" json:"server"` }
GetBrowserNamesRequest structure represents the R_WinsGetBrowserNames operation request
func (*GetBrowserNamesRequest) MarshalNDR ¶
func (*GetBrowserNamesRequest) UnmarshalNDR ¶
type GetBrowserNamesResponse ¶
type GetBrowserNamesResponse struct { // pNames: A pointer to a structure of type WINSINTF_BROWSER_NAMES_T (section 2.2.2.10), // which contains the browser name records retrieved from the target WINS server. Names *raiw.BrowserNames `idl:"name:pNames" json:"names"` // Return: The R_WinsGetBrowserNames return value. Return uint32 `idl:"name:Return" json:"return"` }
GetBrowserNamesResponse structure represents the R_WinsGetBrowserNames operation response
func (*GetBrowserNamesResponse) MarshalNDR ¶
func (*GetBrowserNamesResponse) UnmarshalNDR ¶
type GetDBRecordsByNameRequest ¶
type GetDBRecordsByNameRequest struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:unique" json:"wins_addr"` // Location: A value specifying the direction in which the database is searched. If // the value is zero, the database is searched forward starting from the beginning. // If the value is 1, the database is searched backward starting from the last record // of the database. Location uint32 `idl:"name:Location" json:"location"` // pName: A pointer to a name that specifies the cursor from which the database retrieval // starts. Name []byte `idl:"name:pName;size_is:((NameLen+1));pointer:unique" json:"name"` // NameLen: The length of the name that pName points to, including terminating NULL // character. NameLength uint32 `idl:"name:NameLen" json:"name_length"` // NoOfRecsDesired: The number of records to be retrieved from the database. NumberOfRecordsDesired uint32 `idl:"name:NoOfRecsDesired" json:"number_of_records_desired"` // fOnlyStatic: Takes a value of 1, 2, or 4 to indicate whether static records, dynamic // records, or both are retrieved. A value of 1 retrieves only static records. A value // of 2 retrieves only dynamic records. A value of 4 retrieves both static records and // dynamic records. OnlyStatic uint32 `idl:"name:fOnlyStatic" json:"only_static"` }
GetDBRecordsByNameRequest structure represents the R_WinsGetDbRecsByName operation request
func (*GetDBRecordsByNameRequest) MarshalNDR ¶
func (*GetDBRecordsByNameRequest) UnmarshalNDR ¶
type GetDBRecordsByNameResponse ¶
type GetDBRecordsByNameResponse struct { // pRecs: A pointer to a structure containing the retrieved records. Records *raiw.Records `idl:"name:pRecs" json:"records"` // Return: The R_WinsGetDbRecsByName return value. Return uint32 `idl:"name:Return" json:"return"` }
GetDBRecordsByNameResponse structure represents the R_WinsGetDbRecsByName operation response
func (*GetDBRecordsByNameResponse) MarshalNDR ¶
func (*GetDBRecordsByNameResponse) UnmarshalNDR ¶
type GetDBRecordsRequest ¶
type GetDBRecordsRequest struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"` // MinVersNo: The lower bound on the version range of the records to be retrieved. MinVersNo *raiw.VersNo `idl:"name:MinVersNo" json:"min_vers_no"` // MaxVersNo: The upper bound on the version range of the records to be retrieved. MaxVersNo *raiw.VersNo `idl:"name:MaxVersNo" json:"max_vers_no"` }
GetDBRecordsRequest structure represents the R_WinsGetDbRecs operation request
func (*GetDBRecordsRequest) MarshalNDR ¶
func (*GetDBRecordsRequest) UnmarshalNDR ¶
type GetDBRecordsResponse ¶
type GetDBRecordsResponse struct { // pRecs: Pointer to a structure of type WINSINTF_RECS_T, which contains the records // retrieved from the target WINS server. Records *raiw.Records `idl:"name:pRecs" json:"records"` // Return: The R_WinsGetDbRecs return value. Return uint32 `idl:"name:Return" json:"return"` }
GetDBRecordsResponse structure represents the R_WinsGetDbRecs operation response
func (*GetDBRecordsResponse) MarshalNDR ¶
func (*GetDBRecordsResponse) UnmarshalNDR ¶
type GetNameAndAddrRequest ¶
type GetNameAndAddrRequest struct { }
GetNameAndAddrRequest structure represents the R_WinsGetNameAndAddr operation request
func (*GetNameAndAddrRequest) MarshalNDR ¶
func (*GetNameAndAddrRequest) UnmarshalNDR ¶
type GetNameAndAddrResponse ¶
type GetNameAndAddrResponse struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"` UNCName string `idl:"name:pUncName;size_is:(80);string" json:"unc_name"` // Return: The R_WinsGetNameAndAddr return value. Return uint32 `idl:"name:Return" json:"return"` }
GetNameAndAddrResponse structure represents the R_WinsGetNameAndAddr operation response
func (*GetNameAndAddrResponse) MarshalNDR ¶
func (*GetNameAndAddrResponse) UnmarshalNDR ¶
type PullRangeRequest ¶
type PullRangeRequest struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"` OwnerAddr *raiw.Addr `idl:"name:pOwnerAddr;pointer:ref" json:"owner_addr"` // MinVersNo: The lower bound on the range of version numbers for the records to be // pulled. MinVersNo *raiw.VersNo `idl:"name:MinVersNo" json:"min_vers_no"` // MaxVersNo: The upper bound on the range of version numbers for the records to be // pulled. MaxVersNo *raiw.VersNo `idl:"name:MaxVersNo" json:"max_vers_no"` }
PullRangeRequest structure represents the R_WinsPullRange operation request
func (*PullRangeRequest) MarshalNDR ¶
func (*PullRangeRequest) UnmarshalNDR ¶
type PullRangeResponse ¶
type PullRangeResponse struct { // Return: The R_WinsPullRange return value. Return uint32 `idl:"name:Return" json:"return"` }
PullRangeResponse structure represents the R_WinsPullRange operation response
func (*PullRangeResponse) MarshalNDR ¶
func (*PullRangeResponse) UnmarshalNDR ¶
type RecordActionRequest ¶
type RecordActionRequest struct { // ppRecAction: A pointer to a WINSINTF_RECORD_ACTION_T structure (section 2.2.2.3) // that contains the details of the record and the action to be performed on it. The // interpretation of the member values in this structure depends on the type of action // specified by the WINSINTF_ACT_E enumeration (section 2.2.1.4) value in its Cmd_e // member, as follows. // // WINSINTF_E_INSERT: // // § Cmd_e is set to WINSINTF_E_INSERT. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e is set to a value between 0x00000000 and 0x00000003 based on the record // type. // // § NoOfAdds is set to a positive value based on the number of IP address mappings // that the record has. // // § pAdd or Add is set with the mapping IP addresses, based on the TypOfRec_e member. // // § VersNo SHOULD be ignored by the server. The inserted record MUST be marked with // the current version number that is in use at the WINS server. // // § NodeTyp is set to a value between 0x00 and 0x03 based on the type of the node. // // § OwnerId SHOULD be ignored by the server. The record MUST be inserted into the // database with the OwnerId member set to the target WINS server address. // // § State_e SHOULD be ignored by the server. The record MUST be inserted into the // database with its state marked as ACTIVE. // // § fStatic is set to 0x00000001 if the record being inserted is a static record; // otherwise, it is set to 0x00000000. // // § TimeStamp SHOULD be ignored by the server. The inserted record SHOULD be time-stamped // with zero if the fStatic member is set to 0x00000001; otherwise, it SHOULD be time-stamped // with the current time on the server plus the refresh interval configured on the server. // // WINSINTF_E_DELETE: // // § Cmd_e is set to WINSINTF_E_DELETE. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be deleted from the database. // // § NameLen contains the length of the string specified by pName. // // § State_e is set to 0x00000003. // // § All other members SHOULD be ignored by the server. // // § WINSINTF_E_RELEASE: // // § Cmd_e is set to WINSINTF_E_RELEASE. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e is set to a value between zero and 0x00000003 based on the record type. // // § NoOfAdds MUST be set to 0x00000001. // // § pAdd or Add is set with the mapping IP address based on the TypOfRec_e member. // // § VersNo, NodeTyp, OwnerId, and fStatic SHOULD be ignored by the server. // // § State_e SHOULD be ignored by the server. The record MUST be inserted with state // marked as RELEASED. // // § TimeStamp SHOULD be ignored by the server. The released record SHOULD be time-stamped // with 0xFFFFFFFF if the fStatic member is set to 0x00000001; otherwise, it SHOULD // be time-stamped with the current time on the server plus the tombstone interval configured // on the server. // // WINSINTF_E_MODIFY: // // § Cmd_e is set to WINSINTF_E_MODIFY. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be modified in the database. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e contains the record type to be set for the record matching the pName // member in the WINS database. // // § NodeTyp contains the node type to be set for the record matching the pName member // in the WINS database. // // § State_e contains the state to be set for the record matching the pName member // in the WINS database. // // § fStatic contains the value to be set for the record matching the pName member // in the WINS database. // // § All other members SHOULD be ignored by the server. // // WINSINTF_E_QUERY: // // § Cmd_e is set to WINSINTF_E_QUERY. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be queried from the database. // // § NameLen contains the length of the string specified by pName. // // § All other members act as output, which are filled by the server if a matching // entry is found in the database. // // § TypOfRec_e contains the matching record type. // // § If the TyeOfRec_e member is set to 0x00000000 or 0x00000001, the NoOfAdds member // SHOULD contain 0x00000001 or the number of IP addresses that are mapped to the name // given in the pName member. // // § If the TypOfRec_e member is set to 0x00000002 or 0x00000003. The RPC method caller // SHOULD refer to this member for the set of IP addresses mapped to the name given // in the pName member. // // § If the TypOfRec_e member is set to 0x00000000 or 0x00000001. The RPC method caller // SHOULD refer to this member for the IP address mapped to the name given in the pName // member. If the TypOfRec_e member is set to 0x00000001, the IPAdd member of the Add // structure MUST contain 0xFFFFFFFF. // // § VersNo contains the version number of the matching record. // // § NodeTyp contains the node type of the matching record. // // § OwnerId contains the IP address of the owner of the matching record. // // § State_e contains the state of the matching record. // // § fStatic contains the value 0x00000001 if the record is entered into the database // by an administrator; otherwise, it contains 0x00000000. RecordAction *raiw.RecordAction `idl:"name:ppRecAction;pointer:ref" json:"record_action"` }
RecordActionRequest structure represents the R_WinsRecordAction operation request
func (*RecordActionRequest) MarshalNDR ¶
func (*RecordActionRequest) UnmarshalNDR ¶
type RecordActionResponse ¶
type RecordActionResponse struct { // ppRecAction: A pointer to a WINSINTF_RECORD_ACTION_T structure (section 2.2.2.3) // that contains the details of the record and the action to be performed on it. The // interpretation of the member values in this structure depends on the type of action // specified by the WINSINTF_ACT_E enumeration (section 2.2.1.4) value in its Cmd_e // member, as follows. // // WINSINTF_E_INSERT: // // § Cmd_e is set to WINSINTF_E_INSERT. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e is set to a value between 0x00000000 and 0x00000003 based on the record // type. // // § NoOfAdds is set to a positive value based on the number of IP address mappings // that the record has. // // § pAdd or Add is set with the mapping IP addresses, based on the TypOfRec_e member. // // § VersNo SHOULD be ignored by the server. The inserted record MUST be marked with // the current version number that is in use at the WINS server. // // § NodeTyp is set to a value between 0x00 and 0x03 based on the type of the node. // // § OwnerId SHOULD be ignored by the server. The record MUST be inserted into the // database with the OwnerId member set to the target WINS server address. // // § State_e SHOULD be ignored by the server. The record MUST be inserted into the // database with its state marked as ACTIVE. // // § fStatic is set to 0x00000001 if the record being inserted is a static record; // otherwise, it is set to 0x00000000. // // § TimeStamp SHOULD be ignored by the server. The inserted record SHOULD be time-stamped // with zero if the fStatic member is set to 0x00000001; otherwise, it SHOULD be time-stamped // with the current time on the server plus the refresh interval configured on the server. // // WINSINTF_E_DELETE: // // § Cmd_e is set to WINSINTF_E_DELETE. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be deleted from the database. // // § NameLen contains the length of the string specified by pName. // // § State_e is set to 0x00000003. // // § All other members SHOULD be ignored by the server. // // § WINSINTF_E_RELEASE: // // § Cmd_e is set to WINSINTF_E_RELEASE. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e is set to a value between zero and 0x00000003 based on the record type. // // § NoOfAdds MUST be set to 0x00000001. // // § pAdd or Add is set with the mapping IP address based on the TypOfRec_e member. // // § VersNo, NodeTyp, OwnerId, and fStatic SHOULD be ignored by the server. // // § State_e SHOULD be ignored by the server. The record MUST be inserted with state // marked as RELEASED. // // § TimeStamp SHOULD be ignored by the server. The released record SHOULD be time-stamped // with 0xFFFFFFFF if the fStatic member is set to 0x00000001; otherwise, it SHOULD // be time-stamped with the current time on the server plus the tombstone interval configured // on the server. // // WINSINTF_E_MODIFY: // // § Cmd_e is set to WINSINTF_E_MODIFY. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be modified in the database. // // § NameLen contains the length of the string specified by pName. // // § TypOfRec_e contains the record type to be set for the record matching the pName // member in the WINS database. // // § NodeTyp contains the node type to be set for the record matching the pName member // in the WINS database. // // § State_e contains the state to be set for the record matching the pName member // in the WINS database. // // § fStatic contains the value to be set for the record matching the pName member // in the WINS database. // // § All other members SHOULD be ignored by the server. // // WINSINTF_E_QUERY: // // § Cmd_e is set to WINSINTF_E_QUERY. // // § pName points to a NULL-terminated string that contains the NetBIOS name and optionally // the NetBIOS scope name of the record to be queried from the database. // // § NameLen contains the length of the string specified by pName. // // § All other members act as output, which are filled by the server if a matching // entry is found in the database. // // § TypOfRec_e contains the matching record type. // // § If the TyeOfRec_e member is set to 0x00000000 or 0x00000001, the NoOfAdds member // SHOULD contain 0x00000001 or the number of IP addresses that are mapped to the name // given in the pName member. // // § If the TypOfRec_e member is set to 0x00000002 or 0x00000003. The RPC method caller // SHOULD refer to this member for the set of IP addresses mapped to the name given // in the pName member. // // § If the TypOfRec_e member is set to 0x00000000 or 0x00000001. The RPC method caller // SHOULD refer to this member for the IP address mapped to the name given in the pName // member. If the TypOfRec_e member is set to 0x00000001, the IPAdd member of the Add // structure MUST contain 0xFFFFFFFF. // // § VersNo contains the version number of the matching record. // // § NodeTyp contains the node type of the matching record. // // § OwnerId contains the IP address of the owner of the matching record. // // § State_e contains the state of the matching record. // // § fStatic contains the value 0x00000001 if the record is entered into the database // by an administrator; otherwise, it contains 0x00000000. RecordAction *raiw.RecordAction `idl:"name:ppRecAction;pointer:ref" json:"record_action"` // Return: The R_WinsRecordAction return value. Return uint32 `idl:"name:Return" json:"return"` }
RecordActionResponse structure represents the R_WinsRecordAction operation response
func (*RecordActionResponse) MarshalNDR ¶
func (*RecordActionResponse) UnmarshalNDR ¶
type ResetCountersRequest ¶
type ResetCountersRequest struct { }
ResetCountersRequest structure represents the R_WinsResetCounters operation request
func (*ResetCountersRequest) MarshalNDR ¶
func (*ResetCountersRequest) UnmarshalNDR ¶
type ResetCountersResponse ¶
type ResetCountersResponse struct { // Return: The R_WinsResetCounters return value. Return uint32 `idl:"name:Return" json:"return"` }
ResetCountersResponse structure represents the R_WinsResetCounters operation response
func (*ResetCountersResponse) MarshalNDR ¶
func (*ResetCountersResponse) UnmarshalNDR ¶
type SetFlagsRequest ¶
type SetFlagsRequest struct { // fFlags: This field MUST be ignored. Flags uint32 `idl:"name:fFlags" json:"flags"` }
SetFlagsRequest structure represents the R_WinsSetFlags operation request
func (*SetFlagsRequest) MarshalNDR ¶
func (*SetFlagsRequest) UnmarshalNDR ¶
type SetFlagsResponse ¶
type SetFlagsResponse struct { // Return: The R_WinsSetFlags return value. Return uint32 `idl:"name:Return" json:"return"` }
SetFlagsResponse structure represents the R_WinsSetFlags operation response
func (*SetFlagsResponse) MarshalNDR ¶
func (*SetFlagsResponse) UnmarshalNDR ¶
type SetPriorityClassRequest ¶
type SetPriorityClassRequest struct { // PrCls_e: The priority class to be set. PriorityClass raiw.PriorityClass `idl:"name:PrCls_e" json:"priority_class"` }
SetPriorityClassRequest structure represents the R_WinsSetPriorityClass operation request
func (*SetPriorityClassRequest) MarshalNDR ¶
func (*SetPriorityClassRequest) UnmarshalNDR ¶
type SetPriorityClassResponse ¶
type SetPriorityClassResponse struct { // Return: The R_WinsSetPriorityClass return value. Return uint32 `idl:"name:Return" json:"return"` }
SetPriorityClassResponse structure represents the R_WinsSetPriorityClass operation response
func (*SetPriorityClassResponse) MarshalNDR ¶
func (*SetPriorityClassResponse) UnmarshalNDR ¶
type StatusNewRequest ¶
type StatusNewRequest struct { // Cmd_e: The command to be executed on the target WINS server, from the WINSINTF_CMD_E // enumeration (section 2.2.1.5). Cmd raiw.Cmd `idl:"name:Cmd_e" json:"cmd"` }
StatusNewRequest structure represents the R_WinsStatusNew operation request
func (*StatusNewRequest) MarshalNDR ¶
func (*StatusNewRequest) UnmarshalNDR ¶
type StatusNewResponse ¶
type StatusNewResponse struct { // pResults: A pointer to a WINSINTF_RESULTS_NEW_T structure (section 2.2.2.11), which // contains the results of the command execution. Results *raiw.ResultsNew `idl:"name:pResults" json:"results"` // Return: The R_WinsStatusNew return value. Return uint32 `idl:"name:Return" json:"return"` }
StatusNewResponse structure represents the R_WinsStatusNew operation response
func (*StatusNewResponse) MarshalNDR ¶
func (*StatusNewResponse) UnmarshalNDR ¶
type StatusRequest ¶
type StatusRequest struct { // Cmd_e: The command to be executed on the target WINS server from the WINSINTF_CMD_E // enumeration (section 2.2.1.5). Cmd raiw.Cmd `idl:"name:Cmd_e" json:"cmd"` // pResults: A pointer to a WINSINTF_RESULTS_T structure (section 2.2.2.7) that contains // configuration data and statistics for the target WINS server. Results *raiw.Results `idl:"name:pResults;pointer:ref" json:"results"` }
StatusRequest structure represents the R_WinsStatus operation request
func (*StatusRequest) MarshalNDR ¶
func (*StatusRequest) UnmarshalNDR ¶
type StatusResponse ¶
type StatusResponse struct { // pResults: A pointer to a WINSINTF_RESULTS_T structure (section 2.2.2.7) that contains // configuration data and statistics for the target WINS server. Results *raiw.Results `idl:"name:pResults;pointer:ref" json:"results"` // Return: The R_WinsStatus return value. Return uint32 `idl:"name:Return" json:"return"` }
StatusResponse structure represents the R_WinsStatus operation response
func (*StatusResponse) MarshalNDR ¶
func (*StatusResponse) UnmarshalNDR ¶
type StatusWRequest ¶
type StatusWRequest struct { // ServerHdl: An RPC binding over IP address/HostName to the WINS server. RPC uses this // binding internally to determine which WINS server the call is directed to. See [MSDN-Handles] // for more information. Server *raiw.BindData `idl:"name:ServerHdl;pointer:ref" json:"server"` // Cmd_e: The command to be executed on the target WINS server. Cmd raiw.Cmd `idl:"name:Cmd_e" json:"cmd"` // pResults: A pointer to a structure of type WINSINTF_RESULTS_NEW_T (section 2.2.2.11) // that contains the results of the command execution. Results *raiw.ResultsNew `idl:"name:pResults;pointer:ref" json:"results"` }
StatusWRequest structure represents the R_WinsStatusWHdl operation request
func (*StatusWRequest) MarshalNDR ¶
func (*StatusWRequest) UnmarshalNDR ¶
type StatusWResponse ¶
type StatusWResponse struct { // pResults: A pointer to a structure of type WINSINTF_RESULTS_NEW_T (section 2.2.2.11) // that contains the results of the command execution. Results *raiw.ResultsNew `idl:"name:pResults;pointer:ref" json:"results"` // Return: The R_WinsStatusWHdl return value. Return uint32 `idl:"name:Return" json:"return"` }
StatusWResponse structure represents the R_WinsStatusWHdl operation response
func (*StatusWResponse) MarshalNDR ¶
func (*StatusWResponse) UnmarshalNDR ¶
type TerminateRequest ¶
type TerminateRequest struct { // fAbruptTem: A value that indicates whether the WINS process terminates immediately. // If this value is nonzero, the service terminates immediately. Otherwise, the service // exits normally and frees all resources. AbruptTem int16 `idl:"name:fAbruptTem" json:"abrupt_tem"` }
TerminateRequest structure represents the R_WinsTerm operation request
func (*TerminateRequest) MarshalNDR ¶
func (*TerminateRequest) UnmarshalNDR ¶
type TerminateResponse ¶
type TerminateResponse struct { // Return: The R_WinsTerm return value. Return uint32 `idl:"name:Return" json:"return"` }
TerminateResponse structure represents the R_WinsTerm operation response
func (*TerminateResponse) MarshalNDR ¶
func (*TerminateResponse) UnmarshalNDR ¶
type TriggerRequest ¶
type TriggerRequest struct { WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"` // TrigType_e: The type of replication operation requested. TriggerTypeE raiw.TriggerTypeE `idl:"name:TrigType_e" json:"trigger_type_e"` }
TriggerRequest structure represents the R_WinsTrigger operation request
func (*TriggerRequest) MarshalNDR ¶
func (*TriggerRequest) UnmarshalNDR ¶
type TriggerResponse ¶
type TriggerResponse struct { // Return: The R_WinsTrigger return value. Return uint32 `idl:"name:Return" json:"return"` }
TriggerResponse structure represents the R_WinsTrigger operation response
func (*TriggerResponse) MarshalNDR ¶
func (*TriggerResponse) UnmarshalNDR ¶
type WinsifClient ¶
type WinsifClient interface { // The R_WinsRecordAction method inserts, modifies, deletes, releases, or queries a // name record from the WINS database. // // Return Values: A 32-bit unsigned integer value that indicates return status. A return // value of ERROR_SUCCESS indicates that the operation was completed successfully. Otherwise, // the TimeStamp member SHOULD contain one of the following Win32 error codes, as specified // in [MS-ERREF]: // // +-----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------+----------------------------------------------------------------------------------+ // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA5 ERROR_REC_NON_EXISTENT | The name does not exist in the database. This error is returned only if a | // | | requested WINSINTF_E_QUERY operation is not successful. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +-----------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. RecordAction(context.Context, *RecordActionRequest, ...dcerpc.CallOption) (*RecordActionResponse, error) // The R_WinsStatus method retrieves configuration settings and statistics from a WINS // server. // // Return Values: A 32-bit unsigned integer value that indicates return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Otherwise, this return value is a Win32 error code, as specified in [MS-ERREF]. The // following Win32 error codes can be returned. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Status(context.Context, *StatusRequest, ...dcerpc.CallOption) (*StatusResponse, error) // The R_WinsTrigger method triggers a replication operation between a target WINS server // and another WINS server. // // Return Values: A 32 bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. Any other return value is a Win32 error code, as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+----------------------------------------------------------------------------------+ // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA6 ERROR_RPL_NOT_ALLOWED | The WINS server requested for the replication operation is requested is not | // | | configured as a replication partner for the target WINS server. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +----------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Trigger(context.Context, *TriggerRequest, ...dcerpc.CallOption) (*TriggerResponse, error) // The R_WinsDoStaticInit method performs static initialization of a WINS database by // registering the names specified in a data file. // // Return Values: A 32 bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. Any other return value is a Win32 error code as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +-------------------------------------+----------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------------------+----------------------------------------------------------------------+ // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000FA2 ERROR_STATIC_INIT_FAILED | An error occurred during static initialization of the database file. | // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +-------------------------------------+----------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoStaticInit(context.Context, *DoStaticInitRequest, ...dcerpc.CallOption) (*DoStaticInitResponse, error) // The R_WinsDoScavenging method queues a scavenging request on the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoScavenging(context.Context, *DoScavengingRequest, ...dcerpc.CallOption) (*DoScavengingResponse, error) // The R_WinsGetDbRecs method returns the records whose version numbers are within a // specified range and that are owned by a specified WINS server. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation finished // successfully. Any nonzero value is a Win32 error code, as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetDBRecords(context.Context, *GetDBRecordsRequest, ...dcerpc.CallOption) (*GetDBRecordsResponse, error) // The R_WinsTerm method sends a termination signal to the WINS process on a target // WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Terminate(context.Context, *TerminateRequest, ...dcerpc.CallOption) (*TerminateResponse, error) // The R_WinsBackup method backs up the WINS database to a specified directory. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Any nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned. // // +--------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+----------------------------------------------------------------------------------+ // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA4 ERROR_FULL_BACKUP | The backup failed. Check the directory to which you are backing up the database. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Backup(context.Context, *BackupRequest, ...dcerpc.CallOption) (*BackupResponse, error) // The R_WinsDelDbRecs method deletes the records whose version numbers are within a // specified range and that are owned by a specified WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Any nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DeleteDBRecords(context.Context, *DeleteDBRecordsRequest, ...dcerpc.CallOption) (*DeleteDBRecordsResponse, error) // The R_WinsPullRange method pulls a range of records owned by a WINS server from another // WINS server, and replicates them within the target WINS server database.<8> // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. PullRange(context.Context, *PullRangeRequest, ...dcerpc.CallOption) (*PullRangeResponse, error) // The R_WinsSetPriorityClass method sets the priority class for the WINS process running // on the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. SetPriorityClass(context.Context, *SetPriorityClassRequest, ...dcerpc.CallOption) (*SetPriorityClassResponse, error) // The R_WinsResetCounters method resets the pull replication counters for all partners // of the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. ResetCounters(context.Context, *ResetCountersRequest, ...dcerpc.CallOption) (*ResetCountersResponse, error) // The R_WinsWorkerThdUpd method updates the number of threads that have been created // to serve NetBIOS requests. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. WorkerThreadUpdate(context.Context, *WorkerThreadUpdateRequest, ...dcerpc.CallOption) (*WorkerThreadUpdateResponse, error) // R_WinsGetNameAndAddr operation. GetNameAndAddr(context.Context, *GetNameAndAddrRequest, ...dcerpc.CallOption) (*GetNameAndAddrResponse, error) // The R_WinsGetBrowserNames_Old method always returns an ERROR_WINS_INTERNAL error // code. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // The method always returns the ERROR_WINS_INTERNAL error code. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown. GetBrowserNamesOld(context.Context, *GetBrowserNamesOldRequest, ...dcerpc.CallOption) (*GetBrowserNamesOldResponse, error) // The R_WinsDeleteWins method deletes all the records owned by a particular WINS server // from the target WINS server database. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DeleteWINS(context.Context, *DeleteWINSRequest, ...dcerpc.CallOption) (*DeleteWINSResponse, error) // The R_WinsSetFlags method always returns ERROR_SUCCESS. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. // // +--------------------------+--------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------+--------------------------+ // +--------------------------+--------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------+--------------------------+ // // Exceptions Thrown: No exceptions are thrown. SetFlags(context.Context, *SetFlagsRequest, ...dcerpc.CallOption) (*SetFlagsResponse, error) // The R_WinsGetBrowserNames method retrieves browser name records from the target WINS // server database. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetBrowserNames(context.Context, *GetBrowserNamesRequest, ...dcerpc.CallOption) (*GetBrowserNamesResponse, error) // The R_WinsGetDbRecsByName method retrieves records matching an owner address from // a target WINS server database starting at a specified cursor. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +-----------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------+--------------------------------------------------+ // +-----------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000FA5 ERROR_REC_NON_EXISTENT | No records were found matching the given data. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +-----------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetDBRecordsByName(context.Context, *GetDBRecordsByNameRequest, ...dcerpc.CallOption) (*GetDBRecordsByNameResponse, error) // The R_WinsStatusNew method retrieves configuration settings and statistics from a // WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. StatusNew(context.Context, *StatusNewRequest, ...dcerpc.CallOption) (*StatusNewResponse, error) // The R_WinsStatusWHdl method retrieves various configuration settings and the statistics // of a WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // The behavior of this method is the same as that of the R_WinsStatusNew method (section // 3.1.4.20). StatusW(context.Context, *StatusWRequest, ...dcerpc.CallOption) (*StatusWResponse, error) // The R_WinsDoScavengingNew method requests a specific scavenging operation on the // target WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoScavengingNew(context.Context, *DoScavengingNewRequest, ...dcerpc.CallOption) (*DoScavengingNewResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error }
winsif interface.
func NewWinsifClient ¶
type WinsifServer ¶
type WinsifServer interface { // The R_WinsRecordAction method inserts, modifies, deletes, releases, or queries a // name record from the WINS database. // // Return Values: A 32-bit unsigned integer value that indicates return status. A return // value of ERROR_SUCCESS indicates that the operation was completed successfully. Otherwise, // the TimeStamp member SHOULD contain one of the following Win32 error codes, as specified // in [MS-ERREF]: // // +-----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------+----------------------------------------------------------------------------------+ // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA5 ERROR_REC_NON_EXISTENT | The name does not exist in the database. This error is returned only if a | // | | requested WINSINTF_E_QUERY operation is not successful. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +-----------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. RecordAction(context.Context, *RecordActionRequest) (*RecordActionResponse, error) // The R_WinsStatus method retrieves configuration settings and statistics from a WINS // server. // // Return Values: A 32-bit unsigned integer value that indicates return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Otherwise, this return value is a Win32 error code, as specified in [MS-ERREF]. The // following Win32 error codes can be returned. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Status(context.Context, *StatusRequest) (*StatusResponse, error) // The R_WinsTrigger method triggers a replication operation between a target WINS server // and another WINS server. // // Return Values: A 32 bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. Any other return value is a Win32 error code, as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+----------------------------------------------------------------------------------+ // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA6 ERROR_RPL_NOT_ALLOWED | The WINS server requested for the replication operation is requested is not | // | | configured as a replication partner for the target WINS server. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +----------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Trigger(context.Context, *TriggerRequest) (*TriggerResponse, error) // The R_WinsDoStaticInit method performs static initialization of a WINS database by // registering the names specified in a data file. // // Return Values: A 32 bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. Any other return value is a Win32 error code as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +-------------------------------------+----------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------------------+----------------------------------------------------------------------+ // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000FA2 ERROR_STATIC_INIT_FAILED | An error occurred during static initialization of the database file. | // +-------------------------------------+----------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +-------------------------------------+----------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoStaticInit(context.Context, *DoStaticInitRequest) (*DoStaticInitResponse, error) // The R_WinsDoScavenging method queues a scavenging request on the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoScavenging(context.Context, *DoScavengingRequest) (*DoScavengingResponse, error) // The R_WinsGetDbRecs method returns the records whose version numbers are within a // specified range and that are owned by a specified WINS server. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation finished // successfully. Any nonzero value is a Win32 error code, as specified in [MS-ERREF]. // The following Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetDBRecords(context.Context, *GetDBRecordsRequest) (*GetDBRecordsResponse, error) // The R_WinsTerm method sends a termination signal to the WINS process on a target // WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Terminate(context.Context, *TerminateRequest) (*TerminateResponse, error) // The R_WinsBackup method backs up the WINS database to a specified directory. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Any nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned. // // +--------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+----------------------------------------------------------------------------------+ // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000FA4 ERROR_FULL_BACKUP | The backup failed. Check the directory to which you are backing up the database. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+----------------------------------------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Backup(context.Context, *BackupRequest) (*BackupResponse, error) // The R_WinsDelDbRecs method deletes the records whose version numbers are within a // specified range and that are owned by a specified WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // Any nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DeleteDBRecords(context.Context, *DeleteDBRecordsRequest) (*DeleteDBRecordsResponse, error) // The R_WinsPullRange method pulls a range of records owned by a WINS server from another // WINS server, and replicates them within the target WINS server database.<8> // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. PullRange(context.Context, *PullRangeRequest) (*PullRangeResponse, error) // The R_WinsSetPriorityClass method sets the priority class for the WINS process running // on the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. SetPriorityClass(context.Context, *SetPriorityClassRequest) (*SetPriorityClassResponse, error) // The R_WinsResetCounters method resets the pull replication counters for all partners // of the target WINS server. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. ResetCounters(context.Context, *ResetCountersRequest) (*ResetCountersResponse, error) // The R_WinsWorkerThdUpd method updates the number of threads that have been created // to serve NetBIOS requests. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. WorkerThreadUpdate(context.Context, *WorkerThreadUpdateRequest) (*WorkerThreadUpdateResponse, error) // R_WinsGetNameAndAddr operation. GetNameAndAddr(context.Context, *GetNameAndAddrRequest) (*GetNameAndAddrResponse, error) // The R_WinsGetBrowserNames_Old method always returns an ERROR_WINS_INTERNAL error // code. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // The method always returns the ERROR_WINS_INTERNAL error code. // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown. GetBrowserNamesOld(context.Context, *GetBrowserNamesOldRequest) (*GetBrowserNamesOldResponse, error) // The R_WinsDeleteWins method deletes all the records owned by a particular WINS server // from the target WINS server database. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DeleteWINS(context.Context, *DeleteWINSRequest) (*DeleteWINSResponse, error) // The R_WinsSetFlags method always returns ERROR_SUCCESS. // // Return Values: A 32-bit unsigned integer value that indicates the return status. // A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed // successfully. // // +--------------------------+--------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------+--------------------------+ // +--------------------------+--------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------+--------------------------+ // // Exceptions Thrown: No exceptions are thrown. SetFlags(context.Context, *SetFlagsRequest) (*SetFlagsResponse, error) // The R_WinsGetBrowserNames method retrieves browser name records from the target WINS // server database. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetBrowserNames(context.Context, *GetBrowserNamesRequest) (*GetBrowserNamesResponse, error) // The R_WinsGetDbRecsByName method retrieves records matching an owner address from // a target WINS server database starting at a specified cursor. // // Return Values: A 32 bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +-----------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------+--------------------------------------------------+ // +-----------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000FA5 ERROR_REC_NON_EXISTENT | No records were found matching the given data. | // +-----------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +-----------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. GetDBRecordsByName(context.Context, *GetDBRecordsByNameRequest) (*GetDBRecordsByNameResponse, error) // The R_WinsStatusNew method retrieves configuration settings and statistics from a // WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. StatusNew(context.Context, *StatusNewRequest) (*StatusNewResponse, error) // The R_WinsStatusWHdl method retrieves various configuration settings and the statistics // of a WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+--------------------------------------------------+ // +--------------------------------+--------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+--------------------------------------------------+ // | 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. | // +--------------------------------+--------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+--------------------------------------------------+ // // The behavior of this method is the same as that of the R_WinsStatusNew method (section // 3.1.4.20). StatusW(context.Context, *StatusWRequest) (*StatusWResponse, error) // The R_WinsDoScavengingNew method requests a specific scavenging operation on the // target WINS server. // // Return Values: A 32-bit unsigned integer that indicates the return status. A return // value of ERROR_SUCCESS (0x00000000) indicates that the operation completed successfully. // A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following // Win32 error codes can be returned: // // +--------------------------------+-------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+-------------------------------------------------+ // +--------------------------------+-------------------------------------------------+ // | 0x00000000 ERROR_SUCCESS | The call was successful. | // +--------------------------------+-------------------------------------------------+ // | 0x00000005 ERROR_ACCESS_DENIED | The caller doesn't have sufficient permissions. | // +--------------------------------+-------------------------------------------------+ // // Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. DoScavengingNew(context.Context, *DoScavengingNewRequest) (*DoScavengingNewResponse, error) }
winsif server interface.
type WorkerThreadUpdateRequest ¶
type WorkerThreadUpdateRequest struct { // NewNoOfNbtThds: New value for the number of worker threads that have been created // for NetBIOS requests. NewNumberOfNbtThreads uint32 `idl:"name:NewNoOfNbtThds" json:"new_number_of_nbt_threads"` }
WorkerThreadUpdateRequest structure represents the R_WinsWorkerThdUpd operation request
func (*WorkerThreadUpdateRequest) MarshalNDR ¶
func (*WorkerThreadUpdateRequest) UnmarshalNDR ¶
type WorkerThreadUpdateResponse ¶
type WorkerThreadUpdateResponse struct { // Return: The R_WinsWorkerThdUpd return value. Return uint32 `idl:"name:Return" json:"return"` }
WorkerThreadUpdateResponse structure represents the R_WinsWorkerThdUpd operation response