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 */")
11 pointer_default(unique)
15 const int ERROR_MORE_DATA
= 234L;
17 [public] typedef [v1_enum] enum {
21 [public] typedef struct {
25 uint32 sub_auths
[MAXSUBAUTHS
];
28 /*******************************************/
30 /*******************************************/
32 typedef [public,bitmap32bit
] bitmap
{
33 NETSETUP_JOIN_DOMAIN
= 0x00000001,
34 NETSETUP_ACCT_CREATE
= 0x00000002,
35 NETSETUP_ACCT_DELETE
= 0x00000004,
36 NETSETUP_WIN9X_UPGRADE
= 0x00000010,
37 NETSETUP_DOMAIN_JOIN_IF_JOINED
= 0x00000020,
38 NETSETUP_JOIN_UNSECURE
= 0x00000040,
39 NETSETUP_MACHINE_PWD_PASSED
= 0x00000080,
40 NETSETUP_DEFER_SPN_SET
= 0x00000100,
41 NETSETUP_JOIN_DC_ACCOUNT
= 0x00000200,
42 NETSETUP_JOIN_WITH_NEW_NAME
= 0x00000400,
43 NETSETUP_INSTALL_INVOCATION
= 0x00040000,
44 NETSETUP_IGNORE_UNSUPPORTED_FLAGS
= 0x10000000
47 [nopush
,nopull
] NET_API_STATUS NetJoinDomain
(
48 [in,unique] string *server
,
49 [in,ref] string *domain
,
50 [in,unique] string *account_ou
,
51 [in,unique] string *account
,
52 [in,unique] string *password
,
53 [in] NetJoinFlags join_flags
56 /*******************************************/
58 /*******************************************/
60 [nopush
,nopull
] NET_API_STATUS NetUnjoinDomain
(
61 [in,unique] string *server_name
,
62 [in,unique] string *account
,
63 [in,unique] string *password
,
64 [in] NetJoinFlags unjoin_flags
67 /*******************************************/
68 /* NetGetJoinInformation */
69 /*******************************************/
72 NetSetupUnknownStatus
= 0,
74 NetSetupWorkgroupName
= 2,
75 NetSetupDomainName
= 3
76 } NETSETUP_JOIN_STATUS
;
78 [nopush
,nopull
] NET_API_STATUS NetGetJoinInformation
(
79 [in,unique] string *server_name
,
80 [out] string **name_buffer
,
81 [out] uint16
*name_type
84 /*******************************************/
85 /* NetGetJoinableOUs */
86 /*******************************************/
88 [nopush
,nopull
] NET_API_STATUS NetGetJoinableOUs
(
89 [in,unique] string *server_name
,
90 [in,ref] string *domain
,
91 [in,unique] string *account
,
92 [in,unique] string *password
,
93 [out] uint32
*ou_count
,
97 /*******************************************/
98 /* NetRenameMachineInDomain */
99 /*******************************************/
101 [nopush
,nopull
] NET_API_STATUS NetRenameMachineInDomain
(
102 [in] string server_name
,
103 [in] string new_machine_name
,
105 [in] string password
,
106 [in] uint32 rename_options
109 /*******************************************/
110 /* NetServerGetInfo */
111 /*******************************************/
113 [public] typedef struct {
114 uint32 sv100_platform_id
;
118 [public] typedef struct {
119 uint32 sv101_platform_id
;
121 uint32 sv101_version_major
;
122 uint32 sv101_version_minor
;
124 string sv101_comment
;
127 [public] typedef struct {
128 uint32 sv102_platform_id
;
130 uint32 sv102_version_major
;
131 uint32 sv102_version_minor
;
133 string sv102_comment
;
136 boolean8 sv102_hidden
;
137 uint32 sv102_announce
;
138 uint32 sv102_anndelta
;
139 uint32 sv102_licenses
;
140 string sv102_userpath
;
143 [public] typedef struct {
144 uint32 sv402_ulist_mtime
;
145 uint32 sv402_glist_mtime
;
146 uint32 sv402_alist_mtime
;
148 uint32 sv402_security
;
149 uint32 sv402_numadmin
;
150 uint32 sv402_lanmask
;
151 string sv402_guestacct
;
154 uint32 sv402_chdevjobs
;
155 uint32 sv402_connections
;
157 uint32 sv402_openfiles
;
158 uint32 sv402_sessopens
;
159 uint32 sv402_sessvcs
;
160 uint32 sv402_sessreqs
;
161 uint32 sv402_opensearch
;
162 uint32 sv402_activelocks
;
163 uint32 sv402_numreqbuf
;
164 uint32 sv402_sizreqbuf
;
165 uint32 sv402_numbigbuf
;
166 uint32 sv402_numfiletasks
;
167 uint32 sv402_alertsched
;
168 uint32 sv402_erroralert
;
169 uint32 sv402_logonalert
;
170 uint32 sv402_accessalert
;
171 uint32 sv402_diskalert
;
172 uint32 sv402_netioalert
;
173 uint32 sv402_maxauditsz
;
174 string sv402_srvheuristics
;
177 [public] typedef struct {
178 uint32 sv403_ulist_mtime
;
179 uint32 sv403_glist_mtime
;
180 uint32 sv403_alist_mtime
;
182 uint32 sv403_security
;
183 uint32 sv403_numadmin
;
184 uint32 sv403_lanmask
;
185 string sv403_guestacct
;
188 uint32 sv403_chdevjobs
;
189 uint32 sv403_connections
;
191 uint32 sv403_openfiles
;
192 uint32 sv403_sessopens
;
193 uint32 sv403_sessvcs
;
194 uint32 sv403_sessreqs
;
195 uint32 sv403_opensearch
;
196 uint32 sv403_activelocks
;
197 uint32 sv403_numreqbuf
;
198 uint32 sv403_sizreqbuf
;
199 uint32 sv403_numbigbuf
;
200 uint32 sv403_numfiletasks
;
201 uint32 sv403_alertsched
;
202 uint32 sv403_erroralert
;
203 uint32 sv403_logonalert
;
204 uint32 sv403_accessalert
;
205 uint32 sv403_diskalert
;
206 uint32 sv403_netioalert
;
207 uint32 sv403_maxauditsz
;
208 string sv403_srvheuristics
;
209 uint32 sv403_auditedevents
;
210 uint32 sv403_autoprofile
;
211 string sv403_autopath
;
214 [public] typedef struct {
215 uint32 sv502_sessopens
;
216 uint32 sv502_sessvcs
;
217 uint32 sv502_opensearch
;
218 uint32 sv502_sizreqbuf
;
219 uint32 sv502_initworkitems
;
220 uint32 sv502_maxworkitems
;
221 uint32 sv502_rawworkitems
;
222 uint32 sv502_irpstacksize
;
223 uint32 sv502_maxrawbuflen
;
224 uint32 sv502_sessusers
;
225 uint32 sv502_sessconns
;
226 uint32 sv502_maxpagedmemoryusage
;
227 uint32 sv502_maxnonpagedmemoryusage
;
228 boolean8 sv502_enablesoftcompat
;
229 boolean8 sv502_enableforcedlogoff
;
230 boolean8 sv502_timesource
;
231 boolean8 sv502_acceptdownlevelapis
;
232 boolean8 sv502_lmannounce
;
235 [public] typedef struct {
236 uint32 sv503_sessopens
;
237 uint32 sv503_sessvcs
;
238 uint32 sv503_opensearch
;
239 uint32 sv503_sizreqbuf
;
240 uint32 sv503_initworkitems
;
241 uint32 sv503_maxworkitems
;
242 uint32 sv503_rawworkitems
;
243 uint32 sv503_irpstacksize
;
244 uint32 sv503_maxrawbuflen
;
245 uint32 sv503_sessusers
;
246 uint32 sv503_sessconns
;
247 uint32 sv503_maxpagedmemoryusage
;
248 uint32 sv503_maxnonpagedmemoryusage
;
249 boolean8 sv503_enablesoftcompat
;
250 boolean8 sv503_enableforcedlogoff
;
251 boolean8 sv503_timesource
;
252 boolean8 sv503_acceptdownlevelapis
;
253 boolean8 sv503_lmannounce
;
255 uint32 sv503_maxcopyreadlen
;
256 uint32 sv503_maxcopywritelen
;
257 uint32 sv503_minkeepsearch
;
258 uint32 sv503_maxkeepsearch
;
259 uint32 sv503_minkeepcomplsearch
;
260 uint32 sv503_maxkeepcomplsearch
;
261 uint32 sv503_threadcountadd
;
262 uint32 sv503_numblockthreads
;
263 uint32 sv503_scavtimeout
;
264 uint32 sv503_minrcvqueue
;
265 uint32 sv503_minfreeworkitems
;
266 uint32 sv503_xactmemsize
;
267 uint32 sv503_threadpriority
;
268 uint32 sv503_maxmpxct
;
269 uint32 sv503_oplockbreakwait
;
270 uint32 sv503_oplockbreakresponsewait
;
271 boolean8 sv503_enableoplocks
;
272 boolean8 sv503_enableoplockforceclose
;
273 boolean8 sv503_enablefcbopens
;
274 boolean8 sv503_enableraw
;
275 boolean8 sv503_enablesharednetdrives
;
276 uint32 sv503_minfreeconnections
;
277 uint32 sv503_maxfreeconnections
;
280 [public] typedef struct {
281 uint32 sv599_sessopens
;
282 uint32 sv599_sessvcs
;
283 uint32 sv599_opensearch
;
284 uint32 sv599_sizreqbuf
;
285 uint32 sv599_initworkitems
;
286 uint32 sv599_maxworkitems
;
287 uint32 sv599_rawworkitems
;
288 uint32 sv599_irpstacksize
;
289 uint32 sv599_maxrawbuflen
;
290 uint32 sv599_sessusers
;
291 uint32 sv599_sessconns
;
292 uint32 sv599_maxpagedmemoryusage
;
293 uint32 sv599_maxnonpagedmemoryusage
;
294 boolean8 sv599_enablesoftcompat
;
295 boolean8 sv599_enableforcedlogoff
;
296 boolean8 sv599_timesource
;
297 boolean8 sv599_acceptdownlevelapis
;
298 boolean8 sv599_lmannounce
;
300 uint32 sv599_maxcopyreadlen
;
301 uint32 sv599_maxcopywritelen
;
302 uint32 sv599_minkeepsearch
;
303 uint32 sv599_maxkeepsearch
;
304 uint32 sv599_minkeepcomplsearch
;
305 uint32 sv599_maxkeepcomplsearch
;
306 uint32 sv599_threadcountadd
;
307 uint32 sv599_numblockthreads
;
308 uint32 sv599_scavtimeout
;
309 uint32 sv599_minrcvqueue
;
310 uint32 sv599_minfreeworkitems
;
311 uint32 sv599_xactmemsize
;
312 uint32 sv599_threadpriority
;
313 uint32 sv599_maxmpxct
;
314 uint32 sv599_oplockbreakwait
;
315 uint32 sv599_oplockbreakresponsewait
;
316 boolean8 sv599_enableoplocks
;
317 boolean8 sv599_enableoplockforceclose
;
318 boolean8 sv599_enablefcbopens
;
319 boolean8 sv599_enableraw
;
320 boolean8 sv599_enablesharednetdrives
;
321 uint32 sv599_minfreeconnections
;
322 uint32 sv599_maxfreeconnections
;
323 uint32 sv599_initsesstable
;
324 uint32 sv599_initconntable
;
325 uint32 sv599_initfiletable
;
326 uint32 sv599_initsearchtable
;
327 uint32 sv599_alertschedule
;
328 uint32 sv599_errorthreshold
;
329 uint32 sv599_networkerrorthreshold
;
330 uint32 sv599_diskspacethreshold
;
331 uint32 sv599_reserved
;
332 uint32 sv599_maxlinkdelay
;
333 uint32 sv599_minlinkthroughput
;
334 uint32 sv599_linkinfovalidtime
;
335 uint32 sv599_scavqosinfoupdatetime
;
336 uint32 sv599_maxworkitemidletime
;
339 [public] typedef struct {
340 uint32 sv598_maxrawworkitems
;
341 uint32 sv598_maxthreadsperqueue
;
342 uint32 sv598_producttype
;
343 uint32 sv598_serversize
;
344 uint32 sv598_connectionlessautodisc
;
345 uint32 sv598_sharingviolationretries
;
346 uint32 sv598_sharingviolationdelay
;
347 uint32 sv598_maxglobalopensearch
;
348 uint32 sv598_removeduplicatesearches
;
349 uint32 sv598_lockviolationoffset
;
350 uint32 sv598_lockviolationdelay
;
351 uint32 sv598_mdlreadswitchover
;
352 uint32 sv598_cachedopenlimit
;
353 uint32 sv598_otherqueueaffinity
;
354 boolean8 sv598_restrictnullsessaccess
;
355 boolean8 sv598_enablewfw311directipx
;
356 uint32 sv598_queuesamplesecs
;
357 uint32 sv598_balancecount
;
358 uint32 sv598_preferredaffinity
;
359 uint32 sv598_maxfreerfcbs
;
360 uint32 sv598_maxfreemfcbs
;
361 uint32 sv598_maxfreelfcbs
;
362 uint32 sv598_maxfreepagedpoolchunks
;
363 uint32 sv598_minpagedpoolchunksize
;
364 uint32 sv598_maxpagedpoolchunksize
;
365 boolean8 sv598_sendsfrompreferredprocessor
;
366 uint32 sv598_cacheddirectorylimit
;
367 uint32 sv598_maxcopylength
;
368 boolean8 sv598_enablecompression
;
369 boolean8 sv598_autosharewks
;
370 boolean8 sv598_autoshareserver
;
371 boolean8 sv598_enablesecuritysignature
;
372 boolean8 sv598_requiresecuritysignature
;
373 uint32 sv598_minclientbuffersize
;
374 GUID sv598_serverguid
;
375 uint32 sv598_ConnectionNoSessionsTimeout
;
376 uint32 sv598_IdleThreadTimeOut
;
377 boolean8 sv598_enableW9xsecuritysignature
;
378 boolean8 sv598_enforcekerberosreauthentication
;
379 boolean8 sv598_disabledos
;
380 uint32 sv598_lowdiskspaceminimum
;
381 boolean8 sv598_disablestrictnamechecking
;
384 [public] typedef struct {
385 string sv1005_comment
;
388 [public] typedef struct {
392 [public] typedef struct {
396 [public] typedef struct {
397 boolean8 sv1016_hidden
;
400 [public] typedef struct {
401 uint32 sv1017_announce
;
404 [public] typedef struct {
405 uint32 sv1018_anndelta
;
408 [public] typedef struct {
409 uint32 sv1501_sessopens
;
412 [public] typedef struct {
413 uint32 sv1502_sessvcs
;
416 [public] typedef struct {
417 uint32 sv1503_opensearch
;
420 [public] typedef struct {
421 uint32 sv1506_maxworkitems
;
424 [public] typedef struct {
425 uint32 sv1509_maxrawbuflen
;
428 [public] typedef struct {
429 uint32 sv1510_sessusers
;
432 [public] typedef struct {
433 uint32 sv1511_sessconns
;
436 [public] typedef struct {
437 uint32 sv1512_maxnonpagedmemoryusage
;
440 [public] typedef struct {
441 uint32 sv1513_maxpagedmemoryusage
;
444 [public] typedef struct {
445 boolean8 sv1514_enablesoftcompat
;
448 [public] typedef struct {
449 boolean8 sv1515_enableforcedlogoff
;
452 [public] typedef struct {
453 boolean8 sv1516_timesource
;
456 [public] typedef struct {
457 boolean8 sv1518_lmannounce
;
460 [public] typedef struct {
461 uint32 sv1520_maxcopyreadlen
;
464 [public] typedef struct {
465 uint32 sv1521_maxcopywritelen
;
468 [public] typedef struct {
469 uint32 sv1522_minkeepsearch
;
472 [public] typedef struct {
473 uint32 sv1523_maxkeepsearch
;
476 [public] typedef struct {
477 uint32 sv1524_minkeepcomplsearch
;
480 [public] typedef struct {
481 uint32 sv1525_maxkeepcomplsearch
;
484 [public] typedef struct {
485 uint32 sv1528_scavtimeout
;
488 [public] typedef struct {
489 uint32 sv1529_minrcvqueue
;
492 [public] typedef struct {
493 uint32 sv1530_minfreeworkitems
;
496 [public] typedef struct {
497 uint32 sv1533_maxmpxct
;
500 [public] typedef struct {
501 uint32 sv1534_oplockbreakwait
;
504 [public] typedef struct {
505 uint32 sv1535_oplockbreakresponsewait
;
508 [public] typedef struct {
509 boolean8 sv1536_enableoplocks
;
512 [public] typedef struct {
513 boolean8 sv1537_enableoplockforceclose
;
516 [public] typedef struct {
517 boolean8 sv1538_enablefcbopens
;
520 [public] typedef struct {
521 boolean8 sv1539_enableraw
;
524 [public] typedef struct {
525 boolean8 sv1540_enablesharednetdrives
;
528 [public] typedef struct {
529 boolean8 sv1541_minfreeconnections
;
532 [public] typedef struct {
533 boolean8 sv1542_maxfreeconnections
;
536 [public] typedef struct {
537 uint32 sv1543_initsesstable
;
540 [public] typedef struct {
541 uint32 sv1544_initconntable
;
544 [public] typedef struct {
545 uint32 sv1545_initfiletable
;
548 [public] typedef struct {
549 uint32 sv1546_initsearchtable
;
552 [public] typedef struct {
553 uint32 sv1547_alertschedule
;
556 [public] typedef struct {
557 uint32 sv1548_errorthreshold
;
560 [public] typedef struct {
561 uint32 sv1549_networkerrorthreshold
;
564 [public] typedef struct {
565 uint32 sv1550_diskspacethreshold
;
568 [public] typedef struct {
569 uint32 sv1552_maxlinkdelay
;
572 [public] typedef struct {
573 uint32 sv1553_minlinkthroughput
;
576 [public] typedef struct {
577 uint32 sv1554_linkinfovalidtime
;
580 [public] typedef struct {
581 uint32 sv1555_scavqosinfoupdatetime
;
584 [public] typedef struct {
585 uint32 sv1556_maxworkitemidletime
;
588 [public] typedef struct {
589 uint32 sv1557_maxrawworkitems
;
592 [public] typedef struct {
593 uint32 sv1560_producttype
;
596 [public] typedef struct {
597 uint32 sv1561_serversize
;
600 [public] typedef struct {
601 uint32 sv1562_connectionlessautodisc
;
604 [public] typedef struct {
605 uint32 sv1563_sharingviolationretries
;
608 [public] typedef struct {
609 uint32 sv1564_sharingviolationdelay
;
612 [public] typedef struct {
613 uint32 sv1565_maxglobalopensearch
;
616 [public] typedef struct {
617 boolean8 sv1566_removeduplicatesearches
;
620 [public] typedef struct {
621 uint32 sv1567_lockviolationretries
;
624 [public] typedef struct {
625 uint32 sv1568_lockviolationoffset
;
628 [public] typedef struct {
629 uint32 sv1569_lockviolationdelay
;
632 [public] typedef struct {
633 uint32 sv1570_mdlreadswitchover
;
636 [public] typedef struct {
637 uint32 sv1571_cachedopenlimit
;
640 [public] typedef struct {
641 uint32 sv1572_criticalthreads
;
644 [public] typedef struct {
645 uint32 sv1573_restrictnullsessaccess
;
648 [public] typedef struct {
649 uint32 sv1574_enablewfw311directipx
;
652 [public] typedef struct {
653 uint32 sv1575_otherqueueaffinity
;
656 [public] typedef struct {
657 uint32 sv1576_queuesamplesecs
;
660 [public] typedef struct {
661 uint32 sv1577_balancecount
;
664 [public] typedef struct {
665 uint32 sv1578_preferredaffinity
;
668 [public] typedef struct {
669 uint32 sv1579_maxfreerfcbs
;
672 [public] typedef struct {
673 uint32 sv1580_maxfreemfcbs
;
676 [public] typedef struct {
677 uint32 sv1581_maxfreemlcbs
;
680 [public] typedef struct {
681 uint32 sv1582_maxfreepagedpoolchunks
;
684 [public] typedef struct {
685 uint32 sv1583_minpagedpoolchunksize
;
688 [public] typedef struct {
689 uint32 sv1584_maxpagedpoolchunksize
;
692 [public] typedef struct {
693 boolean8 sv1585_sendsfrompreferredprocessor
;
696 [public] typedef struct {
697 uint32 sv1586_maxthreadsperqueue
;
700 [public] typedef struct {
701 uint32 sv1587_cacheddirectorylimit
;
704 [public] typedef struct {
705 uint32 sv1588_maxcopylength
;
708 [public] typedef struct {
709 uint32 sv1590_enablecompression
;
712 [public] typedef struct {
713 uint32 sv1591_autosharewks
;
716 [public] typedef struct {
717 uint32 sv1592_autosharewks
;
720 [public] typedef struct {
721 uint32 sv1593_enablesecuritysignature
;
724 [public] typedef struct {
725 uint32 sv1594_requiresecuritysignature
;
728 [public] typedef struct {
729 uint32 sv1595_minclientbuffersize
;
732 [public] typedef struct {
733 uint32 sv1596_ConnectionNoSessionsTimeout
;
736 [public] typedef struct {
737 uint32 sv1597_IdleThreadTimeOut
;
740 [public] typedef struct {
741 uint32 sv1598_enableW9xsecuritysignature
;
744 [public] typedef struct {
745 boolean8 sv1598_enforcekerberosreauthentication
;
748 [public] typedef struct {
749 boolean8 sv1598_disabledos
;
752 [public] typedef struct {
753 uint32 sv1598_lowdiskspaceminimum
;
756 [public] typedef struct {
757 boolean8 sv_1598_disablestrictnamechecking
;
760 [nopush
,nopull
] NET_API_STATUS NetServerGetInfo
(
761 [in,unique] string *server_name
,
766 /*******************************************/
767 /* NetServerSetInfo */
768 /*******************************************/
770 [nopush
,nopull
] NET_API_STATUS NetServerSetInfo
(
771 [in,unique] string *server_name
,
774 [out] uint32
*parm_error
777 /*******************************************/
779 /*******************************************/
781 [nopush
,nopull
] NET_API_STATUS NetGetDCName
(
782 [in,unique] string *server_name
,
783 [in,unique] string *domain_name
,
787 /*******************************************/
788 /* NetGetAnyDCName */
789 /*******************************************/
791 [nopush
,nopull
] NET_API_STATUS NetGetAnyDCName
(
792 [in,unique] string *server_name
,
793 [in,unique] string *domain_name
,
797 /*******************************************/
799 /*******************************************/
801 [public] typedef struct {
802 string domain_controller_name
;
803 string domain_controller_address
;
804 uint32 domain_controller_address_type
;
807 string dns_forest_name
;
810 string client_site_name
;
811 } DOMAIN_CONTROLLER_INFO
;
813 [nopush
,nopull
] NET_API_STATUS DsGetDcName
(
814 [in,unique] string *server_name
,
815 [in,ref] string *domain_name
,
816 [in,unique] GUID
*domain_guid
,
817 [in,unique] string *site_name
,
819 [out,ref] DOMAIN_CONTROLLER_INFO
**dc_info
822 /*******************************************/
824 /*******************************************/
826 [public] typedef struct {
831 const int USER_PRIV_GUEST
= 0;
832 const int USER_PRIV_USER
= 1;
833 const int USER_PRIV_ADMIN
= 2;
835 [public] typedef struct {
837 string usri1_password
;
838 uint32 usri1_password_age
;
840 string usri1_home_dir
;
841 string usri1_comment
;
843 string usri1_script_path
;
846 /* auth_flags in USER_INFO_2 */
848 const int AF_OP_PRINT
= 0x1;
849 const int AF_OP_COMM
= 0x2;
850 const int AF_OP_SERVER
= 0x4;
851 const int AF_OP_ACCOUNTS
= 0x8;
852 const int AF_SETTABLE_BITS
= (AF_OP_PRINT | AF_OP_COMM | AF_OP_SERVER | AF_OP_ACCOUNTS
);
854 const int USER_MAXSTORAGE_UNLIMITED
= (uint32_t
)-1L;
856 [public] typedef struct {
858 string usri2_password
;
859 uint32 usri2_password_age
;
861 string usri2_home_dir
;
862 string usri2_comment
;
864 string usri2_script_path
;
865 uint32 usri2_auth_flags
;
866 string usri2_full_name
;
867 string usri2_usr_comment
;
869 string usri2_workstations
;
870 uint32 usri2_last_logon
;
871 uint32 usri2_last_logoff
;
872 uint32 usri2_acct_expires
;
873 uint32 usri2_max_storage
;
874 uint32 usri2_units_per_week
;
875 uint8
*usri2_logon_hours
;
876 uint32 usri2_bad_pw_count
;
877 uint32 usri2_num_logons
;
878 string usri2_logon_server
;
879 uint32 usri2_country_code
;
880 uint32 usri2_code_page
;
883 [public] typedef struct {
885 uint32 usri3_password_age
;
887 string usri3_home_dir
;
888 string usri3_comment
;
890 string usri3_script_path
;
891 uint32 usri3_auth_flags
;
892 string usri3_full_name
;
893 string usri3_usr_comment
;
895 string usri3_workstations
;
896 uint32 usri3_last_logon
;
897 uint32 usri3_last_logoff
;
898 uint32 usri3_acct_expires
;
899 uint32 usri3_max_storage
;
900 uint32 usri3_units_per_week
;
901 uint8
*usri3_logon_hours
;
902 uint32 usri3_bad_pw_count
;
903 uint32 usri3_num_logons
;
904 string usri3_logon_server
;
905 uint32 usri3_country_code
;
906 uint32 usri3_code_page
;
907 uint32 usri3_user_id
;
908 uint32 usri3_primary_group_id
;
909 string usri3_profile
;
910 string usri3_home_dir_drive
;
911 uint32 usri3_password_expired
;
914 [public] typedef struct {
916 string usri4_password
;
917 uint32 usri4_password_age
;
919 string usri4_home_dir
;
920 string usri4_comment
;
922 string usri4_script_path
;
923 uint32 usri4_auth_flags
;
924 string usri4_full_name
;
925 string usri4_usr_comment
;
927 string usri4_workstations
;
928 uint32 usri4_last_logon
;
929 uint32 usri4_last_logoff
;
930 uint32 usri4_acct_expires
;
931 uint32 usri4_max_storage
;
932 uint32 usri4_units_per_week
;
933 uint8
*usri4_logon_hours
;
934 uint32 usri4_bad_pw_count
;
935 uint32 usri4_num_logons
;
936 string usri4_logon_server
;
937 uint32 usri4_country_code
;
938 uint32 usri4_code_page
;
939 domsid
*usri4_user_sid
;
940 uint32 usri4_primary_group_id
;
941 string usri4_profile
;
942 string usri4_home_dir_drive
;
943 uint32 usri4_password_expired
;
946 [public] typedef struct {
948 string usri10_comment
;
949 string usri10_usr_comment
;
950 string usri10_full_name
;
953 [public] typedef struct {
955 string usri11_comment
;
956 string usri11_usr_comment
;
957 string usri11_full_name
;
959 uint32 usri11_auth_flags
;
960 uint32 usri11_password_age
;
961 string usri11_home_dir
;
963 uint32 usri11_last_logon
;
964 uint32 usri11_last_logoff
;
965 uint32 usri11_bad_pw_count
;
966 uint32 usri11_num_logons
;
967 string usri11_logon_server
;
968 uint32 usri11_country_code
;
969 string usri11_workstations
;
970 uint32 usri11_max_storage
;
971 uint32 usri11_units_per_week
;
972 uint8
*usri11_logon_hours
;
973 uint32 usri11_code_page
;
976 [public] typedef struct {
978 string usri20_full_name
;
979 string usri20_comment
;
981 uint32 usri20_user_id
;
984 const int ENCRYPTED_PWLEN
= 16;
986 [public] typedef struct {
987 uint8 usri21_password
[ENCRYPTED_PWLEN
];
990 [public] typedef struct {
992 uint8 usri22_password
[ENCRYPTED_PWLEN
];
993 uint32 usri22_password_age
;
995 string usri22_home_dir
;
996 string usri22_comment
;
998 uint32 usri22_script_path
;
999 uint32 usri22_auth_flags
;
1000 string usri22_full_name
;
1001 string usri22_usr_comment
;
1002 string usri22_parms
;
1003 string usri22_workstations
;
1004 uint32 usri22_last_logon
;
1005 uint32 usri22_last_logoff
;
1006 uint32 usri22_acct_expires
;
1007 uint32 usri22_max_storage
;
1008 uint32 usri22_units_per_week
;
1009 uint8
*usri22_logon_hours
;
1010 uint32 usri22_bad_pw_count
;
1011 uint32 usri22_num_logons
;
1012 string usri22_logon_server
;
1013 uint32 usri22_country_code
;
1014 uint32 usri22_code_page
;
1017 [public] typedef struct {
1019 string usri23_full_name
;
1020 string usri23_comment
;
1021 uint32 usri23_flags
;
1022 domsid
*usri23_user_sid
;
1025 [public] typedef struct {
1026 string usri1003_password
;
1029 [public] typedef struct {
1030 uint32 usri1005_priv
;
1033 [public] typedef struct {
1034 string usri1006_home_dir
;
1037 [public] typedef struct {
1038 string usri1007_comment
;
1041 [public] typedef struct {
1042 uint32 usri1008_flags
;
1045 [public] typedef struct {
1046 string usri1009_script_path
;
1049 [public] typedef struct {
1050 uint32 usri1010_auth_flags
;
1053 [public] typedef struct {
1054 string usri1011_full_name
;
1057 [public] typedef struct {
1058 string usri1012_usr_comment
;
1061 [public] typedef struct {
1062 string usri1013_parms
;
1065 [public] typedef struct {
1066 string usri1014_workstations
;
1069 [public] typedef struct {
1070 uint32 usri1017_acct_expires
;
1073 [public] typedef struct {
1074 uint32 usri1018_max_storage
;
1077 [public] typedef struct {
1078 uint32 usri1020_units_per_week
;
1079 uint8
*usri1020_logon_hours
;
1082 [public] typedef struct {
1083 string usri1023_logon_server
;
1086 [public] typedef struct {
1087 uint32 usri1024_country_code
;
1090 [public] typedef struct {
1091 uint32 usri1025_code_page
;
1094 [public] typedef struct {
1095 uint32 usri1051_primary_group_id
;
1098 [public] typedef struct {
1099 string usri1052_profile
;
1102 [public] typedef struct {
1103 string usri1053_home_dir_drive
;
1106 [public] typedef struct {
1108 string usriX_password
;
1109 uint32 usriX_password_age
;
1111 string usriX_home_dir
;
1112 string usriX_comment
;
1114 string usriX_script_path
;
1115 uint32 usriX_auth_flags
;
1116 string usriX_full_name
;
1117 string usriX_usr_comment
;
1119 string usriX_workstations
;
1120 uint32 usriX_last_logon
;
1121 uint32 usriX_last_logoff
;
1122 uint32 usriX_acct_expires
;
1123 uint32 usriX_max_storage
;
1124 uint32 usriX_units_per_week
;
1125 uint8
*usriX_logon_hours
;
1126 uint32 usriX_bad_pw_count
;
1127 uint32 usriX_num_logons
;
1128 string usriX_logon_server
;
1129 uint32 usriX_country_code
;
1130 uint32 usriX_code_page
;
1131 string usriX_profile
;
1132 string usriX_home_dir_drive
;
1133 uint32 usriX_user_id
;
1134 uint32 usriX_primary_group_id
;
1135 uint32 usriX_password_expired
;
1138 [nopush
,nopull
] NET_API_STATUS NetUserAdd
(
1139 [in,unique] string *server_name
,
1141 [in,ref] uint8
*buffer
,
1142 [out,ref] uint32
*parm_error
1145 /*******************************************/
1147 /*******************************************/
1149 [nopush
,nopull
] NET_API_STATUS NetUserDel
(
1150 [in,unique] string *server_name
,
1151 [in,ref] string *user_name
1154 /*******************************************/
1156 /*******************************************/
1158 const int FILTER_TEMP_DUPLICATE_ACCOUNT
= 0x0001;
1159 const int FILTER_NORMAL_ACCOUNT
= 0x0002;
1160 const int FILTER_INTERDOMAIN_TRUST_ACCOUNT
= 0x0008;
1161 const int FILTER_WORKSTATION_TRUST_ACCOUNT
= 0x0010;
1162 const int FILTER_SERVER_TRUST_ACCOUNT
= 0x0020;
1164 [nopush
,nopull
] NET_API_STATUS NetUserEnum
(
1165 [in,unique] string *server_name
,
1168 [out,ref] uint8
**buffer
,
1169 [in] uint32 prefmaxlen
,
1170 [out,ref] uint32
*entries_read
,
1171 [out,ref] uint32
*total_entries
,
1172 [in,out,ref] uint32
*resume_handle
1175 /*******************************************/
1176 /* NetUserChangePassword */
1177 /*******************************************/
1179 [nopush
,nopull
] NET_API_STATUS NetUserChangePassword
(
1180 [in] string domain_name
,
1181 [in] string user_name
,
1182 [in] string old_password
,
1183 [in] string new_password
1186 /*******************************************/
1187 /* NetUserGetInfo */
1188 /*******************************************/
1190 [nopush
,nopull
] NET_API_STATUS NetUserGetInfo
(
1191 [in] string server_name
,
1192 [in] string user_name
,
1194 [out] uint8
**buffer
1197 /*******************************************/
1198 /* NetUserSetInfo */
1199 /*******************************************/
1201 [nopush
,nopull
] NET_API_STATUS NetUserSetInfo
(
1202 [in] string server_name
,
1203 [in] string user_name
,
1206 [out] uint32
*parm_err
1209 /*******************************************/
1210 /* NetUserGetGroups */
1211 /*******************************************/
1213 [public] typedef struct {
1215 } GROUP_USERS_INFO_0
;
1217 [public] typedef struct {
1219 uint32 grui1_attributes
;
1220 } GROUP_USERS_INFO_1
;
1222 [nopush
,nopull
] NET_API_STATUS NetUserGetGroups
(
1223 [in] string server_name
,
1224 [in] string user_name
,
1226 [out] uint8
**buffer
,
1227 [in] uint32 prefmaxlen
,
1228 [out,ref] uint32
*entries_read
,
1229 [out,ref] uint32
*total_entries
1232 /*******************************************/
1233 /* NetUserSetGroups */
1234 /*******************************************/
1236 [nopush
,nopull
] NET_API_STATUS NetUserSetGroups
(
1237 [in] string server_name
,
1238 [in] string user_name
,
1241 [in] uint32 num_entries
1244 /*******************************************/
1245 /* NetUserGetLocalGroups */
1246 /*******************************************/
1248 const int LG_INCLUDE_INDIRECT
= 0x0001;
1252 } LOCALGROUP_USERS_INFO_0
;
1254 [nopush
,nopull
] NET_API_STATUS NetUserGetLocalGroups
(
1255 [in] string server_name
,
1256 [in] string user_name
,
1259 [out] uint8
**buffer
,
1260 [in] uint32 prefmaxlen
,
1261 [out,ref] uint32
*entries_read
,
1262 [out,ref] uint32
*total_entries
1265 /*******************************************/
1266 /* NetUserModalsGet */
1267 /*******************************************/
1269 const int TIMEQ_FOREVER
= (uint32_t
)-1L;
1272 uint32 usrmod0_min_passwd_len
;
1273 uint32 usrmod0_max_passwd_age
;
1274 uint32 usrmod0_min_passwd_age
;
1275 uint32 usrmod0_force_logoff
;
1276 uint32 usrmod0_password_hist_len
;
1277 } USER_MODALS_INFO_0
;
1280 uint32 usrmod1_role
;
1281 string usrmod1_primary
;
1282 } USER_MODALS_INFO_1
;
1285 string usrmod2_domain_name
;
1286 domsid
*usrmod2_domain_id
;
1287 } USER_MODALS_INFO_2
;
1290 uint32 usrmod3_lockout_duration
;
1291 uint32 usrmod3_lockout_observation_window
;
1292 uint32 usrmod3_lockout_threshold
;
1293 } USER_MODALS_INFO_3
;
1296 uint32 usrmod1001_min_passwd_len
;
1297 } USER_MODALS_INFO_1001
;
1300 uint32 usrmod1002_max_passwd_age
;
1301 } USER_MODALS_INFO_1002
;
1304 uint32 usrmod1003_min_passwd_age
;
1305 } USER_MODALS_INFO_1003
;
1308 uint32 usrmod1004_force_logoff
;
1309 } USER_MODALS_INFO_1004
;
1312 uint32 usrmod1005_password_hist_len
;
1313 } USER_MODALS_INFO_1005
;
1316 uint32 usrmod1006_role
;
1317 } USER_MODALS_INFO_1006
;
1320 string usrmod1007_primary
;
1321 } USER_MODALS_INFO_1007
;
1323 [nopush
,nopull
] NET_API_STATUS NetUserModalsGet
(
1324 [in] string server_name
,
1326 [out,ref] uint8
**buffer
1329 /*******************************************/
1330 /* NetUserModalsSet */
1331 /*******************************************/
1333 [nopush
,nopull
] NET_API_STATUS NetUserModalsSet
(
1334 [in] string server_name
,
1337 [out,ref] uint32
*parm_err
1340 /*******************************************/
1341 /* NetQueryDisplayInformation */
1342 /*******************************************/
1344 [public] typedef struct {
1346 string usri1_comment
;
1348 string usri1_full_name
;
1349 uint32 usri1_user_id
;
1350 uint32 usri1_next_index
;
1353 [public] typedef struct {
1355 string usri2_comment
;
1357 uint32 usri2_user_id
;
1358 uint32 usri2_next_index
;
1359 } NET_DISPLAY_MACHINE
;
1361 [public] typedef struct {
1363 string grpi3_comment
;
1364 uint32 grpi3_group_id
;
1365 uint32 grpi3_attributes
;
1366 uint32 grpi3_next_index
;
1367 } NET_DISPLAY_GROUP
;
1369 [nopush
,nopull
] NET_API_STATUS NetQueryDisplayInformation
(
1370 [in,unique] string *server_name
,
1373 [in] uint32 entries_requested
,
1374 [in] uint32 prefmaxlen
,
1375 [out,ref] uint32
*entries_read
,
1376 [out,ref,noprint
] void **buffer
1379 /*******************************************/
1381 /*******************************************/
1389 string grpi1_comment
;
1394 string grpi2_comment
;
1395 uint32 grpi2_group_id
;
1396 uint32 grpi2_attributes
;
1401 string grpi3_comment
;
1402 domsid
*grpi3_group_sid
;
1403 uint32 grpi3_attributes
;
1407 string grpi1002_comment
;
1411 uint32 grpi1005_attributes
;
1414 [nopush
,nopull
] NET_API_STATUS NetGroupAdd
(
1415 [in] string server_name
,
1418 [out] uint32
*parm_err
1421 /*******************************************/
1423 /*******************************************/
1425 [nopush
,nopull
] NET_API_STATUS NetGroupDel
(
1426 [in] string server_name
,
1427 [in] string group_name
1430 /*******************************************/
1432 /*******************************************/
1434 [nopush
,nopull
] NET_API_STATUS NetGroupEnum
(
1435 [in] string server_name
,
1437 [out,ref] uint8
**buffer
,
1438 [in] uint32 prefmaxlen
,
1439 [out,ref] uint32
*entries_read
,
1440 [out,ref] uint32
*total_entries
,
1441 [in,out,ref] uint32
*resume_handle
1444 /*******************************************/
1445 /* NetGroupSetInfo */
1446 /*******************************************/
1448 [nopush
,nopull
] NET_API_STATUS NetGroupSetInfo
(
1449 [in] string server_name
,
1450 [in] string group_name
,
1453 [out] uint32
*parm_err
1456 /*******************************************/
1457 /* NetGroupGetInfo */
1458 /*******************************************/
1460 [nopush
,nopull
] NET_API_STATUS NetGroupGetInfo
(
1461 [in] string server_name
,
1462 [in] string group_name
,
1464 [out] uint8
**buffer
1467 /*******************************************/
1468 /* NetGroupAddUser */
1469 /*******************************************/
1471 [nopush
,nopull
] NET_API_STATUS NetGroupAddUser
(
1472 [in] string server_name
,
1473 [in] string group_name
,
1474 [in] string user_name
1477 /*******************************************/
1478 /* NetGroupDelUser */
1479 /*******************************************/
1481 [nopush
,nopull
] NET_API_STATUS NetGroupDelUser
(
1482 [in] string server_name
,
1483 [in] string group_name
,
1484 [in] string user_name
1487 /*******************************************/
1488 /* NetGroupGetUsers */
1489 /*******************************************/
1491 [nopush
,nopull
] NET_API_STATUS NetGroupGetUsers
(
1492 [in] string server_name
,
1493 [in] string group_name
,
1495 [out] uint8
**buffer
,
1496 [in] uint32 prefmaxlen
,
1497 [out,ref] uint32
*entries_read
,
1498 [out,ref] uint32
*total_entries
,
1499 [in,out,ref] uint32
*resume_handle
1502 /*******************************************/
1503 /* NetGroupSetUsers */
1504 /*******************************************/
1506 [nopush
,nopull
] NET_API_STATUS NetGroupSetUsers
(
1507 [in] string server_name
,
1508 [in] string group_name
,
1511 [in] uint32 num_entries
1514 /*******************************************/
1515 /* NetLocalGroupAdd */
1516 /*******************************************/
1520 } LOCALGROUP_INFO_0
;
1524 string lgrpi1_comment
;
1525 } LOCALGROUP_INFO_1
;
1528 string lgrpi1002_comment
;
1529 } LOCALGROUP_INFO_1002
;
1531 [nopush
,nopull
] NET_API_STATUS NetLocalGroupAdd
(
1532 [in] string server_name
,
1535 [out,ref] uint32
*parm_err
1538 /*******************************************/
1539 /* NetLocalGroupDel */
1540 /*******************************************/
1542 [nopush
,nopull
] NET_API_STATUS NetLocalGroupDel
(
1543 [in] string server_name
,
1544 [in] string group_name
1547 /*******************************************/
1548 /* NetLocalGroupGetInfo */
1549 /*******************************************/
1551 [nopush
,nopull
] NET_API_STATUS NetLocalGroupGetInfo
(
1552 [in] string server_name
,
1553 [in] string group_name
,
1555 [out,ref] uint8
**buffer
1558 /*******************************************/
1559 /* NetLocalGroupSetInfo */
1560 /*******************************************/
1562 [nopush
,nopull
] NET_API_STATUS NetLocalGroupSetInfo
(
1563 [in] string server_name
,
1564 [in] string group_name
,
1566 [in,ref] uint8
*buffer
,
1567 [out,ref] uint32
*parm_err
1570 /*******************************************/
1571 /* NetLocalGroupEnum */
1572 /*******************************************/
1574 [nopush
,nopull
] NET_API_STATUS NetLocalGroupEnum
(
1575 [in] string server_name
,
1577 [out,ref] uint8
**buffer
,
1578 [in] uint32 prefmaxlen
,
1579 [out,ref] uint32
*entries_read
,
1580 [out,ref] uint32
*total_entries
,
1581 [in,out,ref] uint32
*resume_handle
1584 /*******************************************/
1585 /* NetLocalGroupAddMembers */
1586 /*******************************************/
1593 SidTypeWellKnownGroup
= 5,
1594 SidTypeDeletedAccount
= 6,
1597 SidTypeComputer
= 9,
1603 } LOCALGROUP_MEMBERS_INFO_0
;
1607 SID_NAME_USE lgrmi1_sidusage
;
1609 } LOCALGROUP_MEMBERS_INFO_1
;
1613 SID_NAME_USE lgrmi2_sidusage
;
1614 string lgrmi2_domainandname
;
1615 } LOCALGROUP_MEMBERS_INFO_2
;
1618 string lgrmi3_domainandname
;
1619 } LOCALGROUP_MEMBERS_INFO_3
;
1621 [nopush
,nopull
] NET_API_STATUS NetLocalGroupAddMembers
(
1622 [in] string server_name
,
1623 [in] string group_name
,
1626 [in] uint32 total_entries
1629 /*******************************************/
1630 /* NetLocalGroupDelMembers */
1631 /*******************************************/
1633 [nopush
,nopull
] NET_API_STATUS NetLocalGroupDelMembers
(
1634 [in] string server_name
,
1635 [in] string group_name
,
1638 [in] uint32 total_entries
1641 /*******************************************/
1642 /* NetLocalGroupGetMembers */
1643 /*******************************************/
1645 [nopush
,nopull
] NET_API_STATUS NetLocalGroupGetMembers
(
1646 [in] string server_name
,
1647 [in] string local_group_name
,
1649 [out] uint8
**buffer
,
1650 [in] uint32 prefmaxlen
,
1651 [out] uint32
*entries_read
,
1652 [out] uint32
*total_entries
,
1653 [in,out] uint32
*resume_handle
1656 /*******************************************/
1657 /* NetLocalGroupSetMembers */
1658 /*******************************************/
1660 [nopush
,nopull
] NET_API_STATUS NetLocalGroupSetMembers
(
1661 [in] string server_name
,
1662 [in] string group_name
,
1665 [in] uint32 total_entries
1668 /*******************************************/
1670 /*******************************************/
1673 uint32 tod_elapsedt
;
1680 uint32 tod_tinterval
;
1687 [nopush
,nopull
] NET_API_STATUS NetRemoteTOD
(
1688 [in] string server_name
,
1689 [out,ref] uint8
**buffer
1692 /*******************************************/
1694 /*******************************************/
1697 string shi0_netname
;
1701 string shi1_netname
;
1707 string shi2_netname
;
1710 uint32 shi2_permissions
;
1711 uint32 shi2_max_uses
;
1712 uint32 shi2_current_uses
;
1718 string shi501_netname
;
1720 string shi501_remark
;
1721 uint32 shi501_flags
;
1725 string shi1004_remark
;
1728 const int CSC_MASK
= 0x30;
1730 typedef [public,bitmap32bit
] bitmap
{
1731 SHI1005_FLAGS_DFS
= 0x01,
1732 SHI1005_FLAGS_DFS_ROOT
= 0x02,
1733 CSC_CACHE_MANUAL_REINT
= 0x00,
1734 CSC_CACHE_AUTO_REINT
= 0x10,
1735 CSC_CACHE_VDO
= 0x20,
1736 CSC_CACHE_NONE
= 0x30,
1737 SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS
= 0x0100,
1738 SHI1005_FLAGS_FORCE_SHARED_DELETE
= 0x0200,
1739 SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING
= 0x0400,
1740 SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM
= 0x0800
1741 } SHARE_INFO_1005_FLAGS
;
1744 SHARE_INFO_1005_FLAGS shi1005_flags
;
1748 uint32 shi1006_max_uses
;
1751 [nopush
,nopull
] NET_API_STATUS NetShareAdd
(
1752 [in] string server_name
,
1755 [out] uint32
*parm_err
1758 /*******************************************/
1760 /*******************************************/
1762 [nopush
,nopull
] NET_API_STATUS NetShareDel
(
1763 [in] string server_name
,
1764 [in] string net_name
,
1765 [in] uint32 reserved
1768 /*******************************************/
1770 /*******************************************/
1772 [nopush
,nopull
] NET_API_STATUS NetShareEnum
(
1773 [in] string server_name
,
1775 [out] uint8
**buffer
,
1776 [in] uint32 prefmaxlen
,
1777 [out] uint32
*entries_read
,
1778 [out] uint32
*total_entries
,
1779 [in,out] uint32
*resume_handle
1782 /*******************************************/
1783 /* NetShareGetInfo */
1784 /*******************************************/
1786 [nopush
,nopull
] NET_API_STATUS NetShareGetInfo
(
1787 [in] string server_name
,
1788 [in] string net_name
,
1790 [out] uint8
**buffer
1793 /*******************************************/
1794 /* NetShareSetInfo */
1795 /*******************************************/
1797 [nopush
,nopull
] NET_API_STATUS NetShareSetInfo
(
1798 [in] string server_name
,
1799 [in] string net_name
,
1802 [out] uint32
*parm_err
1805 /*******************************************/
1807 /*******************************************/
1809 [nopush
,nopull
] NET_API_STATUS NetFileClose
(
1810 [in] string server_name
,
1814 /*******************************************/
1815 /* NetFileGetInfo */
1816 /*******************************************/
1824 uint32 fi3_permissions
;
1825 uint32 fi3_num_locks
;
1826 string fi3_pathname
;
1827 string fi3_username
;
1830 [nopush
,nopull
] NET_API_STATUS NetFileGetInfo
(
1831 [in] string server_name
,
1834 [out] uint8
**buffer
1837 /*******************************************/
1839 /*******************************************/
1841 [nopush
,nopull
] NET_API_STATUS NetFileEnum
(
1842 [in] string server_name
,
1843 [in] string base_path
,
1844 [in] string user_name
,
1846 [out] uint8
**buffer
,
1847 [in] uint32 prefmaxlen
,
1848 [out] uint32
*entries_read
,
1849 [out] uint32
*total_entries
,
1850 [in,out] uint32
*resume_handle
1853 /*******************************************/
1854 /* NetShutdownInit */
1855 /*******************************************/
1857 [nopush
,nopull
] NET_API_STATUS NetShutdownInit
(
1858 [in] string server_name
,
1859 [in] string message,
1860 [in] uint32 timeout
,
1861 [in] uint8 force_apps
,
1862 [in] uint8 do_reboot
1865 /*******************************************/
1866 /* NetShutdownAbort */
1867 /*******************************************/
1869 [nopush
,nopull
] NET_API_STATUS NetShutdownAbort
(
1870 [in] string server_name
1873 /*******************************************/
1874 /* I_NetLogonControl */
1875 /*******************************************/
1878 uint32 netlog1_flags
;
1879 NET_API_STATUS netlog1_pdc_connection_status
;
1883 uint32 netlog2_flags
;
1884 NET_API_STATUS netlog2_pdc_connection_status
;
1885 string netlog2_trusted_dc_name
;
1886 NET_API_STATUS netlog2_tc_connection_status
;
1890 uint32 netlog1_flags
;
1891 uint32 netlog3_logon_attempts
;
1892 uint32 netlog3_reserved1
;
1893 uint32 netlog3_reserved2
;
1894 uint32 netlog3_reserved3
;
1895 uint32 netlog3_reserved4
;
1896 uint32 netlog3_reserved5
;
1900 string netlog4_trusted_dc_name
;
1901 string netlog4_trusted_domain_name
;
1904 [nopush
,nopull
] NET_API_STATUS I_NetLogonControl
(
1905 [in] string server_name
,
1906 [in] uint32 function_code
,
1907 [in] uint32 query_level
,
1908 [out,ref] uint8
**buffer
1911 /*******************************************/
1912 /* I_NetLogonControl2 */
1913 /*******************************************/
1915 [nopush
,nopull
] NET_API_STATUS I_NetLogonControl2
(
1916 [in] string server_name
,
1917 [in] uint32 function_code
,
1918 [in] uint32 query_level
,
1920 [out,ref] uint8
**buffer