00001 /* header auto-generated by pidl */ 00002 00003 #include "librpc/gen_ndr/srvsvc.h" 00004 #ifndef _HEADER_wkssvc 00005 #define _HEADER_wkssvc 00006 00007 struct wkssvc_NetWkstaInfo100 { 00008 uint16_t platform_id; 00009 const char *server_name;/* [unique,charset(UTF16)] */ 00010 const char *domain_name;/* [unique,charset(UTF16)] */ 00011 uint32_t version_major; 00012 uint32_t version_minor; 00013 }; 00014 00015 struct wkssvc_NetWkstaInfo101 { 00016 uint16_t platform_id; 00017 const char *server_name;/* [unique,charset(UTF16)] */ 00018 const char *domain_name;/* [unique,charset(UTF16)] */ 00019 uint32_t version_major; 00020 uint32_t version_minor; 00021 const char *lan_root;/* [unique,charset(UTF16)] */ 00022 }; 00023 00024 struct wkssvc_NetWkstaInfo102 { 00025 uint16_t platform_id; 00026 const char *server_name;/* [unique,charset(UTF16)] */ 00027 const char *domain_name;/* [unique,charset(UTF16)] */ 00028 uint32_t version_major; 00029 uint32_t version_minor; 00030 const char *lan_root;/* [unique,charset(UTF16)] */ 00031 uint32_t logged_on_users; 00032 }; 00033 00034 struct wkssvc_NetWkstaInfo502 { 00035 uint32_t char_wait; 00036 uint32_t collection_time; 00037 uint32_t maximum_collection_count; 00038 uint32_t keep_connection; 00039 uint32_t max_commands; 00040 uint32_t session_timeout; 00041 uint32_t size_char_buf; 00042 uint32_t max_threads; 00043 uint32_t lock_quota; 00044 uint32_t lock_increment; 00045 uint32_t lock_maximum; 00046 uint32_t pipe_increment; 00047 uint32_t pipe_maximum; 00048 uint32_t cache_file_timeout; 00049 uint32_t dormant_file_limit; 00050 uint32_t read_ahead_throughput; 00051 uint32_t num_mailslot_buffers; 00052 uint32_t num_srv_announce_buffers; 00053 uint32_t max_illegal_dgram_events; 00054 uint32_t dgram_event_reset_freq; 00055 uint32_t log_election_packets; 00056 uint32_t use_opportunistic_locking; 00057 uint32_t use_unlock_behind; 00058 uint32_t use_close_behind; 00059 uint32_t buf_named_pipes; 00060 uint32_t use_lock_read_unlock; 00061 uint32_t utilize_nt_caching; 00062 uint32_t use_raw_read; 00063 uint32_t use_raw_write; 00064 uint32_t use_write_raw_data; 00065 uint32_t use_encryption; 00066 uint32_t buf_files_deny_write; 00067 uint32_t buf_read_only_files; 00068 uint32_t force_core_create_mode; 00069 uint32_t use_512_byte_max_transfer; 00070 }; 00071 00072 struct wkssvc_NetWkstaInfo1010 { 00073 uint32_t char_wait; 00074 }; 00075 00076 struct wkssvc_NetWkstaInfo1011 { 00077 uint32_t collection_time; 00078 }; 00079 00080 struct wkssvc_NetWkstaInfo1012 { 00081 uint32_t maximum_collection_count; 00082 }; 00083 00084 struct wkssvc_NetWkstaInfo1013 { 00085 uint32_t keep_connection; 00086 }; 00087 00088 struct wkssvc_NetWkstaInfo1018 { 00089 uint32_t session_timeout; 00090 }; 00091 00092 struct wkssvc_NetWkstaInfo1023 { 00093 uint32_t size_char_buf; 00094 }; 00095 00096 struct wkssvc_NetWkstaInfo1027 { 00097 uint32_t errorlog_sz; 00098 }; 00099 00100 struct wkssvc_NetWkstaInfo1033 { 00101 uint32_t max_threads; 00102 }; 00103 00104 union wkssvc_NetWkstaInfo { 00105 struct wkssvc_NetWkstaInfo100 *info100;/* [unique,case(100)] */ 00106 struct wkssvc_NetWkstaInfo101 *info101;/* [unique,case(101)] */ 00107 struct wkssvc_NetWkstaInfo102 *info102;/* [unique,case(102)] */ 00108 struct wkssvc_NetWkstaInfo502 *info502;/* [unique,case(502)] */ 00109 struct wkssvc_NetWkstaInfo1010 *info1010;/* [unique,case(1010)] */ 00110 struct wkssvc_NetWkstaInfo1011 *info1011;/* [unique,case(1011)] */ 00111 struct wkssvc_NetWkstaInfo1012 *info1012;/* [unique,case(1012)] */ 00112 struct wkssvc_NetWkstaInfo1013 *info1013;/* [unique,case(1013)] */ 00113 struct wkssvc_NetWkstaInfo1018 *info1018;/* [unique,case(1018)] */ 00114 struct wkssvc_NetWkstaInfo1023 *info1023;/* [unique,case(1023)] */ 00115 struct wkssvc_NetWkstaInfo1027 *info1027;/* [unique,case(1027)] */ 00116 struct wkssvc_NetWkstaInfo1033 *info1033;/* [unique,case(1033)] */ 00117 }; 00118 00119 struct USER_INFO_0 { 00120 const char *user;/* [unique,charset(UTF16)] */ 00121 }; 00122 00123 struct USER_INFO_0_CONTAINER { 00124 uint32_t entries_read; 00125 struct USER_INFO_0 *user0;/* [unique,size_is(entries_read)] */ 00126 }; 00127 00128 struct USER_INFO_1 { 00129 const char *user_name;/* [unique,charset(UTF16)] */ 00130 const char *logon_domain;/* [unique,charset(UTF16)] */ 00131 const char *other_domains;/* [unique,charset(UTF16)] */ 00132 const char *logon_server;/* [unique,charset(UTF16)] */ 00133 }; 00134 00135 struct USER_INFO_1_CONTAINER { 00136 uint32_t entries_read; 00137 struct USER_INFO_1 *user1;/* [unique,size_is(entries_read)] */ 00138 }; 00139 00140 union WKS_USER_ENUM_UNION { 00141 struct USER_INFO_0_CONTAINER *user0;/* [unique,case(0)] */ 00142 struct USER_INFO_1_CONTAINER *user1;/* [unique,case] */ 00143 }/* [switch_type(uint32)] */; 00144 00145 struct wkssvc_NetWkstaTransportInfo0 { 00146 uint32_t quality_of_service; 00147 uint32_t vc_count; 00148 const char *name;/* [unique,charset(UTF16)] */ 00149 const char *address;/* [unique,charset(UTF16)] */ 00150 uint32_t wan_link; 00151 }; 00152 00153 struct wkssvc_NetWkstaTransportCtr0 { 00154 uint32_t count; 00155 struct wkssvc_NetWkstaTransportInfo0 *array;/* [unique,size_is(count)] */ 00156 }; 00157 00158 union wkssvc_NetWkstaTransportCtr { 00159 struct wkssvc_NetWkstaTransportCtr0 *ctr0;/* [unique,case(0)] */ 00160 }; 00161 00162 struct wkssvc_PasswordBuffer { 00163 uint8_t data[524]; 00164 }; 00165 00166 /* bitmap wkssvc_joinflags */ 00167 #define WKSSVC_JOIN_FLAGS_DEFER_SPN ( 0x00000100 ) 00168 #define WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED ( 0x00000080 ) 00169 #define WKSSVC_JOIN_FLAGS_JOIN_UNSECURE ( 0x00000040 ) 00170 #define WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED ( 0x00000020 ) 00171 #define WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE ( 0x00000010 ) 00172 #define WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE ( 0x00000004 ) 00173 #define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 ) 00174 #define WKSSVC_JOIN_FLAGS_JOIN_TYPE ( 0x00000001 ) 00175 00176 /* bitmap wkssvc_renameflags */ 00177 #define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 ) 00178 00179 00180 struct wkssvc_NetWkstaGetInfo { 00181 struct { 00182 const char *server_name;/* [unique,charset(UTF16)] */ 00183 uint32_t level; 00184 } in; 00185 00186 struct { 00187 union wkssvc_NetWkstaInfo *info;/* [ref,switch_is(level)] */ 00188 WERROR result; 00189 } out; 00190 00191 }; 00192 00193 00194 struct wkssvc_NetWkstaSetInfo { 00195 struct { 00196 const char *server_name;/* [unique,charset(UTF16)] */ 00197 uint32_t level; 00198 union wkssvc_NetWkstaInfo *info;/* [ref,switch_is(level)] */ 00199 uint32_t *parm_error;/* [ref] */ 00200 } in; 00201 00202 struct { 00203 uint32_t *parm_error;/* [ref] */ 00204 WERROR result; 00205 } out; 00206 00207 }; 00208 00209 00210 struct wkssvc_NetWkstaEnumUsers { 00211 struct { 00212 const char *server_name;/* [unique,charset(UTF16)] */ 00213 uint32_t level; 00214 union WKS_USER_ENUM_UNION *users;/* [ref] */ 00215 uint32_t prefmaxlen; 00216 uint32_t *resumehandle;/* [ref] */ 00217 } in; 00218 00219 struct { 00220 union WKS_USER_ENUM_UNION *users;/* [ref] */ 00221 uint32_t *entriesread;/* [unique] */ 00222 uint32_t *totalentries;/* [unique] */ 00223 uint32_t *resumehandle;/* [ref] */ 00224 WERROR result; 00225 } out; 00226 00227 }; 00228 00229 00230 struct WKSSVC_NETRWKSTAUSERGETINFO { 00231 struct { 00232 WERROR result; 00233 } out; 00234 00235 }; 00236 00237 00238 struct WKSSVC_NETRWKSTAUSERSETINFO { 00239 struct { 00240 WERROR result; 00241 } out; 00242 00243 }; 00244 00245 00246 struct wkssvc_NetWkstaTransportEnum { 00247 struct { 00248 const char *server_name;/* [unique,charset(UTF16)] */ 00249 uint32_t *level;/* [ref] */ 00250 union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */ 00251 uint32_t max_buffer; 00252 uint32_t *resume_handle;/* [ref] */ 00253 } in; 00254 00255 struct { 00256 uint32_t *level;/* [ref] */ 00257 union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */ 00258 uint32_t *totalentries;/* [unique] */ 00259 uint32_t *resume_handle;/* [ref] */ 00260 WERROR result; 00261 } out; 00262 00263 }; 00264 00265 00266 struct WKSSVC_NETRWKSTATRANSPORTADD { 00267 struct { 00268 WERROR result; 00269 } out; 00270 00271 }; 00272 00273 00274 struct WKSSVC_NETRWKSTATRANSPORTDEL { 00275 struct { 00276 WERROR result; 00277 } out; 00278 00279 }; 00280 00281 00282 struct WKSSVC_NETRUSEADD { 00283 struct { 00284 WERROR result; 00285 } out; 00286 00287 }; 00288 00289 00290 struct WKSSVC_NETRUSEGETINFO { 00291 struct { 00292 WERROR result; 00293 } out; 00294 00295 }; 00296 00297 00298 struct WKSSVC_NETRUSEDEL { 00299 struct { 00300 WERROR result; 00301 } out; 00302 00303 }; 00304 00305 00306 struct WKSSVC_NETRUSEENUM { 00307 struct { 00308 WERROR result; 00309 } out; 00310 00311 }; 00312 00313 00314 struct WKSSVC_NETRMESSAGEBUFFERSEND { 00315 struct { 00316 WERROR result; 00317 } out; 00318 00319 }; 00320 00321 00322 struct WKSSVC_NETRWORKSTATIONSTATISTICSGET { 00323 struct { 00324 WERROR result; 00325 } out; 00326 00327 }; 00328 00329 00330 struct WKSSVC_NETRLOGONDOMAINNAMEADD { 00331 struct { 00332 WERROR result; 00333 } out; 00334 00335 }; 00336 00337 00338 struct WKSSVC_NETRLOGONDOMAINNAMEDEL { 00339 struct { 00340 WERROR result; 00341 } out; 00342 00343 }; 00344 00345 00346 struct WKSSVC_NETRJOINDOMAIN { 00347 struct { 00348 WERROR result; 00349 } out; 00350 00351 }; 00352 00353 00354 struct WKSSVC_NETRUNJOINDOMAIN { 00355 struct { 00356 WERROR result; 00357 } out; 00358 00359 }; 00360 00361 00362 struct WKSSVC_NETRRENAMEMACHINEINDOMAIN { 00363 struct { 00364 WERROR result; 00365 } out; 00366 00367 }; 00368 00369 00370 struct WKSSVC_NETRVALIDATENAME { 00371 struct { 00372 WERROR result; 00373 } out; 00374 00375 }; 00376 00377 00378 struct WKSSVC_NETRGETJOININFORMATION { 00379 struct { 00380 WERROR result; 00381 } out; 00382 00383 }; 00384 00385 00386 struct WKSSVC_NETRGETJOINABLEOUS { 00387 struct { 00388 WERROR result; 00389 } out; 00390 00391 }; 00392 00393 00394 struct wkssvc_NetrJoinDomain2 { 00395 struct { 00396 const char *server_name;/* [unique,charset(UTF16)] */ 00397 const char *domain_name;/* [ref,charset(UTF16)] */ 00398 const char *account_name;/* [unique,charset(UTF16)] */ 00399 const char *admin_account;/* [unique,charset(UTF16)] */ 00400 struct wkssvc_PasswordBuffer *encrypted_password;/* [unique] */ 00401 uint32_t join_flags; 00402 } in; 00403 00404 struct { 00405 WERROR result; 00406 } out; 00407 00408 }; 00409 00410 00411 struct wkssvc_NetrUnjoinDomain2 { 00412 struct { 00413 const char *server_name;/* [unique,charset(UTF16)] */ 00414 const char *account;/* [unique,charset(UTF16)] */ 00415 struct wkssvc_PasswordBuffer *encrypted_password;/* [unique] */ 00416 uint32_t unjoin_flags; 00417 } in; 00418 00419 struct { 00420 WERROR result; 00421 } out; 00422 00423 }; 00424 00425 00426 struct wkssvc_NetrRenameMachineInDomain2 { 00427 struct { 00428 const char *server_name;/* [unique,charset(UTF16)] */ 00429 const char *NewMachineName;/* [unique,charset(UTF16)] */ 00430 const char *Account;/* [unique,charset(UTF16)] */ 00431 struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */ 00432 uint32_t RenameOptions; 00433 } in; 00434 00435 struct { 00436 WERROR result; 00437 } out; 00438 00439 }; 00440 00441 00442 struct WKSSVC_NETRVALIDATENAME2 { 00443 struct { 00444 WERROR result; 00445 } out; 00446 00447 }; 00448 00449 00450 struct WKSSVC_NETRGETJOINABLEOUS2 { 00451 struct { 00452 WERROR result; 00453 } out; 00454 00455 }; 00456 00457 00458 struct wkssvc_NetrAddAlternateComputerName { 00459 struct { 00460 const char *server_name;/* [unique,charset(UTF16)] */ 00461 const char *NewAlternateMachineName;/* [unique,charset(UTF16)] */ 00462 const char *Account;/* [unique,charset(UTF16)] */ 00463 struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */ 00464 uint32_t Reserved; 00465 } in; 00466 00467 struct { 00468 WERROR result; 00469 } out; 00470 00471 }; 00472 00473 00474 struct wkssvc_NetrRemoveAlternateComputerName { 00475 struct { 00476 const char *server_name;/* [unique,charset(UTF16)] */ 00477 const char *AlternateMachineNameToRemove;/* [unique,charset(UTF16)] */ 00478 const char *Account;/* [unique,charset(UTF16)] */ 00479 struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */ 00480 uint32_t Reserved; 00481 } in; 00482 00483 struct { 00484 WERROR result; 00485 } out; 00486 00487 }; 00488 00489 00490 struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME { 00491 struct { 00492 WERROR result; 00493 } out; 00494 00495 }; 00496 00497 00498 struct WKSSVC_NETRENUMERATECOMPUTERNAMES { 00499 struct { 00500 WERROR result; 00501 } out; 00502 00503 }; 00504 00505 #endif /* _HEADER_wkssvc */