2 libnetapi interface definition
5 cpp_quote
("#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))")
6 cpp_quote
("#ifndef MAXSUBAUTHS")
7 cpp_quote
("#define MAXSUBAUTHS 15 /* max sub authorities in a SID */")
13 pointer_default(unique)
17 const int ERROR_MORE_DATA
= 234L;
19 [public] typedef [v1_enum] enum {
23 [public] typedef struct {
27 uint32 sub_auths
[MAXSUBAUTHS
];
30 /*******************************************/
32 /*******************************************/
34 typedef [public,bitmap32bit
] bitmap
{
35 NETSETUP_JOIN_DOMAIN
= 0x00000001,
36 NETSETUP_ACCT_CREATE
= 0x00000002,
37 NETSETUP_ACCT_DELETE
= 0x00000004,
38 NETSETUP_WIN9X_UPGRADE
= 0x00000010,
39 NETSETUP_DOMAIN_JOIN_IF_JOINED
= 0x00000020,
40 NETSETUP_JOIN_UNSECURE
= 0x00000040,
41 NETSETUP_MACHINE_PWD_PASSED
= 0x00000080,
42 NETSETUP_DEFER_SPN_SET
= 0x00000100,
43 NETSETUP_JOIN_DC_ACCOUNT
= 0x00000200,
44 NETSETUP_JOIN_WITH_NEW_NAME
= 0x00000400,
45 NETSETUP_INSTALL_INVOCATION
= 0x00040000,
46 NETSETUP_IGNORE_UNSUPPORTED_FLAGS
= 0x10000000
49 [nopush
,nopull
] NET_API_STATUS NetJoinDomain
(
50 [in,unique] string *server
,
51 [in,ref] string *domain
,
52 [in,unique] string *account_ou
,
53 [in,unique] string *account
,
54 [in,unique] string *password
,
55 [in] NetJoinFlags join_flags
58 /*******************************************/
60 /*******************************************/
62 [nopush
,nopull
] NET_API_STATUS NetUnjoinDomain
(
63 [in,unique] string *server_name
,
64 [in,unique] string *account
,
65 [in,unique] string *password
,
66 [in] NetJoinFlags unjoin_flags
69 /*******************************************/
70 /* NetGetJoinInformation */
71 /*******************************************/
74 NetSetupUnknownStatus
= 0,
76 NetSetupWorkgroupName
= 2,
77 NetSetupDomainName
= 3
78 } NETSETUP_JOIN_STATUS
;
80 [nopush
,nopull
] NET_API_STATUS NetGetJoinInformation
(
81 [in,unique] string *server_name
,
82 [out] string **name_buffer
,
83 [out] uint16
*name_type
86 /*******************************************/
87 /* NetGetJoinableOUs */
88 /*******************************************/
90 [nopush
,nopull
] NET_API_STATUS NetGetJoinableOUs
(
91 [in,unique] string *server_name
,
92 [in,ref] string *domain
,
93 [in,unique] string *account
,
94 [in,unique] string *password
,
95 [out] uint32
*ou_count
,
99 /*******************************************/
100 /* NetRenameMachineInDomain */
101 /*******************************************/
103 [nopush
,nopull
] NET_API_STATUS NetRenameMachineInDomain
(
104 [in] string server_name
,
105 [in] string new_machine_name
,
107 [in] string password
,
108 [in] uint32 rename_options
111 /*******************************************/
112 /* NetServerGetInfo */
113 /*******************************************/
115 [public] typedef struct {
116 uint32 sv100_platform_id
;
120 [public] typedef struct {
121 uint32 sv101_platform_id
;
123 uint32 sv101_version_major
;
124 uint32 sv101_version_minor
;
126 string sv101_comment
;
129 [public] typedef struct {
130 uint32 sv102_platform_id
;
132 uint32 sv102_version_major
;
133 uint32 sv102_version_minor
;
135 string sv102_comment
;
138 boolean8 sv102_hidden
;
139 uint32 sv102_announce
;
140 uint32 sv102_anndelta
;
141 uint32 sv102_licenses
;
142 string sv102_userpath
;
145 [public] typedef struct {
146 uint32 sv402_ulist_mtime
;
147 uint32 sv402_glist_mtime
;
148 uint32 sv402_alist_mtime
;
150 uint32 sv402_security
;
151 uint32 sv402_numadmin
;
152 uint32 sv402_lanmask
;
153 string sv402_guestacct
;
156 uint32 sv402_chdevjobs
;
157 uint32 sv402_connections
;
159 uint32 sv402_openfiles
;
160 uint32 sv402_sessopens
;
161 uint32 sv402_sessvcs
;
162 uint32 sv402_sessreqs
;
163 uint32 sv402_opensearch
;
164 uint32 sv402_activelocks
;
165 uint32 sv402_numreqbuf
;
166 uint32 sv402_sizreqbuf
;
167 uint32 sv402_numbigbuf
;
168 uint32 sv402_numfiletasks
;
169 uint32 sv402_alertsched
;
170 uint32 sv402_erroralert
;
171 uint32 sv402_logonalert
;
172 uint32 sv402_accessalert
;
173 uint32 sv402_diskalert
;
174 uint32 sv402_netioalert
;
175 uint32 sv402_maxauditsz
;
176 string sv402_srvheuristics
;
179 [public] typedef struct {
180 uint32 sv403_ulist_mtime
;
181 uint32 sv403_glist_mtime
;
182 uint32 sv403_alist_mtime
;
184 uint32 sv403_security
;
185 uint32 sv403_numadmin
;
186 uint32 sv403_lanmask
;
187 string sv403_guestacct
;
190 uint32 sv403_chdevjobs
;
191 uint32 sv403_connections
;
193 uint32 sv403_openfiles
;
194 uint32 sv403_sessopens
;
195 uint32 sv403_sessvcs
;
196 uint32 sv403_sessreqs
;
197 uint32 sv403_opensearch
;
198 uint32 sv403_activelocks
;
199 uint32 sv403_numreqbuf
;
200 uint32 sv403_sizreqbuf
;
201 uint32 sv403_numbigbuf
;
202 uint32 sv403_numfiletasks
;
203 uint32 sv403_alertsched
;
204 uint32 sv403_erroralert
;
205 uint32 sv403_logonalert
;
206 uint32 sv403_accessalert
;
207 uint32 sv403_diskalert
;
208 uint32 sv403_netioalert
;
209 uint32 sv403_maxauditsz
;
210 string sv403_srvheuristics
;
211 uint32 sv403_auditedevents
;
212 uint32 sv403_autoprofile
;
213 string sv403_autopath
;
216 [public] typedef struct {
217 uint32 sv502_sessopens
;
218 uint32 sv502_sessvcs
;
219 uint32 sv502_opensearch
;
220 uint32 sv502_sizreqbuf
;
221 uint32 sv502_initworkitems
;
222 uint32 sv502_maxworkitems
;
223 uint32 sv502_rawworkitems
;
224 uint32 sv502_irpstacksize
;
225 uint32 sv502_maxrawbuflen
;
226 uint32 sv502_sessusers
;
227 uint32 sv502_sessconns
;
228 uint32 sv502_maxpagedmemoryusage
;
229 uint32 sv502_maxnonpagedmemoryusage
;
230 boolean8 sv502_enablesoftcompat
;
231 boolean8 sv502_enableforcedlogoff
;
232 boolean8 sv502_timesource
;
233 boolean8 sv502_acceptdownlevelapis
;
234 boolean8 sv502_lmannounce
;
237 [public] typedef struct {
238 uint32 sv503_sessopens
;
239 uint32 sv503_sessvcs
;
240 uint32 sv503_opensearch
;
241 uint32 sv503_sizreqbuf
;
242 uint32 sv503_initworkitems
;
243 uint32 sv503_maxworkitems
;
244 uint32 sv503_rawworkitems
;
245 uint32 sv503_irpstacksize
;
246 uint32 sv503_maxrawbuflen
;
247 uint32 sv503_sessusers
;
248 uint32 sv503_sessconns
;
249 uint32 sv503_maxpagedmemoryusage
;
250 uint32 sv503_maxnonpagedmemoryusage
;
251 boolean8 sv503_enablesoftcompat
;
252 boolean8 sv503_enableforcedlogoff
;
253 boolean8 sv503_timesource
;
254 boolean8 sv503_acceptdownlevelapis
;
255 boolean8 sv503_lmannounce
;
257 uint32 sv503_maxcopyreadlen
;
258 uint32 sv503_maxcopywritelen
;
259 uint32 sv503_minkeepsearch
;
260 uint32 sv503_maxkeepsearch
;
261 uint32 sv503_minkeepcomplsearch
;
262 uint32 sv503_maxkeepcomplsearch
;
263 uint32 sv503_threadcountadd
;
264 uint32 sv503_numblockthreads
;
265 uint32 sv503_scavtimeout
;
266 uint32 sv503_minrcvqueue
;
267 uint32 sv503_minfreeworkitems
;
268 uint32 sv503_xactmemsize
;
269 uint32 sv503_threadpriority
;
270 uint32 sv503_maxmpxct
;
271 uint32 sv503_oplockbreakwait
;
272 uint32 sv503_oplockbreakresponsewait
;
273 boolean8 sv503_enableoplocks
;
274 boolean8 sv503_enableoplockforceclose
;
275 boolean8 sv503_enablefcbopens
;
276 boolean8 sv503_enableraw
;
277 boolean8 sv503_enablesharednetdrives
;
278 uint32 sv503_minfreeconnections
;
279 uint32 sv503_maxfreeconnections
;
282 [public] typedef struct {
283 uint32 sv599_sessopens
;
284 uint32 sv599_sessvcs
;
285 uint32 sv599_opensearch
;
286 uint32 sv599_sizreqbuf
;
287 uint32 sv599_initworkitems
;
288 uint32 sv599_maxworkitems
;
289 uint32 sv599_rawworkitems
;
290 uint32 sv599_irpstacksize
;
291 uint32 sv599_maxrawbuflen
;
292 uint32 sv599_sessusers
;
293 uint32 sv599_sessconns
;
294 uint32 sv599_maxpagedmemoryusage
;
295 uint32 sv599_maxnonpagedmemoryusage
;
296 boolean8 sv599_enablesoftcompat
;
297 boolean8 sv599_enableforcedlogoff
;
298 boolean8 sv599_timesource
;
299 boolean8 sv599_acceptdownlevelapis
;
300 boolean8 sv599_lmannounce
;
302 uint32 sv599_maxcopyreadlen
;
303 uint32 sv599_maxcopywritelen
;
304 uint32 sv599_minkeepsearch
;
305 uint32 sv599_maxkeepsearch
;
306 uint32 sv599_minkeepcomplsearch
;
307 uint32 sv599_maxkeepcomplsearch
;
308 uint32 sv599_threadcountadd
;
309 uint32 sv599_numblockthreads
;
310 uint32 sv599_scavtimeout
;
311 uint32 sv599_minrcvqueue
;
312 uint32 sv599_minfreeworkitems
;
313 uint32 sv599_xactmemsize
;
314 uint32 sv599_threadpriority
;
315 uint32 sv599_maxmpxct
;
316 uint32 sv599_oplockbreakwait
;
317 uint32 sv599_oplockbreakresponsewait
;
318 boolean8 sv599_enableoplocks
;
319 boolean8 sv599_enableoplockforceclose
;
320 boolean8 sv599_enablefcbopens
;
321 boolean8 sv599_enableraw
;
322 boolean8 sv599_enablesharednetdrives
;
323 uint32 sv599_minfreeconnections
;
324 uint32 sv599_maxfreeconnections
;
325 uint32 sv599_initsesstable
;
326 uint32 sv599_initconntable
;
327 uint32 sv599_initfiletable
;
328 uint32 sv599_initsearchtable
;
329 uint32 sv599_alertschedule
;
330 uint32 sv599_errorthreshold
;
331 uint32 sv599_networkerrorthreshold
;
332 uint32 sv599_diskspacethreshold
;
333 uint32 sv599_reserved
;
334 uint32 sv599_maxlinkdelay
;
335 uint32 sv599_minlinkthroughput
;
336 uint32 sv599_linkinfovalidtime
;
337 uint32 sv599_scavqosinfoupdatetime
;
338 uint32 sv599_maxworkitemidletime
;
341 [public] typedef struct {
342 uint32 sv598_maxrawworkitems
;
343 uint32 sv598_maxthreadsperqueue
;
344 uint32 sv598_producttype
;
345 uint32 sv598_serversize
;
346 uint32 sv598_connectionlessautodisc
;
347 uint32 sv598_sharingviolationretries
;
348 uint32 sv598_sharingviolationdelay
;
349 uint32 sv598_maxglobalopensearch
;
350 uint32 sv598_removeduplicatesearches
;
351 uint32 sv598_lockviolationoffset
;
352 uint32 sv598_lockviolationdelay
;
353 uint32 sv598_mdlreadswitchover
;
354 uint32 sv598_cachedopenlimit
;
355 uint32 sv598_otherqueueaffinity
;
356 boolean8 sv598_restrictnullsessaccess
;
357 boolean8 sv598_enablewfw311directipx
;
358 uint32 sv598_queuesamplesecs
;
359 uint32 sv598_balancecount
;
360 uint32 sv598_preferredaffinity
;
361 uint32 sv598_maxfreerfcbs
;
362 uint32 sv598_maxfreemfcbs
;
363 uint32 sv598_maxfreelfcbs
;
364 uint32 sv598_maxfreepagedpoolchunks
;
365 uint32 sv598_minpagedpoolchunksize
;
366 uint32 sv598_maxpagedpoolchunksize
;
367 boolean8 sv598_sendsfrompreferredprocessor
;
368 uint32 sv598_cacheddirectorylimit
;
369 uint32 sv598_maxcopylength
;
370 boolean8 sv598_enablecompression
;
371 boolean8 sv598_autosharewks
;
372 boolean8 sv598_autoshareserver
;
373 boolean8 sv598_enablesecuritysignature
;
374 boolean8 sv598_requiresecuritysignature
;
375 uint32 sv598_minclientbuffersize
;
376 GUID sv598_serverguid
;
377 uint32 sv598_ConnectionNoSessionsTimeout
;
378 uint32 sv598_IdleThreadTimeOut
;
379 boolean8 sv598_enableW9xsecuritysignature
;
380 boolean8 sv598_enforcekerberosreauthentication
;
381 boolean8 sv598_disabledos
;
382 uint32 sv598_lowdiskspaceminimum
;
383 boolean8 sv598_disablestrictnamechecking
;
386 [public] typedef struct {
387 string sv1005_comment
;
390 [public] typedef struct {
394 [public] typedef struct {
398 [public] typedef struct {
399 boolean8 sv1016_hidden
;
402 [public] typedef struct {
403 uint32 sv1017_announce
;
406 [public] typedef struct {
407 uint32 sv1018_anndelta
;
410 [public] typedef struct {
411 uint32 sv1501_sessopens
;
414 [public] typedef struct {
415 uint32 sv1502_sessvcs
;
418 [public] typedef struct {
419 uint32 sv1503_opensearch
;
422 [public] typedef struct {
423 uint32 sv1506_maxworkitems
;
426 [public] typedef struct {
427 uint32 sv1509_maxrawbuflen
;
430 [public] typedef struct {
431 uint32 sv1510_sessusers
;
434 [public] typedef struct {
435 uint32 sv1511_sessconns
;
438 [public] typedef struct {
439 uint32 sv1512_maxnonpagedmemoryusage
;
442 [public] typedef struct {
443 uint32 sv1513_maxpagedmemoryusage
;
446 [public] typedef struct {
447 boolean8 sv1514_enablesoftcompat
;
450 [public] typedef struct {
451 boolean8 sv1515_enableforcedlogoff
;
454 [public] typedef struct {
455 boolean8 sv1516_timesource
;
458 [public] typedef struct {
459 boolean8 sv1518_lmannounce
;
462 [public] typedef struct {
463 uint32 sv1520_maxcopyreadlen
;
466 [public] typedef struct {
467 uint32 sv1521_maxcopywritelen
;
470 [public] typedef struct {
471 uint32 sv1522_minkeepsearch
;
474 [public] typedef struct {
475 uint32 sv1523_maxkeepsearch
;
478 [public] typedef struct {
479 uint32 sv1524_minkeepcomplsearch
;
482 [public] typedef struct {
483 uint32 sv1525_maxkeepcomplsearch
;
486 [public] typedef struct {
487 uint32 sv1528_scavtimeout
;
490 [public] typedef struct {
491 uint32 sv1529_minrcvqueue
;
494 [public] typedef struct {
495 uint32 sv1530_minfreeworkitems
;
498 [public] typedef struct {
499 uint32 sv1533_maxmpxct
;
502 [public] typedef struct {
503 uint32 sv1534_oplockbreakwait
;
506 [public] typedef struct {
507 uint32 sv1535_oplockbreakresponsewait
;
510 [public] typedef struct {
511 boolean8 sv1536_enableoplocks
;
514 [public] typedef struct {
515 boolean8 sv1537_enableoplockforceclose
;
518 [public] typedef struct {
519 boolean8 sv1538_enablefcbopens
;
522 [public] typedef struct {
523 boolean8 sv1539_enableraw
;
526 [public] typedef struct {
527 boolean8 sv1540_enablesharednetdrives
;
530 [public] typedef struct {
531 boolean8 sv1541_minfreeconnections
;
534 [public] typedef struct {
535 boolean8 sv1542_maxfreeconnections
;
538 [public] typedef struct {
539 uint32 sv1543_initsesstable
;
542 [public] typedef struct {
543 uint32 sv1544_initconntable
;
546 [public] typedef struct {
547 uint32 sv1545_initfiletable
;
550 [public] typedef struct {
551 uint32 sv1546_initsearchtable
;
554 [public] typedef struct {
555 uint32 sv1547_alertschedule
;
558 [public] typedef struct {
559 uint32 sv1548_errorthreshold
;
562 [public] typedef struct {
563 uint32 sv1549_networkerrorthreshold
;
566 [public] typedef struct {
567 uint32 sv1550_diskspacethreshold
;
570 [public] typedef struct {
571 uint32 sv1552_maxlinkdelay
;
574 [public] typedef struct {
575 uint32 sv1553_minlinkthroughput
;
578 [public] typedef struct {
579 uint32 sv1554_linkinfovalidtime
;
582 [public] typedef struct {
583 uint32 sv1555_scavqosinfoupdatetime
;
586 [public] typedef struct {
587 uint32 sv1556_maxworkitemidletime
;
590 [public] typedef struct {
591 uint32 sv1557_maxrawworkitems
;
594 [public] typedef struct {
595 uint32 sv1560_producttype
;
598 [public] typedef struct {
599 uint32 sv1561_serversize
;
602 [public] typedef struct {
603 uint32 sv1562_connectionlessautodisc
;
606 [public] typedef struct {
607 uint32 sv1563_sharingviolationretries
;
610 [public] typedef struct {
611 uint32 sv1564_sharingviolationdelay
;
614 [public] typedef struct {
615 uint32 sv1565_maxglobalopensearch
;
618 [public] typedef struct {
619 boolean8 sv1566_removeduplicatesearches
;
622 [public] typedef struct {
623 uint32 sv1567_lockviolationretries
;
626 [public] typedef struct {
627 uint32 sv1568_lockviolationoffset
;
630 [public] typedef struct {
631 uint32 sv1569_lockviolationdelay
;
634 [public] typedef struct {
635 uint32 sv1570_mdlreadswitchover
;
638 [public] typedef struct {
639 uint32 sv1571_cachedopenlimit
;
642 [public] typedef struct {
643 uint32 sv1572_criticalthreads
;
646 [public] typedef struct {
647 uint32 sv1573_restrictnullsessaccess
;
650 [public] typedef struct {
651 uint32 sv1574_enablewfw311directipx
;
654 [public] typedef struct {
655 uint32 sv1575_otherqueueaffinity
;
658 [public] typedef struct {
659 uint32 sv1576_queuesamplesecs
;
662 [public] typedef struct {
663 uint32 sv1577_balancecount
;
666 [public] typedef struct {
667 uint32 sv1578_preferredaffinity
;
670 [public] typedef struct {
671 uint32 sv1579_maxfreerfcbs
;
674 [public] typedef struct {
675 uint32 sv1580_maxfreemfcbs
;
678 [public] typedef struct {
679 uint32 sv1581_maxfreemlcbs
;
682 [public] typedef struct {
683 uint32 sv1582_maxfreepagedpoolchunks
;
686 [public] typedef struct {
687 uint32 sv1583_minpagedpoolchunksize
;
690 [public] typedef struct {
691 uint32 sv1584_maxpagedpoolchunksize
;
694 [public] typedef struct {
695 boolean8 sv1585_sendsfrompreferredprocessor
;
698 [public] typedef struct {
699 uint32 sv1586_maxthreadsperqueue
;
702 [public] typedef struct {
703 uint32 sv1587_cacheddirectorylimit
;
706 [public] typedef struct {
707 uint32 sv1588_maxcopylength
;
710 [public] typedef struct {
711 uint32 sv1590_enablecompression
;
714 [public] typedef struct {
715 uint32 sv1591_autosharewks
;
718 [public] typedef struct {
719 uint32 sv1592_autosharewks
;
722 [public] typedef struct {
723 uint32 sv1593_enablesecuritysignature
;
726 [public] typedef struct {
727 uint32 sv1594_requiresecuritysignature
;
730 [public] typedef struct {
731 uint32 sv1595_minclientbuffersize
;
734 [public] typedef struct {
735 uint32 sv1596_ConnectionNoSessionsTimeout
;
738 [public] typedef struct {
739 uint32 sv1597_IdleThreadTimeOut
;
742 [public] typedef struct {
743 uint32 sv1598_enableW9xsecuritysignature
;
746 [public] typedef struct {
747 boolean8 sv1598_enforcekerberosreauthentication
;
750 [public] typedef struct {
751 boolean8 sv1598_disabledos
;
754 [public] typedef struct {
755 uint32 sv1598_lowdiskspaceminimum
;
758 [public] typedef struct {
759 boolean8 sv_1598_disablestrictnamechecking
;
762 [nopush
,nopull
] NET_API_STATUS NetServerGetInfo
(
763 [in,unique] string *server_name
,
768 /*******************************************/
769 /* NetServerSetInfo */
770 /*******************************************/
772 [nopush
,nopull
] NET_API_STATUS NetServerSetInfo
(
773 [in,unique] string *server_name
,
776 [out] uint32
*parm_error
779 /*******************************************/
781 /*******************************************/
783 [nopush
,nopull
] NET_API_STATUS NetGetDCName
(
784 [in,unique] string *server_name
,
785 [in,unique] string *domain_name
,
789 /*******************************************/
790 /* NetGetAnyDCName */
791 /*******************************************/
793 [nopush
,nopull
] NET_API_STATUS NetGetAnyDCName
(
794 [in,unique] string *server_name
,
795 [in,unique] string *domain_name
,
799 /*******************************************/
801 /*******************************************/
803 [public] typedef struct {
804 string domain_controller_name
;
805 string domain_controller_address
;
806 uint32 domain_controller_address_type
;
809 string dns_forest_name
;
812 string client_site_name
;
813 } DOMAIN_CONTROLLER_INFO
;
815 [nopush
,nopull
] NET_API_STATUS DsGetDcName
(
816 [in,unique] string *server_name
,
817 [in,ref] string *domain_name
,
818 [in,unique] GUID
*domain_guid
,
819 [in,unique] string *site_name
,
821 [out,ref] DOMAIN_CONTROLLER_INFO
**dc_info
824 /*******************************************/
826 /*******************************************/
828 [public] typedef struct {
833 const int USER_PRIV_GUEST
= 0;
834 const int USER_PRIV_USER
= 1;
835 const int USER_PRIV_ADMIN
= 2;
837 [public] typedef struct {
839 string usri1_password
;
840 uint32 usri1_password_age
;
842 string usri1_home_dir
;
843 string usri1_comment
;
845 string usri1_script_path
;
848 /* auth_flags in USER_INFO_2 */
850 const int AF_OP_PRINT
= 0x1;
851 const int AF_OP_COMM
= 0x2;
852 const int AF_OP_SERVER
= 0x4;
853 const int AF_OP_ACCOUNTS
= 0x8;
854 const int AF_SETTABLE_BITS
= (AF_OP_PRINT | AF_OP_COMM | AF_OP_SERVER | AF_OP_ACCOUNTS
);
856 const int USER_MAXSTORAGE_UNLIMITED
= (uint32_t
)-1L;
858 [public] typedef struct {
860 string usri2_password
;
861 uint32 usri2_password_age
;
863 string usri2_home_dir
;
864 string usri2_comment
;
866 string usri2_script_path
;
867 uint32 usri2_auth_flags
;
868 string usri2_full_name
;
869 string usri2_usr_comment
;
871 string usri2_workstations
;
872 uint32 usri2_last_logon
;
873 uint32 usri2_last_logoff
;
874 uint32 usri2_acct_expires
;
875 uint32 usri2_max_storage
;
876 uint32 usri2_units_per_week
;
877 uint8
*usri2_logon_hours
;
878 uint32 usri2_bad_pw_count
;
879 uint32 usri2_num_logons
;
880 string usri2_logon_server
;
881 uint32 usri2_country_code
;
882 uint32 usri2_code_page
;
885 [public] typedef struct {
887 uint32 usri3_password_age
;
889 string usri3_home_dir
;
890 string usri3_comment
;
892 string usri3_script_path
;
893 uint32 usri3_auth_flags
;
894 string usri3_full_name
;
895 string usri3_usr_comment
;
897 string usri3_workstations
;
898 uint32 usri3_last_logon
;
899 uint32 usri3_last_logoff
;
900 uint32 usri3_acct_expires
;
901 uint32 usri3_max_storage
;
902 uint32 usri3_units_per_week
;
903 uint8
*usri3_logon_hours
;
904 uint32 usri3_bad_pw_count
;
905 uint32 usri3_num_logons
;
906 string usri3_logon_server
;
907 uint32 usri3_country_code
;
908 uint32 usri3_code_page
;
909 uint32 usri3_user_id
;
910 uint32 usri3_primary_group_id
;
911 string usri3_profile
;
912 string usri3_home_dir_drive
;
913 uint32 usri3_password_expired
;
916 [public] typedef struct {
918 string usri4_password
;
919 uint32 usri4_password_age
;
921 string usri4_home_dir
;
922 string usri4_comment
;
924 string usri4_script_path
;
925 uint32 usri4_auth_flags
;
926 string usri4_full_name
;
927 string usri4_usr_comment
;
929 string usri4_workstations
;
930 uint32 usri4_last_logon
;
931 uint32 usri4_last_logoff
;
932 uint32 usri4_acct_expires
;
933 uint32 usri4_max_storage
;
934 uint32 usri4_units_per_week
;
935 uint8
*usri4_logon_hours
;
936 uint32 usri4_bad_pw_count
;
937 uint32 usri4_num_logons
;
938 string usri4_logon_server
;
939 uint32 usri4_country_code
;
940 uint32 usri4_code_page
;
941 domsid
*usri4_user_sid
;
942 uint32 usri4_primary_group_id
;
943 string usri4_profile
;
944 string usri4_home_dir_drive
;
945 uint32 usri4_password_expired
;
948 [public] typedef struct {
950 string usri10_comment
;
951 string usri10_usr_comment
;
952 string usri10_full_name
;
955 [public] typedef struct {
957 string usri11_comment
;
958 string usri11_usr_comment
;
959 string usri11_full_name
;
961 uint32 usri11_auth_flags
;
962 uint32 usri11_password_age
;
963 string usri11_home_dir
;
965 uint32 usri11_last_logon
;
966 uint32 usri11_last_logoff
;
967 uint32 usri11_bad_pw_count
;
968 uint32 usri11_num_logons
;
969 string usri11_logon_server
;
970 uint32 usri11_country_code
;
971 string usri11_workstations
;
972 uint32 usri11_max_storage
;
973 uint32 usri11_units_per_week
;
974 uint8
*usri11_logon_hours
;
975 uint32 usri11_code_page
;
978 [public] typedef struct {
980 string usri20_full_name
;
981 string usri20_comment
;
983 uint32 usri20_user_id
;
986 const int ENCRYPTED_PWLEN
= 16;
988 [public] typedef struct {
989 uint8 usri21_password
[ENCRYPTED_PWLEN
];
992 [public] typedef struct {
994 uint8 usri22_password
[ENCRYPTED_PWLEN
];
995 uint32 usri22_password_age
;
997 string usri22_home_dir
;
998 string usri22_comment
;
1000 uint32 usri22_script_path
;
1001 uint32 usri22_auth_flags
;
1002 string usri22_full_name
;
1003 string usri22_usr_comment
;
1004 string usri22_parms
;
1005 string usri22_workstations
;
1006 uint32 usri22_last_logon
;
1007 uint32 usri22_last_logoff
;
1008 uint32 usri22_acct_expires
;
1009 uint32 usri22_max_storage
;
1010 uint32 usri22_units_per_week
;
1011 uint8
*usri22_logon_hours
;
1012 uint32 usri22_bad_pw_count
;
1013 uint32 usri22_num_logons
;
1014 string usri22_logon_server
;
1015 uint32 usri22_country_code
;
1016 uint32 usri22_code_page
;
1019 [public] typedef struct {
1021 string usri23_full_name
;
1022 string usri23_comment
;
1023 uint32 usri23_flags
;
1024 domsid
*usri23_user_sid
;
1027 [public] typedef struct {
1028 string usri1003_password
;
1031 [public] typedef struct {
1032 uint32 usri1005_priv
;
1035 [public] typedef struct {
1036 string usri1006_home_dir
;
1039 [public] typedef struct {
1040 string usri1007_comment
;
1043 [public] typedef struct {
1044 uint32 usri1008_flags
;
1047 [public] typedef struct {
1048 string usri1009_script_path
;
1051 [public] typedef struct {
1052 uint32 usri1010_auth_flags
;
1055 [public] typedef struct {
1056 string usri1011_full_name
;
1059 [public] typedef struct {
1060 string usri1012_usr_comment
;
1063 [public] typedef struct {
1064 string usri1013_parms
;
1067 [public] typedef struct {
1068 string usri1014_workstations
;
1071 [public] typedef struct {
1072 uint32 usri1017_acct_expires
;
1075 [public] typedef struct {
1076 uint32 usri1018_max_storage
;
1079 [public] typedef struct {
1080 uint32 usri1020_units_per_week
;
1081 uint8
*usri1020_logon_hours
;
1084 [public] typedef struct {
1085 string usri1023_logon_server
;
1088 [public] typedef struct {
1089 uint32 usri1024_country_code
;
1092 [public] typedef struct {
1093 uint32 usri1025_code_page
;
1096 [public] typedef struct {
1097 uint32 usri1051_primary_group_id
;
1100 [public] typedef struct {
1101 string usri1052_profile
;
1104 [public] typedef struct {
1105 string usri1053_home_dir_drive
;
1108 [public] typedef struct {
1110 string usriX_password
;
1111 uint32 usriX_password_age
;
1113 string usriX_home_dir
;
1114 string usriX_comment
;
1116 string usriX_script_path
;
1117 uint32 usriX_auth_flags
;
1118 string usriX_full_name
;
1119 string usriX_usr_comment
;
1121 string usriX_workstations
;
1122 uint32 usriX_last_logon
;
1123 uint32 usriX_last_logoff
;
1124 uint32 usriX_acct_expires
;
1125 uint32 usriX_max_storage
;
1126 uint32 usriX_units_per_week
;
1127 uint8
*usriX_logon_hours
;
1128 uint32 usriX_bad_pw_count
;
1129 uint32 usriX_num_logons
;
1130 string usriX_logon_server
;
1131 uint32 usriX_country_code
;
1132 uint32 usriX_code_page
;
1133 string usriX_profile
;
1134 string usriX_home_dir_drive
;
1135 uint32 usriX_user_id
;
1136 uint32 usriX_primary_group_id
;
1137 uint32 usriX_password_expired
;
1140 [nopush
,nopull
] NET_API_STATUS NetUserAdd
(
1141 [in,unique] string *server_name
,
1143 [in,ref] uint8
*buffer
,
1144 [out,ref] uint32
*parm_error
1147 /*******************************************/
1149 /*******************************************/
1151 [nopush
,nopull
] NET_API_STATUS NetUserDel
(
1152 [in,unique] string *server_name
,
1153 [in,ref] string *user_name
1156 /*******************************************/
1158 /*******************************************/
1160 const int FILTER_TEMP_DUPLICATE_ACCOUNT
= 0x0001;
1161 const int FILTER_NORMAL_ACCOUNT
= 0x0002;
1162 const int FILTER_INTERDOMAIN_TRUST_ACCOUNT
= 0x0008;
1163 const int FILTER_WORKSTATION_TRUST_ACCOUNT
= 0x0010;
1164 const int FILTER_SERVER_TRUST_ACCOUNT
= 0x0020;
1166 [nopush
,nopull
] NET_API_STATUS NetUserEnum
(
1167 [in,unique] string *server_name
,
1170 [out,ref] uint8
**buffer
,
1171 [in] uint32 prefmaxlen
,
1172 [out,ref] uint32
*entries_read
,
1173 [out,ref] uint32
*total_entries
,
1174 [in,out,ref] uint32
*resume_handle
1177 /*******************************************/
1178 /* NetUserChangePassword */
1179 /*******************************************/
1181 [nopush
,nopull
] NET_API_STATUS NetUserChangePassword
(
1182 [in] string domain_name
,
1183 [in] string user_name
,
1184 [in] string old_password
,
1185 [in] string new_password
1188 /*******************************************/
1189 /* NetUserGetInfo */
1190 /*******************************************/
1192 [nopush
,nopull
] NET_API_STATUS NetUserGetInfo
(
1193 [in] string server_name
,
1194 [in] string user_name
,
1196 [out] uint8
**buffer
1199 /*******************************************/
1200 /* NetUserSetInfo */
1201 /*******************************************/
1203 [nopush
,nopull
] NET_API_STATUS NetUserSetInfo
(
1204 [in] string server_name
,
1205 [in] string user_name
,
1208 [out] uint32
*parm_err
1211 /*******************************************/
1212 /* NetUserGetGroups */
1213 /*******************************************/
1215 [public] typedef struct {
1217 } GROUP_USERS_INFO_0
;
1219 [public] typedef struct {
1221 uint32 grui1_attributes
;
1222 } GROUP_USERS_INFO_1
;
1224 [nopush
,nopull
] NET_API_STATUS NetUserGetGroups
(
1225 [in] string server_name
,
1226 [in] string user_name
,
1228 [out] uint8
**buffer
,
1229 [in] uint32 prefmaxlen
,
1230 [out,ref] uint32
*entries_read
,
1231 [out,ref] uint32
*total_entries
1234 /*******************************************/
1235 /* NetUserSetGroups */
1236 /*******************************************/
1238 [nopush
,nopull
] NET_API_STATUS NetUserSetGroups
(
1239 [in] string server_name
,
1240 [in] string user_name
,
1243 [in] uint32 num_entries
1246 /*******************************************/
1247 /* NetUserGetLocalGroups */
1248 /*******************************************/
1250 const int LG_INCLUDE_INDIRECT
= 0x0001;
1254 } LOCALGROUP_USERS_INFO_0
;
1256 [nopush
,nopull
] NET_API_STATUS NetUserGetLocalGroups
(
1257 [in] string server_name
,
1258 [in] string user_name
,
1261 [out] uint8
**buffer
,
1262 [in] uint32 prefmaxlen
,
1263 [out,ref] uint32
*entries_read
,
1264 [out,ref] uint32
*total_entries
1267 /*******************************************/
1268 /* NetUserModalsGet */
1269 /*******************************************/
1271 const int TIMEQ_FOREVER
= (uint32_t
)-1L;
1274 uint32 usrmod0_min_passwd_len
;
1275 uint32 usrmod0_max_passwd_age
;
1276 uint32 usrmod0_min_passwd_age
;
1277 uint32 usrmod0_force_logoff
;
1278 uint32 usrmod0_password_hist_len
;
1279 } USER_MODALS_INFO_0
;
1282 uint32 usrmod1_role
;
1283 string usrmod1_primary
;
1284 } USER_MODALS_INFO_1
;
1287 string usrmod2_domain_name
;
1288 domsid
*usrmod2_domain_id
;
1289 } USER_MODALS_INFO_2
;
1292 uint32 usrmod3_lockout_duration
;
1293 uint32 usrmod3_lockout_observation_window
;
1294 uint32 usrmod3_lockout_threshold
;
1295 } USER_MODALS_INFO_3
;
1298 uint32 usrmod1001_min_passwd_len
;
1299 } USER_MODALS_INFO_1001
;
1302 uint32 usrmod1002_max_passwd_age
;
1303 } USER_MODALS_INFO_1002
;
1306 uint32 usrmod1003_min_passwd_age
;
1307 } USER_MODALS_INFO_1003
;
1310 uint32 usrmod1004_force_logoff
;
1311 } USER_MODALS_INFO_1004
;
1314 uint32 usrmod1005_password_hist_len
;
1315 } USER_MODALS_INFO_1005
;
1318 uint32 usrmod1006_role
;
1319 } USER_MODALS_INFO_1006
;
1322 string usrmod1007_primary
;
1323 } USER_MODALS_INFO_1007
;
1325 [nopush
,nopull
] NET_API_STATUS NetUserModalsGet
(
1326 [in] string server_name
,
1328 [out,ref] uint8
**buffer
1331 /*******************************************/
1332 /* NetUserModalsSet */
1333 /*******************************************/
1335 [nopush
,nopull
] NET_API_STATUS NetUserModalsSet
(
1336 [in] string server_name
,
1339 [out,ref] uint32
*parm_err
1342 /*******************************************/
1343 /* NetQueryDisplayInformation */
1344 /*******************************************/
1346 [public] typedef struct {
1348 string usri1_comment
;
1350 string usri1_full_name
;
1351 uint32 usri1_user_id
;
1352 uint32 usri1_next_index
;
1355 [public] typedef struct {
1357 string usri2_comment
;
1359 uint32 usri2_user_id
;
1360 uint32 usri2_next_index
;
1361 } NET_DISPLAY_MACHINE
;
1363 [public] typedef struct {
1365 string grpi3_comment
;
1366 uint32 grpi3_group_id
;
1367 uint32 grpi3_attributes
;
1368 uint32 grpi3_next_index
;
1369 } NET_DISPLAY_GROUP
;
1371 [nopush
,nopull
] NET_API_STATUS NetQueryDisplayInformation
(
1372 [in,unique] string *server_name
,
1375 [in] uint32 entries_requested
,
1376 [in] uint32 prefmaxlen
,
1377 [out,ref] uint32
*entries_read
,
1378 [out,ref,noprint
] void **buffer
1381 /*******************************************/
1383 /*******************************************/
1391 string grpi1_comment
;
1396 string grpi2_comment
;
1397 uint32 grpi2_group_id
;
1398 uint32 grpi2_attributes
;
1403 string grpi3_comment
;
1404 domsid
*grpi3_group_sid
;
1405 uint32 grpi3_attributes
;
1409 string grpi1002_comment
;
1413 uint32 grpi1005_attributes
;
1416 [nopush
,nopull
] NET_API_STATUS NetGroupAdd
(
1417 [in] string server_name
,
1420 [out] uint32
*parm_err
1423 /*******************************************/
1425 /*******************************************/
1427 [nopush
,nopull
] NET_API_STATUS NetGroupDel
(
1428 [in] string server_name
,
1429 [in] string group_name
1432 /*******************************************/
1434 /*******************************************/
1436 [nopush
,nopull
] NET_API_STATUS NetGroupEnum
(
1437 [in] string server_name
,
1439 [out,ref] uint8
**buffer
,
1440 [in] uint32 prefmaxlen
,
1441 [out,ref] uint32
*entries_read
,
1442 [out,ref] uint32
*total_entries
,
1443 [in,out,ref] uint32
*resume_handle
1446 /*******************************************/
1447 /* NetGroupSetInfo */
1448 /*******************************************/
1450 [nopush
,nopull
] NET_API_STATUS NetGroupSetInfo
(
1451 [in] string server_name
,
1452 [in] string group_name
,
1455 [out] uint32
*parm_err
1458 /*******************************************/
1459 /* NetGroupGetInfo */
1460 /*******************************************/
1462 [nopush
,nopull
] NET_API_STATUS NetGroupGetInfo
(
1463 [in] string server_name
,
1464 [in] string group_name
,
1466 [out] uint8
**buffer
1469 /*******************************************/
1470 /* NetGroupAddUser */
1471 /*******************************************/
1473 [nopush
,nopull
] NET_API_STATUS NetGroupAddUser
(
1474 [in] string server_name
,
1475 [in] string group_name
,
1476 [in] string user_name
1479 /*******************************************/
1480 /* NetGroupDelUser */
1481 /*******************************************/
1483 [nopush
,nopull
] NET_API_STATUS NetGroupDelUser
(
1484 [in] string server_name
,
1485 [in] string group_name
,
1486 [in] string user_name
1489 /*******************************************/
1490 /* NetGroupGetUsers */
1491 /*******************************************/
1493 [nopush
,nopull
] NET_API_STATUS NetGroupGetUsers
(
1494 [in] string server_name
,
1495 [in] string group_name
,
1497 [out] uint8
**buffer
,
1498 [in] uint32 prefmaxlen
,
1499 [out,ref] uint32
*entries_read
,
1500 [out,ref] uint32
*total_entries
,
1501 [in,out,ref] uint32
*resume_handle
1504 /*******************************************/
1505 /* NetGroupSetUsers */
1506 /*******************************************/
1508 [nopush
,nopull
] NET_API_STATUS NetGroupSetUsers
(
1509 [in] string server_name
,
1510 [in] string group_name
,
1513 [in] uint32 num_entries
1516 /*******************************************/
1517 /* NetLocalGroupAdd */
1518 /*******************************************/
1522 } LOCALGROUP_INFO_0
;
1526 string lgrpi1_comment
;
1527 } LOCALGROUP_INFO_1
;
1530 string lgrpi1002_comment
;
1531 } LOCALGROUP_INFO_1002
;
1533 [nopush
,nopull
] NET_API_STATUS NetLocalGroupAdd
(
1534 [in] string server_name
,
1537 [out,ref] uint32
*parm_err
1540 /*******************************************/
1541 /* NetLocalGroupDel */
1542 /*******************************************/
1544 [nopush
,nopull
] NET_API_STATUS NetLocalGroupDel
(
1545 [in] string server_name
,
1546 [in] string group_name
1549 /*******************************************/
1550 /* NetLocalGroupGetInfo */
1551 /*******************************************/
1553 [nopush
,nopull
] NET_API_STATUS NetLocalGroupGetInfo
(
1554 [in] string server_name
,
1555 [in] string group_name
,
1557 [out,ref] uint8
**buffer
1560 /*******************************************/
1561 /* NetLocalGroupSetInfo */
1562 /*******************************************/
1564 [nopush
,nopull
] NET_API_STATUS NetLocalGroupSetInfo
(
1565 [in] string server_name
,
1566 [in] string group_name
,
1568 [in,ref] uint8
*buffer
,
1569 [out,ref] uint32
*parm_err
1572 /*******************************************/
1573 /* NetLocalGroupEnum */
1574 /*******************************************/
1576 [nopush
,nopull
] NET_API_STATUS NetLocalGroupEnum
(
1577 [in] string server_name
,
1579 [out,ref] uint8
**buffer
,
1580 [in] uint32 prefmaxlen
,
1581 [out,ref] uint32
*entries_read
,
1582 [out,ref] uint32
*total_entries
,
1583 [in,out,ref] uint32
*resume_handle
1586 /*******************************************/
1587 /* NetLocalGroupAddMembers */
1588 /*******************************************/
1595 SidTypeWellKnownGroup
= 5,
1596 SidTypeDeletedAccount
= 6,
1599 SidTypeComputer
= 9,
1605 } LOCALGROUP_MEMBERS_INFO_0
;
1609 SID_NAME_USE lgrmi1_sidusage
;
1611 } LOCALGROUP_MEMBERS_INFO_1
;
1615 SID_NAME_USE lgrmi2_sidusage
;
1616 string lgrmi2_domainandname
;
1617 } LOCALGROUP_MEMBERS_INFO_2
;
1620 string lgrmi3_domainandname
;
1621 } LOCALGROUP_MEMBERS_INFO_3
;
1623 [nopush
,nopull
] NET_API_STATUS NetLocalGroupAddMembers
(
1624 [in] string server_name
,
1625 [in] string group_name
,
1628 [in] uint32 total_entries
1631 /*******************************************/
1632 /* NetLocalGroupDelMembers */
1633 /*******************************************/
1635 [nopush
,nopull
] NET_API_STATUS NetLocalGroupDelMembers
(
1636 [in] string server_name
,
1637 [in] string group_name
,
1640 [in] uint32 total_entries
1643 /*******************************************/
1644 /* NetLocalGroupGetMembers */
1645 /*******************************************/
1647 [nopush
,nopull
] NET_API_STATUS NetLocalGroupGetMembers
(
1648 [in] string server_name
,
1649 [in] string local_group_name
,
1651 [out] uint8
**buffer
,
1652 [in] uint32 prefmaxlen
,
1653 [out] uint32
*entries_read
,
1654 [out] uint32
*total_entries
,
1655 [in,out] uint32
*resume_handle
1658 /*******************************************/
1659 /* NetLocalGroupSetMembers */
1660 /*******************************************/
1662 [nopush
,nopull
] NET_API_STATUS NetLocalGroupSetMembers
(
1663 [in] string server_name
,
1664 [in] string group_name
,
1667 [in] uint32 total_entries
1670 /*******************************************/
1672 /*******************************************/
1675 uint32 tod_elapsedt
;
1682 uint32 tod_tinterval
;
1689 [nopush
,nopull
] NET_API_STATUS NetRemoteTOD
(
1690 [in] string server_name
,
1691 [out,ref] uint8
**buffer
1694 /*******************************************/
1696 /*******************************************/
1699 string shi0_netname
;
1703 string shi1_netname
;
1709 string shi2_netname
;
1712 uint32 shi2_permissions
;
1713 uint32 shi2_max_uses
;
1714 uint32 shi2_current_uses
;
1720 string shi501_netname
;
1722 string shi501_remark
;
1723 uint32 shi501_flags
;
1727 string shi1004_remark
;
1730 const int CSC_MASK
= 0x30;
1732 typedef [public,bitmap32bit
] bitmap
{
1733 SHI1005_FLAGS_DFS
= 0x01,
1734 SHI1005_FLAGS_DFS_ROOT
= 0x02,
1735 CSC_CACHE_MANUAL_REINT
= 0x00,
1736 CSC_CACHE_AUTO_REINT
= 0x10,
1737 CSC_CACHE_VDO
= 0x20,
1738 CSC_CACHE_NONE
= 0x30,
1739 SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS
= 0x0100,
1740 SHI1005_FLAGS_FORCE_SHARED_DELETE
= 0x0200,
1741 SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING
= 0x0400,
1742 SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM
= 0x0800
1743 } SHARE_INFO_1005_FLAGS
;
1746 SHARE_INFO_1005_FLAGS shi1005_flags
;
1750 uint32 shi1006_max_uses
;
1753 [nopush
,nopull
] NET_API_STATUS NetShareAdd
(
1754 [in] string server_name
,
1757 [out] uint32
*parm_err
1760 /*******************************************/
1762 /*******************************************/
1764 [nopush
,nopull
] NET_API_STATUS NetShareDel
(
1765 [in] string server_name
,
1766 [in] string net_name
,
1767 [in] uint32 reserved
1770 /*******************************************/
1772 /*******************************************/
1774 [nopush
,nopull
] NET_API_STATUS NetShareEnum
(
1775 [in] string server_name
,
1777 [out] uint8
**buffer
,
1778 [in] uint32 prefmaxlen
,
1779 [out] uint32
*entries_read
,
1780 [out] uint32
*total_entries
,
1781 [in,out] uint32
*resume_handle
1784 /*******************************************/
1785 /* NetShareGetInfo */
1786 /*******************************************/
1788 [nopush
,nopull
] NET_API_STATUS NetShareGetInfo
(
1789 [in] string server_name
,
1790 [in] string net_name
,
1792 [out] uint8
**buffer
1795 /*******************************************/
1796 /* NetShareSetInfo */
1797 /*******************************************/
1799 [nopush
,nopull
] NET_API_STATUS NetShareSetInfo
(
1800 [in] string server_name
,
1801 [in] string net_name
,
1804 [out] uint32
*parm_err
1807 /*******************************************/
1809 /*******************************************/
1811 [nopush
,nopull
] NET_API_STATUS NetFileClose
(
1812 [in] string server_name
,
1816 /*******************************************/
1817 /* NetFileGetInfo */
1818 /*******************************************/
1826 uint32 fi3_permissions
;
1827 uint32 fi3_num_locks
;
1828 string fi3_pathname
;
1829 string fi3_username
;
1832 [nopush
,nopull
] NET_API_STATUS NetFileGetInfo
(
1833 [in] string server_name
,
1836 [out] uint8
**buffer
1839 /*******************************************/
1841 /*******************************************/
1843 [nopush
,nopull
] NET_API_STATUS NetFileEnum
(
1844 [in] string server_name
,
1845 [in] string base_path
,
1846 [in] string user_name
,
1848 [out] uint8
**buffer
,
1849 [in] uint32 prefmaxlen
,
1850 [out] uint32
*entries_read
,
1851 [out] uint32
*total_entries
,
1852 [in,out] uint32
*resume_handle
1855 /*******************************************/
1856 /* NetShutdownInit */
1857 /*******************************************/
1859 [nopush
,nopull
] NET_API_STATUS NetShutdownInit
(
1860 [in] string server_name
,
1861 [in] string message,
1862 [in] uint32 timeout
,
1863 [in] uint8 force_apps
,
1864 [in] uint8 do_reboot
1867 /*******************************************/
1868 /* NetShutdownAbort */
1869 /*******************************************/
1871 [nopush
,nopull
] NET_API_STATUS NetShutdownAbort
(
1872 [in] string server_name
1875 /*******************************************/
1876 /* I_NetLogonControl */
1877 /*******************************************/
1880 uint32 netlog1_flags
;
1881 NET_API_STATUS netlog1_pdc_connection_status
;
1885 uint32 netlog2_flags
;
1886 NET_API_STATUS netlog2_pdc_connection_status
;
1887 string netlog2_trusted_dc_name
;
1888 NET_API_STATUS netlog2_tc_connection_status
;
1892 uint32 netlog1_flags
;
1893 uint32 netlog3_logon_attempts
;
1894 uint32 netlog3_reserved1
;
1895 uint32 netlog3_reserved2
;
1896 uint32 netlog3_reserved3
;
1897 uint32 netlog3_reserved4
;
1898 uint32 netlog3_reserved5
;
1902 string netlog4_trusted_dc_name
;
1903 string netlog4_trusted_domain_name
;
1906 [nopush
,nopull
] NET_API_STATUS I_NetLogonControl
(
1907 [in] string server_name
,
1908 [in] uint32 function_code
,
1909 [in] uint32 query_level
,
1910 [out,ref] uint8
**buffer
1913 /*******************************************/
1914 /* I_NetLogonControl2 */
1915 /*******************************************/
1917 [nopush
,nopull
] NET_API_STATUS I_NetLogonControl2
(
1918 [in] string server_name
,
1919 [in] uint32 function_code
,
1920 [in] uint32 query_level
,
1922 [out,ref] uint8
**buffer