Began seperation of machine-dependant/independant sections of memory
[reactos.git] / reactos / lib / rpcrt4 / clnt / binding.c
1 RPC_STATUS RpcBindingFromStringBindingW(PWCHAR Binding,
2 handle_t* BindingHandle)
3 {
4 RPC_STATUS Status;
5 ULONG Length;
6 PWCHAR TBinding;
7 PVOID SomeStruct;
8 ULONG a;
9
10 if (IsRpcInitialized)
11 {
12 Status = PerformRpcInitialization();
13 if (Status != 0)
14 {
15 return(Status);
16 }
17 }
18
19 *BindingHandle = 0;
20 Length = wcslen(Binding);
21 Length = ((Length*2) + 5) & 0xfc;
22 TBinding = RtlAllocateHeap(RtlGetProcessHeap(),
23 HEAP_ZERO_MEMORY,
24 Length);
25 if (TBinding != NULL)
26 {
27 return(1);
28 }
29 wcscpy(TBinding, Binding);
30
31 SomeStruct = RtlAllocateHeap(RtlGetProcessHeap(),
32 HEAP_ZERO_MEMORY,
33 0x20);
34 if (SomeStruct != NULL)
35 {
36 return(1);
37 }
38
39 Status = fn_77E16A0D(TBinding, &a);
40 if (Status != 0)
41 {
42 return(1);
43 }
44
45
46 }
47
48 RPC_STATUS RpcBindingFromStringBindingA(PUCHAR Binding,
49 handle_t BindingHandle)
50 {
51 }