6 uuid("45f52c28-7f9f-101a-b52b-08002b2efabe"),
8 helpstring("WINS Administration Interface1"),
9 pointer_default(unique)
21 WINSIF_ACTION_INSERT
= 0x0000,
22 WINSIF_ACTION_DELETE
= 0x0001,
23 WINSIF_ACTION_RELEASE
= 0x0002,
24 WINSIF_ACTION_MODIFY
= 0x0003,
25 WINSIF_ACTION_QUERY
= 0x0004
29 WINSIF_RECORD_UNIQUE_NAME
= 0x0000,
30 WINSIF_RECORD_GROUP_NAME
= 0x0001,
31 WINSIF_RECORD_SGROUP_NAME
= 0x0002,
32 WINSIF_RECORD_MHOMED_NAME
= 0x0003
35 typedef [enum8bit
] enum {
41 typedef [v1_enum] enum {
42 WINSIF_RECORD_ACTIVE
= 0x00000000,
43 WINSIF_RECORD_RELEASED
= 0x00000001,
44 WINSIF_RECORD_TOMBSTONE
= 0x00000002,
45 WINSIF_RECORD_DELETED
= 0x00000003
51 [value
(name?
16:0)] uint32 name_len
;
52 winsif_RecordType record_type
;
53 uint32 num_of_addresses
;
54 [size_is(num_of_addresses
)] winsif_Address
*addresses
;
55 winsif_Address address
;
57 winsif_NodeType node_type
;
58 ipv4address owner_address
;
59 winsif_RecordState record_state
;
62 } winsif_RecordAction
;
64 WERROR winsif_WinsRecordAction
(
65 [in,out,ref] winsif_RecordAction
**record_action
71 winsif_Address address
;
73 } winsif_AddressVersionMap
;
76 WINSIF_PRIORITY_NORMAL
= 0x0000,
77 WINSIF_PRIORITY_HIGH
= 0x0001
78 } winsif_PriorityClass
;
81 winsif_Address address
;
82 uint32 num_replications
;
83 uint32 num_communication_failures
;
87 uint32 num_unique_registrations
;
88 uint32 num_group_registrations
;
90 uint32 num_successful_queries
;
91 uint32 num_failed_queries
;
92 uint32 num_unique_refreshes
;
93 uint32 num_group_refreshes
;
95 uint32 num_successful_releases
;
96 uint32 num_failed_releases
;
97 uint32 num_unique_conflicts
;
98 uint32 num_group_conflicts
;
99 } winsif_StatCounters
;
102 time_t wins_start_time
;
103 time_t last_periodic_scavenging
;
104 time_t last_triggered_scavenging
;
105 time_t last_tombstone_scavenging
;
106 time_t last_verification_scavenging
;
107 time_t last_periodic_pull_replication
;
108 time_t last_triggered_pull_replication
;
109 time_t ignore_last_ntrepl
;
110 time_t ignore_last_actrepl
;
112 time_t counter_reset
;
113 } winsif_StatTimeStamps
;
116 winsif_StatCounters counters
;
117 winsif_StatTimeStamps time_stamps
;
119 [size_is(num_partners
)] winsif_ReplCounter
*partners
;
124 winsif_AddressVersionMap address_version_maps
[25];
125 hyper my_max_version_number
;
126 uint32 refresh_interval
;
127 uint32 tombstone_interval
;
128 uint32 tombstone_timeout
;
129 uint32 verify_interval
;
130 winsif_PriorityClass prioritiy_class
;
131 uint32 num_worker_threads
;
136 WINSIF_STATUS_CMD_ADDRESS_VERSION_MAP
= 0x0000,
137 WINSIF_STATUS_CMD_CONFIG
= 0x0001,
138 WINSIF_STATUS_CMD_STAT
= 0x0002,
139 WINSIF_STATUS_CMD_ALL_MAPS
= 0x0003
142 WERROR winsif_WinsStatus
(
143 [in] winsif_StatusCmd cmd
,
144 [in,out,ref] winsif_Results
*results
150 WINSIF_TRIGGER_PULL
= 0x0000,
151 WINSIF_TRIGGER_PUSH
= 0x0001,
152 WINSIF_TRIGGER_PUSH_PROP
= 0x0002
153 } winsif_TriggerType
;
155 WERROR winsif_WinsTrigger
(
156 [in,ref] winsif_Address
*owner_address
,
157 [in] winsif_TriggerType trigger_type
162 WERROR winsif_WinsDoStaticInit
(
163 [in,unique,string,charset
(UTF16
)] uint16
*data_file_path
,
164 [in] boolean32 delete_file
169 WERROR winsif_WinsDoScavenging
();
175 [size_is(num_records
)] winsif_RecordAction
*row
;
177 uint32 total_num_records
;
180 WERROR winsif_WinsGetDbRecs
(
181 [in,unique] winsif_Address
*owner_address
,
182 [in] hyper min_version_number
,
183 [in] hyper max_version_number
,
184 [out,ref] winsif_Records
*records
189 WERROR winsif_WinsTerm
(
190 [in] uint16 abrupt_termination
195 WERROR winsif_WinsBackup
(
196 [in,ref,string,charset
(DOS
)] uint8
*backup_path
,
197 [in] uint16 incremental
202 WERROR winsif_WinsDelDbRecs
(
203 [in,ref] winsif_Address
*owner_address
,
204 [in] hyper min_version_number
,
205 [in] hyper max_version_number
210 WERROR winsif_WinsPullRange
(
211 [in,ref] winsif_Address
*server_address
,
212 [in,ref] winsif_Address
*owner_address
,
213 [in] hyper min_version_number
,
214 [in] hyper max_version_number
219 WERROR winsif_WinsSetPriorityClass
(
220 [in] winsif_PriorityClass prioritiy_class
225 WERROR winsif_WinsResetCounters
();
229 WERROR winsif_WinsWorkerThreadUpdate
(
230 [in] uint32 num_of_threads
235 WERROR winsif_WinsGetNameAndAdd
(
236 [out,ref] winsif_Address
*server_address
,
238 * TODO: fix pidl to handles this completly correct...
239 * currently it gives a warning about a missing pointer
240 * and completely ignores the size_is(80).
242 [out,ref,string,charset
(DOS
),size_is(80)] uint8
*unc_name
249 [string,charset
(DOS
)] uint8
*name
;
250 } winsif_BrowserInfo
;
254 [size_is(num_entries
)] winsif_BrowserInfo
*info
;
255 } winsif_BrowserNames
;
257 WERROR winsif_WinsGetBrowserNames_Old
(
258 [out,ref] winsif_BrowserNames
*names
263 WERROR winsif_WinsDeleteWins
(
264 [in,ref] winsif_Address
*owner_address
269 WERROR winsif_WinsSetFlags
(
277 [string,charset
(DOS
)] uint8
*server_address
;
278 [string,charset
(DOS
)] uint8
*pipe_name
;
281 WERROR winsif_WinsGetBrowserNames
(
282 [in,ref] winsif_BindData
*server_handle
,
283 [out,ref] winsif_BrowserNames
*names
288 WERROR winsif_WinsGetDbRecsByName
(
289 [in,unique] winsif_Address
*owner_address
,
290 [in] boolean32 search_backward
,
291 [in,unique] wrepl_nbt_name
*name
,
292 [in,value
(name?
16:0),range(0,16)] uint32 name_len
,
293 [in] uint32 num_records_desired
,
294 [in] boolean32 only_statics
,
295 [out,ref] winsif_Records
*records
302 [size_is(num_owners
)] winsif_AddressVersionMap
*address_version_maps
;
303 hyper my_max_version_number
;
304 uint32 refresh_interval
;
305 uint32 tombstone_interval
;
306 uint32 tombstone_timeout
;
307 uint32 verify_interval
;
308 winsif_PriorityClass prioritiy_class
;
309 uint32 num_worker_threads
;
313 WERROR winsif_WinsStatusNew
(
314 [in] winsif_StatusCmd cmd
,
315 [out,ref] winsif_ResultsNew
*results
320 WERROR winsif_WinsStatusWHdl
(
321 [in,ref] winsif_BindData
*server_handle
,
322 [in] winsif_StatusCmd cmd
,
323 [in,out,ref] winsif_ResultsNew
*results
329 WINSIF_SCAVENGING_GENERAL
= 0x0000,
330 WINSIF_SCAVENGING_VERIFY
= 0x0001
331 } winsif_ScavengingOpcode
;
334 winsif_ScavengingOpcode opcode
;
337 } winsif_ScavengingRequest
;
339 WERROR winsif_WinsDoScanvengingNew
(
340 [in,ref] winsif_ScavengingRequest
*request