Hex Artifact Content

Not logged in

Artifact c4320c24efe6d18e6dcb6d4a44111bb5e4885d32:


0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  /***************
0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20  ********\..*    
0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0060: 20 20 20 20 20 20 20 20 20 20 6c 6d 63 6f 6e 66            lmconf
0070: 69 67 2e 64 20 20 20 20 20 20 20 20 20 20 20 20  ig.d            
0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20     *..*         
00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d                *.
00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  .*              
00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73           Windows
0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75   API header modu
0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20  le              
0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20           *..*   
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20      *..*        
0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61           Transla
0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57  ted from MinGW W
01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20  indows headers  
01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a                 *
01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20  ..*             
01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
01e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20            *..*  
0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0220: 20 20 20 20 20 50 6c 61 63 65 64 20 69 6e 74 6f       Placed into
0230: 20 70 75 62 6c 69 63 20 64 6f 6d 61 69 6e 20 20   public domain  
0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0250: 20 20 20 20 20 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a       *..\*******
0260: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0270: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0280: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0290: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
02a0: 2f 0d 0a 6d 6f 64 75 6c 65 20 77 69 6e 33 32 2e  /..module win32.
02b0: 6c 6d 63 6f 6e 66 69 67 3b 0d 0a 0d 0a 2f 2f 20  lmconfig;....// 
02c0: 41 6c 6c 20 66 75 6e 63 74 69 6f 6e 73 20 69 6e  All functions in
02d0: 20 74 68 69 73 20 66 69 6c 65 20 61 72 65 20 64   this file are d
02e0: 65 70 72 65 63 61 74 65 64 21 0d 0a 0d 0a 70 72  eprecated!....pr
02f0: 69 76 61 74 65 20 69 6d 70 6f 72 74 20 77 69 6e  ivate import win
0300: 33 32 2e 6c 6d 63 6f 6e 73 2c 20 77 69 6e 33 32  32.lmcons, win32
0310: 2e 77 69 6e 64 65 66 3b 0d 0a 0d 0a 64 65 70 72  .windef;....depr
0320: 65 63 61 74 65 64 20 7b 0d 0a 09 73 74 72 75 63  ecated {...struc
0330: 74 20 43 4f 4e 46 49 47 5f 49 4e 46 4f 5f 30 20  t CONFIG_INFO_0 
0340: 7b 0d 0a 09 09 4c 50 57 53 54 52 20 63 66 67 69  {....LPWSTR cfgi
0350: 30 5f 6b 65 79 3b 0d 0a 09 09 4c 50 57 53 54 52  0_key;....LPWSTR
0360: 20 63 66 67 69 30 5f 64 61 74 61 3b 0d 0a 09 7d   cfgi0_data;...}
0370: 0d 0a 0d 0a 09 61 6c 69 61 73 20 43 4f 4e 46 49  .....alias CONFI
0380: 47 5f 49 4e 46 4f 5f 30 2a 20 50 43 4f 4e 46 49  G_INFO_0* PCONFI
0390: 47 5f 49 4e 46 4f 5f 30 2c 20 4c 50 43 4f 4e 46  G_INFO_0, LPCONF
03a0: 49 47 5f 49 4e 46 4f 5f 30 3b 0d 0a 0d 0a 09 65  IG_INFO_0;.....e
03b0: 78 74 65 72 6e 20 28 57 69 6e 64 6f 77 73 29 20  xtern (Windows) 
03c0: 7b 0d 0a 09 09 4e 45 54 5f 41 50 49 5f 53 54 41  {....NET_API_STA
03d0: 54 55 53 20 4e 65 74 43 6f 6e 66 69 67 47 65 74  TUS NetConfigGet
03e0: 28 4c 50 43 57 53 54 52 2c 20 4c 50 43 57 53 54  (LPCWSTR, LPCWST
03f0: 52 2c 20 4c 50 43 57 53 54 52 2c 20 50 42 59 54  R, LPCWSTR, PBYT
0400: 45 2a 29 3b 0d 0a 09 09 4e 45 54 5f 41 50 49 5f  E*);....NET_API_
0410: 53 54 41 54 55 53 20 4e 65 74 43 6f 6e 66 69 67  STATUS NetConfig
0420: 47 65 74 41 6c 6c 28 4c 50 43 57 53 54 52 2c 20  GetAll(LPCWSTR, 
0430: 4c 50 43 57 53 54 52 2c 20 50 42 59 54 45 2a 29  LPCWSTR, PBYTE*)
0440: 3b 0d 0a 09 09 4e 45 54 5f 41 50 49 5f 53 54 41  ;....NET_API_STA
0450: 54 55 53 20 4e 65 74 43 6f 6e 66 69 67 53 65 74  TUS NetConfigSet
0460: 28 4c 50 43 57 53 54 52 2c 20 4c 50 43 57 53 54  (LPCWSTR, LPCWST
0470: 52 2c 20 4c 50 43 57 53 54 52 2c 20 44 57 4f 52  R, LPCWSTR, DWOR
0480: 44 2c 20 44 57 4f 52 44 2c 0d 0a 09 09 20 20 50  D, DWORD,....  P
0490: 42 59 54 45 2c 20 44 57 4f 52 44 29 3b 0d 0a 09  BYTE, DWORD);...
04a0: 7d 0d 0a 7d 0d 0a                                }..}..